hgeometry-0.5.0.0: Geometric Algorithms, Data structures, and Data types.

Safe HaskellNone
LanguageHaskell2010

Data.Geometry.Ipe.PathParser

Synopsis

Documentation

class Num r => Coordinate r where Source

Represent stuff that can be used as a coordinate in ipe. (similar to show/read)

Methods

fromSeq :: Integer -> Maybe Integer -> r Source

readCoordinate :: Coordinate r => Text -> Either Text r Source

Running the parsers

data Either' l r Source

Constructors

Left' l 
Right' r 

Instances

(Eq l, Eq r) => Eq (Either' l r) Source 
(Show l, Show r) => Show (Either' l r) Source 
(Semigroup l, Semigroup r, Monoid r) => Monoid (Either' l r) Source 

either' :: (l -> a) -> (r -> a) -> Either' l r -> a Source

pOperation :: Coordinate r => Parser (Operation r) Source

The parsers themselves

mkMatrix :: Coordinate r => [r] -> Matrix 3 3 r Source

Generate a matrix from a list of 6 coordinates.