| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
ADP.Fusion.Core.Term.Switch
Description
Switches allow enabling and disabling individual rules on a global
level.
TODO Consider moving the switch status to the type level.
TODO Consider using patterns for the switch status and encode using Ints.
Synopsis
- data SwitchStatus
- data Switch where
- Switch :: !SwitchStatus -> Switch
Documentation
data SwitchStatus Source #
Explicit naming of the status of the switch.
Instances
| Eq SwitchStatus Source # | |
Defined in ADP.Fusion.Core.Term.Switch | |
| Ord SwitchStatus Source # | |
Defined in ADP.Fusion.Core.Term.Switch Methods compare :: SwitchStatus -> SwitchStatus -> Ordering # (<) :: SwitchStatus -> SwitchStatus -> Bool # (<=) :: SwitchStatus -> SwitchStatus -> Bool # (>) :: SwitchStatus -> SwitchStatus -> Bool # (>=) :: SwitchStatus -> SwitchStatus -> Bool # max :: SwitchStatus -> SwitchStatus -> SwitchStatus # min :: SwitchStatus -> SwitchStatus -> SwitchStatus # | |
| Show SwitchStatus Source # | |
Defined in ADP.Fusion.Core.Term.Switch Methods showsPrec :: Int -> SwitchStatus -> ShowS # show :: SwitchStatus -> String # showList :: [SwitchStatus] -> ShowS # | |
Terminal for the switch. The switch status is not given to any function,
since processing of the rule already indicates that the switch is enabled --
if all other symbols parse successfully. Due to consistency, the type of
result is ().
Constructors
| Switch :: !SwitchStatus -> Switch |