Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provide lenses compatible with the lens
module but without the dependency to it.
- lineX0 :: Lens' Line Point
- lineX1 :: Lens' Line Point
- linePoints :: Traversal' Line Point
- bezX0 :: Lens' Bezier Point
- bezX1 :: Lens' Bezier Point
- bezX2 :: Lens' Bezier Point
- bezierPoints :: Traversal' Bezier Point
- cbezX0 :: Lens' CubicBezier Point
- cbezX1 :: Lens' CubicBezier Point
- cbezX2 :: Lens' CubicBezier Point
- cbezX3 :: Lens' CubicBezier Point
- cubicBezierPoints :: Traversal' CubicBezier Point
- primitivePoints :: Traversal' Primitive Point
- pathCommandPoints :: Traversal' PathCommand Point
- pathPoints :: Traversal' Path Point
- type Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t
- type Lens' s a = Lens s s a a
- type Traversal s t a b = forall f. Applicative f => (a -> f b) -> s -> f t
- type Traversal' s a = Traversal s s a a
Line lenses
linePoints :: Traversal' Line Point #
Traverse all the points of a line.
Quadratic bezier curve
bezierPoints :: Traversal' Bezier Point #
Traversal of all the bezier's points.
Cubic bezier lenses
cbezX0 :: Lens' CubicBezier Point #
Cubic bezier first point
cbezX1 :: Lens' CubicBezier Point #
Cubic bezier first control point.
cbezX2 :: Lens' CubicBezier Point #
Cubic bezier second control point.
cbezX3 :: Lens' CubicBezier Point #
Cubic bezier last point.
cubicBezierPoints :: Traversal' CubicBezier Point #
Traversal of all the points of the cubic bezier.
Primitive lenses
primitivePoints :: Traversal' Primitive Point #
Traverse all the points defined in the primitive.
Path oriented lenses
pathCommandPoints :: Traversal' PathCommand Point #
Traversal of all the points of a path
pathPoints :: Traversal' Path Point #
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 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 #