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:
parent
d8d28d3ca9
commit
8458841182
@ -45,10 +45,10 @@ instance Def DiagProp where
|
|||||||
|
|
||||||
|
|
||||||
instance Monoid Diag where
|
instance Monoid Diag where
|
||||||
mempty = Diag (\_ _ -> rect 0 0 # lwG 0.00)
|
mempty = Diag (\_ _ -> rect 0 0)
|
||||||
mappend d1 d2 = Diag g
|
mappend d1 d2 = Diag g
|
||||||
where
|
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
|
mconcat = foldr mappend mempty
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user