Pretty: Better Show instance for debugging purposes.
This commit is contained in:
parent
0c9bb40403
commit
0c4965847f
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue