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

Safe HaskellNone
LanguageHaskell2010

Duckling.Types

Documentation

data Token Source #

Constructors

(Resolve a, Eq a, Hashable a, Show a, NFData a) => Token (Dimension a) a 

Instances

Eq Token Source # 

Methods

(==) :: Token -> Token -> Bool #

(/=) :: Token -> Token -> Bool #

Show Token Source # 

Methods

showsPrec :: Int -> Token -> ShowS #

show :: Token -> String #

showList :: [Token] -> ShowS #

NFData Token Source # 

Methods

rnf :: Token -> () #

Hashable Token Source # 

Methods

hashWithSalt :: Int -> Token -> Int

hash :: Token -> Int

data Node Source #

Constructors

Node 

Fields

Instances

Eq Node Source # 

Methods

(==) :: Node -> Node -> Bool #

(/=) :: Node -> Node -> Bool #

Show Node Source # 

Methods

showsPrec :: Int -> Node -> ShowS #

show :: Node -> String #

showList :: [Node] -> ShowS #

Generic Node Source # 

Associated Types

type Rep Node :: * -> * #

Methods

from :: Node -> Rep Node x #

to :: Rep Node x -> Node #

NFData Node Source # 

Methods

rnf :: Node -> () #

Hashable Node Source # 

Methods

hashWithSalt :: Int -> Node -> Int

hash :: Node -> Int

type Rep Node Source # 

data Range Source #

Constructors

Range Int Int 

Instances

Eq Range Source # 

Methods

(==) :: Range -> Range -> Bool #

(/=) :: Range -> Range -> Bool #

Ord Range Source # 

Methods

compare :: Range -> Range -> Ordering #

(<) :: Range -> Range -> Bool #

(<=) :: Range -> Range -> Bool #

(>) :: Range -> Range -> Bool #

(>=) :: Range -> Range -> Bool #

max :: Range -> Range -> Range #

min :: Range -> Range -> Range #

Show Range Source # 

Methods

showsPrec :: Int -> Range -> ShowS #

show :: Range -> String #

showList :: [Range] -> ShowS #

Generic Range Source # 

Associated Types

type Rep Range :: * -> * #

Methods

from :: Range -> Rep Range x #

to :: Rep Range x -> Range #

NFData Range Source # 

Methods

rnf :: Range -> () #

Hashable Range Source # 

Methods

hashWithSalt :: Int -> Range -> Int

hash :: Range -> Int

type Rep Range Source # 

data PatternItem Source #

Constructors

Regex Regex 
Predicate Predicate 

data Rule Source #

Constructors

Rule 

Fields

Instances

data Entity Source #

Constructors

Entity 

Fields

Instances

Eq Entity Source # 

Methods

(==) :: Entity -> Entity -> Bool #

(/=) :: Entity -> Entity -> Bool #

Show Entity Source # 
Generic Entity Source # 

Associated Types

type Rep Entity :: * -> * #

Methods

from :: Entity -> Rep Entity x #

to :: Rep Entity x -> Entity #

NFData Entity Source # 

Methods

rnf :: Entity -> () #

ToJSON Entity Source # 

Methods

toJSON :: Entity -> Value

toEncoding :: Entity -> Encoding

toJSONList :: [Entity] -> Value

toEncodingList :: [Entity] -> Encoding

type Rep Entity Source # 

toJText :: ToJSON x => x -> Text Source #