duckling-0.1.6.1: 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

AU 
BE 
BZ 
CA 
CN 
GB 
HK 
IE 
IN 
JM 
MO 
NL 
NZ 
PH 
TT 
TW 
US 
ZA 

Instances

Bounded Region Source # 
Enum Region Source # 
Eq Region Source # 

Methods

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

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

Ord Region Source # 
Read Region Source # 
Show Region Source # 
Generic Region Source # 

Associated Types

type Rep Region :: * -> * #

Methods

from :: Region -> Rep Region x #

to :: Rep Region x -> Region #

Hashable Region Source # 

Methods

hashWithSalt :: Int -> Region -> Int #

hash :: Region -> Int #

TextShow Region Source # 
type Rep Region Source # 
type Rep Region = D1 * (MetaData "Region" "Duckling.Region" "duckling-0.1.6.1-83m0Jl1y16C43giMGsHrS3" False) ((:+:) * ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "AU" PrefixI False) (U1 *)) (C1 * (MetaCons "BE" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "BZ" PrefixI False) (U1 *)) (C1 * (MetaCons "CA" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "CN" PrefixI False) (U1 *)) (C1 * (MetaCons "GB" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "HK" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "IE" PrefixI False) (U1 *)) (C1 * (MetaCons "IN" PrefixI False) (U1 *)))))) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "JM" PrefixI False) (U1 *)) (C1 * (MetaCons "MO" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "NL" PrefixI False) (U1 *)) (C1 * (MetaCons "NZ" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "PH" PrefixI False) (U1 *)) (C1 * (MetaCons "TT" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "TW" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "US" PrefixI False) (U1 *)) (C1 * (MetaCons "ZA" PrefixI False) (U1 *)))))))