From f72bf16e2edc8d654e661cd59f820409219e5f27 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 25 Feb 2024 21:01:13 +0100 Subject: Add HSVIS module prefix --- src/HSVIS/Pretty.hs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/HSVIS/Pretty.hs (limited to 'src/HSVIS/Pretty.hs') 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 -- cgit v1.2.3-70-g09d2