Closed AlexKnauth closed 6 years ago
Currently the bg function has the type:
bg
(TypeableFloat n, Renderable (Path V2 n) b) => Colour Double -> QDiagram b V2 n Any -> QDiagram b V2 n Any
With the Any monoid fixed.
Any
This PR makes bg and bgFrame polymorphic over all monoids instead.
bgFrame
(TypeableFloat n, Renderable (Path V2 n) b, Monoid' q) => Colour Double -> QDiagram b V2 n q -> QDiagram b V2 n q
Adding # bg color to a diagram shouldn't change the results of queries, so the background portion is given mempty for the query value.
# bg color
mempty
Fixes #318.
Makes sense. Thanks!
Currently the
bg
function has the type:With the
Any
monoid fixed.This PR makes
bg
andbgFrame
polymorphic over all monoids instead.Adding
# bg color
to a diagram shouldn't change the results of queries, so the background portion is givenmempty
for the query value.Fixes #318.