Diagrams/Dev/Migrate0.6
Jump to navigation
Jump to search
This page describes API changes between diagrams 0.5 and 0.6, along with explanations of how to migrate to the new 0.6 API.
StyleParam deleted from Diagrams.Backend.Cairo.Text
The StyleParam
type has been removed from Diagrams.Backend.Cairo.Text
. Functions that used to take a StyleParam
argument now take a Style R2
parameter, determining the style to apply to the text before rendering/querying information about the text. These parameters can be created a variety of ways, but the most direct will likely be by applying style-transforming functions such as font
, fontSize
, fontSlant
, and fontWeight
to mempty
. This works because there are instances of HasStyle
and Monoid
for Style v
.