katydid-0.4.0.1: A haskell implementation of Katydid
Data.Katydid.Relapse.Exprs.Type
Description
This module contains the Relapse type expression.
mkTypeExpr :: [AnyExpr] -> Either String AnyExpr Source #
mkTypeExpr is used by the parser to create a type expression for the specific input type.
typeExpr :: Expr a -> Expr Bool Source #
typeExpr creates an expression that returns true if the containing expression does not return an error. For example: `(typeExpr varBoolExpr)` will ony return true is the field value is a bool.