egison-pattern-src-0.1.0.0: src/Language/Egison/Parser/Pattern/Prim/Source.hs
-- |
--
-- Module: Language.Egison.Parser.Pattern.Prim.Source
-- Description: Constraint for the source of parser
-- Stability: experimental
--
-- A constraint and property of the source of parser
module Language.Egison.Parser.Pattern.Prim.Source
( Source
, Token
, Tokens
)
where
import qualified Text.Megaparsec as Parsec
( Stream(..) )
import Language.Egison.Parser.Pattern.Token
( IsToken )
-- | Constraint for the source of parser.
type Source s = (Parsec.Stream s, IsToken (Token s))
-- | Type of token in the source.
type Token s = Parsec.Token s
-- | Type of tokens in the source.
type Tokens s = Parsec.Tokens s