summaryrefslogtreecommitdiff
path: root/Pretty.hs
diff options
context:
space:
mode:
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'