Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (34 sloc) 829 Bytes
-- |
-- Module : Data.BERT.Types
-- Copyright : (c) marius a. eriksen 2009
--
-- License : BSD3
-- Maintainer : marius@monkey.org
-- Stability : experimental
-- Portability : GHC
--
-- The Term type.
module Data.BERT.Types
( Term(..)
) where
import Data.ByteString.Lazy (ByteString)
import Data.Time (UTCTime)
-- | A single BERT term.
data Term
-- Simple (erlang) terms:
= IntTerm Int
| FloatTerm Float
| AtomTerm String
| TupleTerm [Term]
| BytelistTerm ByteString
| ListTerm [Term]
| BinaryTerm ByteString
| BigintTerm Integer
| BigbigintTerm Integer
-- Composite (BERT specific) terms:
| NilTerm
| BoolTerm Bool
| DictionaryTerm [(Term, Term)]
| TimeTerm UTCTime
| RegexTerm String [String]
deriving (Eq, Ord)