hgeometry-ipe-0.11.0.0: Reading and Writing ipe7 files.

Data.Geometry.Ipe.PathParser

Synopsis

# Documentation

class Fractional r => Coordinate r where Source #

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

Minimal complete definition

Nothing

Methods

fromSeq :: Integer -> Maybe (Int, Integer) -> r Source #

fromSeq :: (Ord r, Fractional r) => Integer -> Maybe (Int, Integer) -> r Source #

Instances
 Source # Instance detailsDefined in Data.Geometry.Ipe.PathParser Methods Source # Instance detailsDefined in Data.Geometry.Ipe.PathParser Methods Source # Instance detailsDefined in Data.Geometry.Ipe.PathParser Methods Source # Instance detailsDefined in Data.Geometry.Ipe.PathParser Methods

Running the parsers

data Either' l r Source #

Constructors

 Left' l Right' r
Instances
 (Eq l, Eq r) => Eq (Either' l r) Source # Instance detailsDefined in Data.Geometry.Ipe.PathParser Methods(==) :: Either' l r -> Either' l r -> Bool #(/=) :: Either' l r -> Either' l r -> Bool # (Show l, Show r) => Show (Either' l r) Source # Instance detailsDefined in Data.Geometry.Ipe.PathParser MethodsshowsPrec :: Int -> Either' l r -> ShowS #show :: Either' l r -> String #showList :: [Either' l r] -> ShowS # (Semigroup l, Semigroup r) => Semigroup (Either' l r) Source # Instance detailsDefined in Data.Geometry.Ipe.PathParser Methods(<>) :: Either' l r -> Either' l r -> Either' l r #sconcat :: NonEmpty (Either' l r) -> Either' l r #stimes :: Integral b => b -> Either' l r -> Either' l r # (Semigroup l, Semigroup r, Monoid r) => Monoid (Either' l r) Source # Instance detailsDefined in Data.Geometry.Ipe.PathParser Methodsmempty :: 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 :: forall r. 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.