fix default prettyPrec definition
This commit is contained in:
@@ -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