funcmp-1.8: Functional MetaPost

Copyright(c) 2003-2010 Peter Simons
(c) 2002-2003 Ferenc Wágner
(c) 2002-2003 Meik Hellmund
(c) 1998-2002 Ralf Hinze
(c) 1998-2002 Joachim Korittky
(c) 1998-2002 Marco Kuhlmann
LicenseGPLv3
Maintainersimons@cryp.to
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

FMP.Types

Description

 

Documentation

class HasMed a where #

Minimal complete definition

med

Methods

med :: Numeric -> a -> a -> a #

Instances

HasMed Numeric # 

Methods

med :: Numeric -> Numeric -> Numeric -> Numeric #

HasMed Point # 

Methods

med :: Numeric -> Point -> Point -> Point #

class HasDefault a where #

Minimal complete definition

default'

Methods

default' :: a #

data Dir #

Constructors

C 
N 
NE 
E 
SE 
S 
SW 
W 
NW 

Instances

Enum Dir # 

Methods

succ :: Dir -> Dir #

pred :: Dir -> Dir #

toEnum :: Int -> Dir #

fromEnum :: Dir -> Int #

enumFrom :: Dir -> [Dir] #

enumFromThen :: Dir -> Dir -> [Dir] #

enumFromTo :: Dir -> Dir -> [Dir] #

enumFromThenTo :: Dir -> Dir -> Dir -> [Dir] #

Eq Dir # 

Methods

(==) :: Dir -> Dir -> Bool #

(/=) :: Dir -> Dir -> Bool #

Num Dir # 

Methods

(+) :: Dir -> Dir -> Dir #

(-) :: Dir -> Dir -> Dir #

(*) :: Dir -> Dir -> Dir #

negate :: Dir -> Dir #

abs :: Dir -> Dir #

signum :: Dir -> Dir #

fromInteger :: Integer -> Dir #

Ord Dir # 

Methods

compare :: Dir -> Dir -> Ordering #

(<) :: Dir -> Dir -> Bool #

(<=) :: Dir -> Dir -> Bool #

(>) :: Dir -> Dir -> Bool #

(>=) :: Dir -> Dir -> Bool #

max :: Dir -> Dir -> Dir #

min :: Dir -> Dir -> Dir #

Read Dir # 
Show Dir # 

Methods

showsPrec :: Int -> Dir -> ShowS #

show :: Dir -> String #

showList :: [Dir] -> ShowS #

IsName Dir # 

Methods

toName :: Dir -> Name #

toNameList :: [Dir] -> Name #

data Pen #

Instances

Eq Pen # 

Methods

(==) :: Pen -> Pen -> Bool #

(/=) :: Pen -> Pen -> Bool #

Fractional Pen # 

Methods

(/) :: Pen -> Pen -> Pen #

recip :: Pen -> Pen #

fromRational :: Rational -> Pen #

Num Pen # 

Methods

(+) :: Pen -> Pen -> Pen #

(-) :: Pen -> Pen -> Pen #

(*) :: Pen -> Pen -> Pen #

negate :: Pen -> Pen #

abs :: Pen -> Pen #

signum :: Pen -> Pen #

fromInteger :: Integer -> Pen #

Read Pen # 
Show Pen # 

Methods

showsPrec :: Int -> Pen -> ShowS #

show :: Pen -> String #

showList :: [Pen] -> ShowS #

HasDefault Pen # 

Methods

default' :: Pen #

data Numeric #

Instances

Enum Numeric # 
Eq Numeric # 

Methods

(==) :: Numeric -> Numeric -> Bool #

(/=) :: Numeric -> Numeric -> Bool #

Floating Numeric # 
Fractional Numeric # 
Num Numeric # 
Ord Numeric # 
Read Numeric # 
Real Numeric # 
Show Numeric # 
HasCond Numeric # 

Methods

cond :: Boolean -> Numeric -> Numeric -> Numeric #

HasMed Numeric # 

Methods

med :: Numeric -> Numeric -> Numeric -> Numeric #

IsPicture Numeric # 

data FunPN #

Constructors

PNXPart 
PNYPart 
PNAngle 

class HasRelax a where #

Minimal complete definition

relax

Methods

relax :: a #

class HasCond a where #

Minimal complete definition

cond

Methods

cond :: Boolean -> a -> a -> a #

Instances

xy :: Point -> Point -> Point #

(.*) :: Numeric -> Point -> Point infixr 7 #

pi :: Floating a => a #

exp :: Floating a => a -> a #

log :: Floating a => a -> a #

sqrt :: Floating a => a -> a #

(**) :: Floating a => a -> a -> a #

sin :: Floating a => a -> a #

cos :: Floating a => a -> a #

tan :: Floating a => a -> a #

asin :: Floating a => a -> a #

acos :: Floating a => a -> a #

atan :: Floating a => a -> a #

sinh :: Floating a => a -> a #

cosh :: Floating a => a -> a #

tanh :: Floating a => a -> a #

asinh :: Floating a => a -> a #

acosh :: Floating a => a -> a #

atanh :: Floating a => a -> a #

width :: IsName a => a -> Numeric #

height :: IsName a => a -> Numeric #

(.=) :: IsEquation a => a -> a -> Equation infixr 5 #

(.==) :: IsBoolean a => a -> a -> Boolean #

(./=) :: IsBoolean a => a -> a -> Boolean #

(.<) :: IsBoolean a => a -> a -> Boolean #

(.<=) :: IsBoolean a => a -> a -> Boolean #

equal :: IsEquation a => [a] -> Equation #

whatever :: HasWhatever a => a #

data Name #

Instances

Eq Name # 

Methods

(==) :: Name -> Name -> Bool #

(/=) :: Name -> Name -> Bool #

Ord Name # 

Methods

compare :: Name -> Name -> Ordering #

(<) :: Name -> Name -> Bool #

(<=) :: Name -> Name -> Bool #

(>) :: Name -> Name -> Bool #

(>=) :: Name -> Name -> Bool #

max :: Name -> Name -> Name #

min :: Name -> Name -> Name #

Read Name # 
Show Name # 

Methods

showsPrec :: Int -> Name -> ShowS #

show :: Name -> String #

showList :: [Name] -> ShowS #

IsName Name # 

Methods

toName :: Name -> Name #

toNameList :: [Name] -> Name #

IsPath Name # 

Methods

toPath :: Name -> Path #

toPathList :: [Name] -> Path #

global :: IsName a => a -> Name #

ref :: IsName a => a -> Point #

var :: IsName a => a -> Numeric #

(<+) :: (IsName a, IsName b) => a -> b -> Name infixr 0 #

(<*) :: IsName a => Int -> a -> Name infixr 0 #

class IsName a where #

Minimal complete definition

toName

Methods

toName :: a -> Name #

toNameList :: [a] -> Name #

Instances

IsName Char # 

Methods

toName :: Char -> Name #

toNameList :: [Char] -> Name #

IsName Int # 

Methods

toName :: Int -> Name #

toNameList :: [Int] -> Name #

IsName Name # 

Methods

toName :: Name -> Name #

toNameList :: [Name] -> Name #

IsName Dir # 

Methods

toName :: Dir -> Name #

toNameList :: [Dir] -> Name #

IsName NodeName # 
IsName a => IsName [a] # 

Methods

toName :: [a] -> Name #

toNameList :: [[a]] -> Name #