Small adjustments in Monoid Diag instance

The lwG propery doesn't have any effect, so remove it.
Using '<>' here gets correctly inferred for the Diagrams library
data types, so just use it.
This commit is contained in:
hasufell 2014-10-08 19:21:47 +02:00
parent d8d28d3ca9
commit 8458841182
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 2 additions and 2 deletions

View File

@ -45,10 +45,10 @@ instance Def DiagProp where
instance Monoid Diag where
mempty = Diag (\_ _ -> rect 0 0 # lwG 0.00)
mempty = Diag (\_ _ -> rect 0 0)
mappend d1 d2 = Diag g
where
g p vt = mkDiag d1 p vt `atop` mkDiag d2 p vt
g p vt = mkDiag d1 p vt <> mkDiag d2 p vt
mconcat = foldr mappend mempty