fix default prettyPrec definition

This commit is contained in:
crumbtoo
2024-02-22 08:57:35 -07:00
parent 9b8630db90
commit 50fac603b9

View File

@@ -27,7 +27,7 @@ class Pretty a where
{-# MINIMAL pretty | prettyPrec #-} {-# MINIMAL pretty | prettyPrec #-}
pretty = prettyPrec 0 pretty = prettyPrec 0
prettyPrec a _ = pretty a prettyPrec = const pretty
rpretty :: (IsString s, Pretty a) => a -> s rpretty :: (IsString s, Pretty a) => a -> s
rpretty = fromString . render . pretty rpretty = fromString . render . pretty