We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cafb52 commit cfa3bdbCopy full SHA for cfa3bdb
2 files changed
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,14 @@
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
+{-# OPTIONS_HADDOCK hide #-}
6
7
+module Prettyprinter.Util.TextCompat (
8
+ Text,
9
10
+ pack,
11
+ unpack,
12
+) where
13
14
+import Data.Text (Text, pack, unpack)
0 commit comments