katydid-0.4.0.2: A haskell implementation of Katydid

Safe HaskellSafe
LanguageHaskell2010

Data.Katydid.Relapse.Exprs.Length

Description

This module contains the Relapse length expressions.

Synopsis

Documentation

mkLengthExpr :: [AnyExpr] -> Either String AnyExpr Source #

mkLengthExpr dynamically creates a length expression, if the single argument is a list, string or bytes.

lengthListExpr :: Expr [a] -> Expr Int Source #

lengthListExpr creates a length expression, that returns the length of a list.

lengthStringExpr :: Expr Text -> Expr Int Source #

lengthStringExpr creates a length expression, that returns the length of a string.

lengthBytesExpr :: Expr ByteString -> Expr Int Source #

lengthBytesExpr creates a length expression, that returns the length of bytes.