We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cafb52 commit 4ad9ad5Copy full SHA for 4ad9ad5
prettyprinter/prettyprinter.cabal
@@ -36,6 +36,7 @@ library
36
, Prettyprinter.Render.Util.SimpleDocTree
37
, Prettyprinter.Render.Util.StackMachine
38
, Prettyprinter.Util
39
+ , Prettyprinter.Util.TextCompat
40
41
, Prettyprinter.Symbols.Unicode
42
, Prettyprinter.Symbols.Ascii
prettyprinter/src/Prettyprinter/Util/TextCompat.hs
@@ -0,0 +1,12 @@
1
+-- | Re-exports of the Text type and pack and unpack functions to allow downstream libraries
2
+-- have a policy of not having a direct dependency on the text package can easily avoid the
3
+-- dependency by using these re-exports.
4
+
5
+module Prettyprinter.Util.TextCompat (
6
+ Text,
7
8
+ pack,
9
+ unpack,
10
+) where
11
12
+import Data.Text (Text, pack, unpack)
0 commit comments