Rasterific-0.7.4.2: A pure haskell drawing engine.

Graphics.Rasterific.Lenses

Description

This module provide lenses compatible with the lens module but without the dependency to it.

Synopsis

# Line lenses

Line origin point.

Line end point.

Traverse all the points of a line.

bezier control point.

bezier end point.

Traversal of all the bezier's points.

# Cubic bezier lenses

Cubic bezier first point

Cubic bezier first control point.

Cubic bezier second control point.

Cubic bezier last point.

Traversal of all the points of the cubic bezier.

# Primitive lenses

Traverse all the points defined in the primitive.

# Path oriented lenses

Traversal of all the points of a path

Traversal of all the points in a path.

# Type definition to match Lens

type Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t #

Does it look familiar? yes it's the official Lens type.

type Lens' s a = Lens s s a a #

Try to match the Lens' type alias.

type Traversal s t a b = forall f. Applicative f => (a -> f b) -> s -> f t #

Traversal type, matched to the one of the lens package.

type Traversal' s a = Traversal s s a a #