IOTasks-2.2.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.IOTasks.Term.Prelude

Synopsis

Accessors

currentValue :: (Typeable a, VarExp e) => e a -> Term k a Source #

Defined as currentValue = valueBefore 0, providing access to the current value.

allValues :: (Typeable a, VarExp e) => e a -> Term k [a] Source #

Defined as allValues = valuesBefore 0, providing access to all values.

valueBefore :: (Typeable a, VarExp e) => Int -> e a -> Term k a Source #

If the variable-expression x is associated with the values [x_1,..,x_n], valueBefore i x provides access to x_(n-i).

valuesBefore :: (Typeable a, VarExp e) => Int -> e a -> Term k [a] Source #

If the variable-expression x is associated with the values [x_1,..,x_n], valuesBefore i x provides access to [x_1,..,x_(n-i)].

Arithmetic functions

Comparison functions

(.==.) :: (Typeable a, Eq a) => Term k a -> Term k a -> Term k Bool Source #

(./=.) :: (Typeable a, Eq a) => Term k a -> Term k a -> Term k Bool Source #

(.>.) :: (Typeable a, Ord a) => Term k a -> Term k a -> Term k Bool Source #

(.>=.) :: (Typeable a, Ord a) => Term k a -> Term k a -> Term k Bool Source #

(.<.) :: (Typeable a, Ord a) => Term k a -> Term k a -> Term k Bool Source #

(.<=.) :: (Typeable a, Ord a) => Term k a -> Term k a -> Term k Bool Source #

Boolean functions

embedded values

Simple list functions

length' :: Typeable a => Term k [a] -> Term k Integer Source #

reverse' :: Typeable a => Term k [a] -> Term k [a] Source #

isIn :: (Typeable a, Eq a) => Term k a -> Term k [a] -> Term k Bool Source #

isNotIn :: (Typeable a, Eq a) => Term k a -> Term k [a] -> Term k Bool Source #

listLit :: (Show a, Typeable a) => [a] -> Term k [a] Source #

Complexer list functions

Lifting of opaque functions

liftOpaque :: (Typeable a, Typeable b) => (a -> b, String) -> Term k a -> Term 'PartiallyOpaque b Source #

liftOpaque2 :: (Typeable a, Typeable b, Typeable c) => (a -> b -> c, String) -> Term k a -> Term k b -> Term 'PartiallyOpaque c Source #