mirror of
https://github.com/facebook/duckling.git
synced 2024-11-28 08:34:46 +03:00
f272a175d4
Summary: In south Netherlands and in Belgium, Sinterklaas is celebrated on December 6. Reviewed By: mullender Differential Revision: D8281767 fbshipit-source-id: 4fc71783b9f543c4dfb04b8ba8481935cfb30dd8
48 lines
965 B
Haskell
48 lines
965 B
Haskell
-- Copyright (c) 2016-present, Facebook, Inc.
|
|
-- All rights reserved.
|
|
--
|
|
-- This source code is licensed under the BSD-style license found in the
|
|
-- LICENSE file in the root directory of this source tree. An additional grant
|
|
-- of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
|
|
{-# LANGUAGE DeriveAnyClass #-}
|
|
{-# LANGUAGE DeriveGeneric #-}
|
|
{-# LANGUAGE NoRebindableSyntax #-}
|
|
|
|
module Duckling.Region
|
|
( Region(..)
|
|
) where
|
|
|
|
import Data.Hashable
|
|
import GHC.Generics
|
|
import Prelude
|
|
import TextShow (TextShow)
|
|
import qualified TextShow as TS
|
|
|
|
-- | ISO 3166-1 alpha-2 Country code (includes regions and territories).
|
|
-- See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
data Region
|
|
= AU
|
|
| BE
|
|
| BZ
|
|
| CA
|
|
| CN
|
|
| GB
|
|
| HK
|
|
| IE
|
|
| IN
|
|
| JM
|
|
| MO
|
|
| NL
|
|
| NZ
|
|
| PH
|
|
| TT
|
|
| TW
|
|
| US
|
|
| ZA
|
|
deriving (Bounded, Enum, Eq, Generic, Hashable, Ord, Read, Show)
|
|
|
|
instance TextShow Region where
|
|
showb = TS.fromString . show
|