diff options
Diffstat (limited to 'src/HSVIS/Pretty.hs')
-rw-r--r-- | src/HSVIS/Pretty.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/HSVIS/Pretty.hs b/src/HSVIS/Pretty.hs new file mode 100644 index 0000000..ffde90e --- /dev/null +++ b/src/HSVIS/Pretty.hs @@ -0,0 +1,11 @@ +module HSVIS.Pretty where + + +class Pretty a where + prettysPrec :: Int -> a -> ShowS + +prettyPrec :: Pretty a => Int -> a -> String +prettyPrec d x = prettysPrec d x "" + +pretty :: Pretty a => a -> String +pretty x = prettyPrec 0 x |