Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module contains the Relapse length expressions.
Synopsis
- mkLengthExpr :: [AnyExpr] -> Either String AnyExpr
- lengthListExpr :: Expr [a] -> Expr Int
- lengthStringExpr :: Expr Text -> Expr Int
- lengthBytesExpr :: Expr ByteString -> Expr Int
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.