| License | MIT |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
Language.Egison.Match
Description
This module defines some data types Egison pattern matching.
Documentation
data MatchingTree Source #
Constructors
| MAtom IPattern WHNFData Matcher | |
| MNode [PatternBinding] MatchingState |
Instances
| Show MatchingTree Source # | |
Defined in Language.Egison.Match Methods showsPrec :: Int -> MatchingTree -> ShowS # show :: MatchingTree -> String # showList :: [MatchingTree] -> ShowS # | |
data MatchingState Source #
Constructors
| MState | |
Fields
| |
Instances
| Show MatchingState Source # | |
Defined in Language.Egison.Match Methods showsPrec :: Int -> MatchingState -> ShowS # show :: MatchingState -> String # showList :: [MatchingState] -> ShowS # | |
type PatternBinding = (String, IPattern) Source #
data LoopPatContext Source #
data SeqPatContext Source #
Constructors
| SeqPatContext [MatchingTree] IPattern [Matcher] [WHNFData] | |
| ForallPatContext [Matcher] [WHNFData] |
nullMState :: MatchingState -> Bool Source #