-- 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.


{-# LANGUAGE GADTs #-}


module Duckling.Rules.Common
  ( rules
  ) where

import Duckling.Dimensions.Types
import Duckling.Types
import qualified Duckling.AmountOfMoney.Rules as AmountOfMoney
import qualified Duckling.CreditCardNumber.Rules as CreditCardNumber
import qualified Duckling.Distance.Rules as Distance
import qualified Duckling.Duration.Rules as Duration
import qualified Duckling.Email.Rules as Email
import qualified Duckling.Numeral.Rules as Numeral
import qualified Duckling.PhoneNumber.Rules as PhoneNumber
import qualified Duckling.Temperature.Rules as Temperature
import qualified Duckling.Url.Rules as Url
import qualified Duckling.Volume.Rules as Volume

rules :: Seal Dimension -> [Rule]
rules :: Seal Dimension -> [Rule]
rules (Seal Dimension a
AmountOfMoney) = [Rule]
AmountOfMoney.rules
rules (Seal Dimension a
CreditCardNumber) = [Rule]
CreditCardNumber.rules
rules (Seal Dimension a
Distance) = [Rule]
Distance.rules
rules (Seal Dimension a
Duration) = [Rule]
Duration.rules
rules (Seal Dimension a
Email) = [Rule]
Email.rules
rules (Seal Dimension a
Numeral) = [Rule]
Numeral.rules
rules (Seal Dimension a
Ordinal) = []
rules (Seal Dimension a
PhoneNumber) = [Rule]
PhoneNumber.rules
rules (Seal Dimension a
Quantity) = []
rules (Seal Dimension a
RegexMatch) = []
rules (Seal Dimension a
Temperature) = [Rule]
Temperature.rules
rules (Seal Dimension a
Time) = []
rules (Seal Dimension a
TimeGrain) = []
rules (Seal Dimension a
Url) = [Rule]
Url.rules
rules (Seal Dimension a
Volume) = [Rule]
Volume.rules
rules (Seal (CustomDimension a
dim)) = a -> [Rule]
forall a. CustomDimension a => a -> [Rule]
dimRules a
dim