katydid-0.4.0.2: A haskell implementation of Katydid

Safe HaskellSafe
LanguageHaskell2010

Data.Katydid.Relapse.Exprs.Contains

Description

This module contains the Relapse contains expressions.

Synopsis

Documentation

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

mkContainsExpr dynamically creates a contains expression, if the two input types are:

  • String and String where the second string is the possible substring.
  • A List of :Strings, Ints or Uints paired with a String, Int or Uint respectively.

containsStringExpr :: Expr Text -> Expr Text -> Expr Bool Source #

containsStringExpr creates a contains expression that returns true if the second string is a substring of the first.

containsExpr :: Eq a => Expr a -> Expr [a] -> Expr Bool Source #

containsExpr creates a contains expression that returns true if the first argument is an element in the second list argument.