blank-canvas v0.6 Release Notes
Release Date: 2015-12-04 // over 8 years ago-
API changes
- The
(#)
function had its type generalized froma -> (a -> Canvas b) -> Canvas b
toa -> (a -> b) -> b
. This allows it to be used with font length units. - Added more type synonyms (
Interval
,Degrees
,Radians
, etc.) to more clearly indicate what functions expect constrained values. showbJS
(formerlyshowJS
) andjsStyle
now return a textBuilder
instead of aString
. This change was introduced as part of a largerblank-canvas
refactoring to increase performance. See theData.Text.Lazy.Builder
module from thetext
package for more details on how to useBuilder
s.
API additions
- A new ADT for
Font
s has been added inGraphics.Blank.Font
that can be used in place ofText
. For example,"30pt Calibri"
is equivalent to(defFont "Calibri") { fontSize = 30 # pt }
. - A generalized
font
function of typeCanvasFont canvasFont => canvasFont -> Canvas ()
was added toGraphics.Blank.Font
that can accept aText
orFont
argument. Thefont
function inGraphics.Blank
remains of typeText -> Canvas ()
. - Added a
cursor
function to change the browser cursor. Also added theGraphics.Blank.Cursor
module containing a generalizedcursor
function that uses aCursor
ADT instead ofText
. - Added
Bounded
,Enum
,Eq
,Ix
,Ord
, andShow
instances for more data types - Added support for more MIME types via the
mime-types
library
➕ Additions
- Allowed building with
base-4.8.0.0
Other
- Require
scotty
>= 0.10 andkansas-comet
>= 0.4
- The