summaryrefslogtreecommitdiff
path: root/Pretty.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2021-05-21 09:16:00 +0200
committerTom Smeding <tom@tomsmeding.com>2021-05-21 09:16:00 +0200
commitb03f51f3a363f861f9d5de30ec6a337fec316383 (patch)
treef07e009d6c2b45c188466ab7a52362fe98dcae39 /Pretty.hs
Initial
Diffstat (limited to 'Pretty.hs')
-rw-r--r--Pretty.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Pretty.hs b/Pretty.hs
new file mode 100644
index 0000000..a5b65a6
--- /dev/null
+++ b/Pretty.hs
@@ -0,0 +1,12 @@
+module Pretty where
+
+import qualified Data.Text.Lazy.Builder as B
+import Data.Text.Lazy.Builder (Builder)
+import Data.Text.Lazy (Text)
+
+
+class Pretty a where
+ pretty' :: a -> Builder
+
+ pretty :: a -> Text
+ pretty = B.toLazyText . pretty'