hgeometry-0.6.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)

Minimal complete definition

fromSeq

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 r, Eq l) => Eq (Either' l r) Source # 

Methods

(==) :: Either' l r -> Either' l r -> Bool #

(/=) :: Either' l r -> Either' l r -> Bool #

(Show r, Show l) => Show (Either' l r) Source # 

Methods

showsPrec :: Int -> Either' l r -> ShowS #

show :: Either' l r -> String #

showList :: [Either' l r] -> ShowS #

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

Methods

mempty :: Either' l r #

mappend :: Either' l r -> Either' l r -> Either' l r #

mconcat :: [Either' l r] -> Either' l r #

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.