ideas-1.8: Feedback services for intelligent tutoring systems

Maintainerbastiaan.heeren@ou.nl
Stabilityprovisional
Portabilityportable (depends on ghc)
Safe HaskellNone
LanguageHaskell98

Ideas.Common.Predicate

Contents

Description

Representation for predicates

Synopsis

Predicate representation

data Predicate a Source #

Instances
Boolean (Predicate a) Source # 
Instance details

Defined in Ideas.Common.Predicate

BoolValue (Predicate a) Source # 
Instance details

Defined in Ideas.Common.Predicate

HasId (Predicate a) Source # 
Instance details

Defined in Ideas.Common.Predicate

Methods

getId :: Predicate a -> Id Source #

changeId :: (Id -> Id) -> Predicate a -> Predicate a Source #

Identify (Predicate a) Source # 
Instance details

Defined in Ideas.Common.Predicate

Methods

(@>) :: IsId n => n -> Predicate a -> Predicate a Source #

Exports from Boolean algebra

class BoolValue a where Source #

Minimal complete definition

isTrue, isFalse

Methods

true :: a Source #

false :: a Source #

fromBool :: Bool -> a Source #

isTrue :: a -> Bool Source #

isFalse :: a -> Bool Source #

Instances
BoolValue Bool Source # 
Instance details

Defined in Ideas.Common.Classes

BoolValue (Predicate a) Source # 
Instance details

Defined in Ideas.Common.Predicate

BoolValue b => BoolValue (a -> b) Source # 
Instance details

Defined in Ideas.Common.Classes

Methods

true :: a -> b Source #

false :: a -> b Source #

fromBool :: Bool -> a -> b Source #

isTrue :: (a -> b) -> Bool Source #

isFalse :: (a -> b) -> Bool Source #

class BoolValue a => Boolean a where Source #

Minimal complete definition

(<&&>), (<||>), complement

Methods

(<&&>) :: a -> a -> a Source #

(<||>) :: a -> a -> a Source #

complement :: a -> a Source #

Instances
Boolean Bool Source # 
Instance details

Defined in Ideas.Common.Classes

Boolean (Predicate a) Source # 
Instance details

Defined in Ideas.Common.Predicate

Boolean b => Boolean (a -> b) Source # 
Instance details

Defined in Ideas.Common.Classes

Methods

(<&&>) :: (a -> b) -> (a -> b) -> a -> b Source #

(<||>) :: (a -> b) -> (a -> b) -> a -> b Source #

complement :: (a -> b) -> a -> b Source #

ands :: Boolean a => [a] -> a Source #

ors :: Boolean a => [a] -> a Source #

implies :: Boolean a => a -> a -> a Source #

equivalent :: Boolean a => a -> a -> a Source #