Pretty: Semigroup instance for Doc with base >= 4.9.
This commit is contained in:
parent
ec1e2c87b7
commit
07e0981316
1 changed files with 4 additions and 0 deletions
|
@ -112,7 +112,11 @@ data D = Text Int String
|
|||
deriving (Show, Eq)
|
||||
|
||||
newtype Doc = Doc { unDoc :: Seq D }
|
||||
#if MIN_VERSION_base(4,9,0)
|
||||
deriving (Semigroup, Monoid, Show, Eq)
|
||||
#else
|
||||
deriving (Monoid, Show, Eq)
|
||||
#endif
|
||||
|
||||
instance IsString Doc where
|
||||
fromString = text
|
||||
|
|
Loading…
Reference in a new issue