fix default prettyPrec definition
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user