katydid-0.4.0.2: A haskell implementation of Katydid

Safe HaskellSafe
LanguageHaskell2010

Data.Katydid.Relapse.Exprs.Type

Description

This module contains the Relapse type expression.

Synopsis

Documentation

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.