duckling-0.2.0.0: A Haskell library for parsing text into structured data.
Safe HaskellNone
LanguageHaskell2010

Duckling.Dimensions.Types

Synopsis

Documentation

data Seal s where Source #

Constructors

Seal :: s a -> Seal s 

Instances

Instances details
GEq s => Eq (Seal s) Source # 
Instance details

Defined in Duckling.Types

Methods

(==) :: Seal s -> Seal s -> Bool #

(/=) :: Seal s -> Seal s -> Bool #

GShow s => Show (Seal s) Source # 
Instance details

Defined in Duckling.Types

Methods

showsPrec :: Int -> Seal s -> ShowS #

show :: Seal s -> String #

showList :: [Seal s] -> ShowS #

Hashable (Seal Dimension) Source # 
Instance details

Defined in Duckling.Types

TextShow (Seal Dimension) Source # 
Instance details

Defined in Duckling.Types

data Dimension a where Source #

GADT for differentiating between dimensions Each dimension should have its own constructor and provide the data structure for its parsed data

Instances

Instances details
Show (Dimension a) Source # 
Instance details

Defined in Duckling.Types

Hashable (Dimension a) Source # 
Instance details

Defined in Duckling.Types

Methods

hashWithSalt :: Int -> Dimension a -> Int #

hash :: Dimension a -> Int #

Hashable (Seal Dimension) Source # 
Instance details

Defined in Duckling.Types

TextShow (Dimension a) Source # 
Instance details

Defined in Duckling.Types

TextShow (Seal Dimension) Source # 
Instance details

Defined in Duckling.Types

GShow Dimension Source # 
Instance details

Defined in Duckling.Types

Methods

gshowsPrec :: forall (a :: k). Int -> Dimension a -> ShowS #

GEq Dimension Source # 
Instance details

Defined in Duckling.Types

Methods

geq :: forall (a :: k) (b :: k). Dimension a -> Dimension b -> Maybe (a :~: b) #