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

Duckling.Region

Synopsis

Documentation

data Region Source #

ISO 3166-1 alpha-2 Country code (includes regions and territories). See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Constructors

AR 
AU 
BE 
BZ 
CA 
CL 
CN 
CO 
EG 
ES 
GB 
HK 
IE 
IN 
JM 
MN 
MX 
MO 
NL 
NZ 
PE 
PH 
TT 
TW 
US 
VE 
ZA 

Instances

Instances details
Bounded Region Source # 
Instance details

Defined in Duckling.Region

Enum Region Source # 
Instance details

Defined in Duckling.Region

Eq Region Source # 
Instance details

Defined in Duckling.Region

Methods

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

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

Ord Region Source # 
Instance details

Defined in Duckling.Region

Read Region Source # 
Instance details

Defined in Duckling.Region

Show Region Source # 
Instance details

Defined in Duckling.Region

Generic Region Source # 
Instance details

Defined in Duckling.Region

Associated Types

type Rep Region :: Type -> Type #

Methods

from :: Region -> Rep Region x #

to :: Rep Region x -> Region #

Hashable Region Source # 
Instance details

Defined in Duckling.Region

Methods

hashWithSalt :: Int -> Region -> Int #

hash :: Region -> Int #

TextShow Region Source # 
Instance details

Defined in Duckling.Region

type Rep Region Source # 
Instance details

Defined in Duckling.Region

type Rep Region = D1 ('MetaData "Region" "Duckling.Region" "duckling-0.2.0.0-4AU1pRwMU7E8YjNdB7ILfy" 'False) ((((C1 ('MetaCons "AR" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AU" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BE" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "BZ" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CA" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CL" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "CN" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CO" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EG" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ES" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GB" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "HK" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IE" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "IN" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "JM" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MN" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MX" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MO" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NZ" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "PE" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PH" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TT" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "TW" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "US" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "VE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ZA" 'PrefixI 'False) (U1 :: Type -> Type))))))