duckling-0.1.2.0: A Haskell library for parsing text into structured data.

Safe HaskellNone
LanguageHaskell2010

Duckling.Testing.Types

Documentation

type Example = (Text, TestPredicate) Source #

type NegativeCorpus = (Context, [Text]) Source #

examples :: ToJSON a => a -> [Text] -> [Example] Source #

parserCheck :: Eq a => a -> (Value -> Maybe a) -> TestPredicate Source #