summaryrefslogtreecommitdiffstats
path: root/app/Pretty.hs
diff options
context:
space:
mode:
Diffstat (limited to 'app/Pretty.hs')
-rw-r--r--app/Pretty.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Pretty.hs b/app/Pretty.hs
index 6d500a0..8101fb7 100644
--- a/app/Pretty.hs
+++ b/app/Pretty.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-unused-top-binds #-}
@@ -14,12 +15,14 @@ module Pretty
)
where
+import Control.DeepSeq
+import GHC.Generics (Generic)
import Pretty.Color
data Doc
= Col [Doc]
| Lit (Maybe (Intensity, Color)) String
- deriving (Show, Eq)
+ deriving (Generic, Show, Eq, NFData)
class Pretty a where
pretty :: a -> Doc