reduce-equations-0.1.1.0: Simplify a set of equations by removing redundancies

Safe HaskellNone
LanguageHaskell2010

Algebra.Equation.Internal.Types

Contents

Documentation

data Term Source #

Constructors

App Term Term (Maybe Type) 
C Const 
V Var 

Instances

data Sig Source #

Constructors

Sig [Const] [Var] 

Instances

Eq Sig Source # 

Methods

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

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

Show Sig Source # 

Methods

showsPrec :: Int -> Sig -> ShowS #

show :: Sig -> String #

showList :: [Sig] -> ShowS #

Monoid Sig Source # 

Methods

mempty :: Sig #

mappend :: Sig -> Sig -> Sig #

mconcat :: [Sig] -> Sig #

data Var Source #

Constructors

Var Type Int Arity 

Instances

Eq Var Source # 

Methods

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

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

Ord Var Source # 

Methods

compare :: Var -> Var -> Ordering #

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

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

(>) :: Var -> Var -> Bool #

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

max :: Var -> Var -> Var #

min :: Var -> Var -> Var #

Show Var Source # 

Methods

showsPrec :: Int -> Var -> ShowS #

show :: Var -> String #

showList :: [Var] -> ShowS #

ToJSON Var Source # 
FromJSON Var Source # 

countArity :: Num t => Type t1 -> t Source #

type Type = Type () Source #

data Name Source #

Constructors

Name String 

Instances

withVars :: [Var] -> Sig -> Sig Source #

replaceInType :: (Eq t, Show t) => [(Type t, Type ())] -> Type t -> Type () Source #

Orphan instances