cairo-core: Cairo Haskell binding (core functions)

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

Cairo Haskell binding (core functions). Please checkout cairo-opts for other functions.


[Skip to ReadMe]

Properties

Versions1.16.3, 1.16.3, 1.16.4, 1.16.5, 1.16.6
Change logChangelog
Dependenciesbase (>=4.7 && <5), monad-extras, transformers [details]
LicenseBSD-3-Clause
CopyrightNone
AuthorMagicloud
Maintainermagiclouds@gmail.com
CategoryGraphics
Home pagehttps://github.com/magicloud/cairo-core#readme
Source repositoryhead: git clone https://github.com/magicloud/cairo-core
UploadedSat Feb 2 07:14:33 UTC 2019 by magicloud

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for cairo-core-1.16.3

[back to package description]

Cairo Haskell binding - Core

This is a library for Haskell to use Cairo function straightforwardly. This package only contains non-optional functions (which is not controlled by building flags). Optional functions like surface supporting and font supporting are in "cairo-opts".

The source is inspired by garetxe and cohomology.

Memory safe

All the pointers should be reference/destroy -ed as manual required, if possible. Hopefully I did not miss any part or misunderstand the document.

Type

When making the library, I tried to use more meaningful type name. So one looking at the type signature would know what to do.

Render

A sugar monad wrapping all functions use Context as first parameter, like cairo from gtk2hs does.

Status check

Checking the status of most Cairo objects is necessary, after creation, or a sequence of actions on it. A sugar method with is given for Render. And a method use is given for regular IO monad.