Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class (Specification s, Monad m) => Script s m | m -> s where Source #
Scripts, monads for writing bigger terms.
See churchBooleans
for an example.
Define a term with a type. Note, first argument is a type.
example_ :: Term s -> m () Source #
Evaluate an example value.
comment_ :: String -> m () Source #
Write a comment to be output.
section_ :: String -> m () Source #
subsection_ :: String -> m () Source #
Dump definitions
Instances
(Specification s, Monad m) => Script s (ScriptT s m) Source # | |
Defined in Language.PTS.Script define_ :: Sym -> Term s -> TermChk s Sym -> ScriptT s m () Source # defineChk_ :: Sym -> Term s -> TermChk s Sym -> ScriptT s m () Source # defineInf_ :: Sym -> Term s -> ScriptT s m () Source # example_ :: Term s -> ScriptT s m () Source # comment_ :: String -> ScriptT s m () Source # section_ :: String -> ScriptT s m () Source # subsection_ :: String -> ScriptT s m () Source # |