Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- type Variable s a = Variable IdentityT s (Ignore a)
- globalVariable :: ST s (Variable s a)
- type T = T IdentityT
- localVariable :: T s (Variable s a)
- constant :: a -> T s (Variable s a)
- assignment2 :: C w => (a -> b) -> Variable w s a -> Variable w s b -> T w s ()
- assignment3 :: C w => (a -> b -> c) -> Variable w s a -> Variable w s b -> Variable w s c -> T w s ()
- data Apply w s a
- arg :: Variable w s a -> Apply w s a
- runApply :: C w => Apply w s a -> Variable w s a -> T w s ()
- solve :: T s a -> ST s a
- query :: Variable s a -> ST s (Maybe a)
Preparation
globalVariable :: ST s (Variable s a) Source #
Posing statements
localVariable :: T s (Variable s a) Source #
assignment3 :: C w => (a -> b -> c) -> Variable w s a -> Variable w s b -> Variable w s c -> T w s () Source #
arg :: Variable w s a -> Apply w s a Source #
This function allows to generalize assignment2
and assignment3
to more arguments.
You could achieve the same with nested applications of assignment3 (,)
.