Pretty: Better Show instance for debugging purposes.

This commit is contained in:
John MacFarlane 2013-02-28 20:12:21 -08:00
parent 0c9bb40403
commit 0c4965847f

View file

@ -104,10 +104,7 @@ data D = Text Int String
deriving (Show)
newtype Doc = Doc { unDoc :: Seq D }
deriving (Monoid)
instance Show Doc where
show = render Nothing
deriving (Monoid, Show)
instance IsString Doc where
fromString = text