2017-03-08 21:33:55 +03:00
|
|
|
-- 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.Lang
|
|
|
|
( Lang(..)
|
|
|
|
) where
|
|
|
|
|
|
|
|
import Prelude
|
|
|
|
|
|
|
|
import Data.Hashable
|
|
|
|
import GHC.Generics
|
|
|
|
import TextShow (TextShow)
|
|
|
|
import qualified TextShow as TS
|
|
|
|
|
|
|
|
data Lang
|
|
|
|
= AR
|
2017-05-11 19:30:45 +03:00
|
|
|
| CS
|
2017-03-08 21:33:55 +03:00
|
|
|
| DA
|
|
|
|
| DE
|
|
|
|
| EN
|
|
|
|
| ES
|
|
|
|
| ET
|
|
|
|
| FR
|
|
|
|
| GA
|
2017-04-24 16:26:59 +03:00
|
|
|
| HE
|
2017-04-26 19:11:03 +03:00
|
|
|
| HR
|
2017-03-08 21:33:55 +03:00
|
|
|
| ID
|
|
|
|
| IT
|
|
|
|
| JA
|
|
|
|
| KO
|
|
|
|
| MY
|
|
|
|
| NB
|
|
|
|
| NL
|
|
|
|
| PL
|
|
|
|
| PT
|
|
|
|
| RO
|
|
|
|
| RU
|
|
|
|
| SV
|
|
|
|
| TR
|
|
|
|
| UK
|
|
|
|
| VI
|
|
|
|
| ZH
|
|
|
|
deriving (Bounded, Enum, Eq, Generic, Hashable, Ord, Read, Show)
|
|
|
|
|
|
|
|
instance TextShow Lang where
|
|
|
|
showb = TS.fromString . show
|