fix default prettyPrec definition
This commit is contained in:
1 parent
c0baf46f29
commit
a2ad7856a6
1 file changed
+1
-1
+1
-1
@@ -27,7 +27,7 @@ class Pretty a where
|
||||
|
||||
{-# MINIMAL pretty | prettyPrec #-}
|
||||
pretty = prettyPrec 0
|
||||
prettyPrec a _ = pretty a
|
||||
prettyPrec = const pretty
|
||||
|
||||
rpretty :: (IsString s, Pretty a) => a -> s
|
||||
rpretty = fromString . render . pretty
|
||||
|
||||
Reference in new issue
Block a user