Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Defines configurable options for Chess-engine Communications-protocol, as used by XBoard; https://www.gnu.org/software/xboard/engine-intf.html https://en.wikipedia.org/wiki/Chess_Engine_Communication_Protocol.
Synopsis
- data CECPOptions
- tag :: String
- analyseModeTag :: String
- displaySANTag :: String
- editModeTag :: String
- forceModeTag :: String
- ponderModeTag :: String
- postModeTag :: String
- protocolVersionTag :: String
- getNamedModes :: CECPOptions -> [(String, Mode)]
- mkCECPOptions :: Mode -> Bool -> Mode -> Mode -> Maybe NominalDiffTime -> Mode -> Mode -> ProtocolVersion -> CECPFeatures -> CECPOptions
- setProtocolVersion :: ProtocolVersion -> Transformation
- updateFeature :: Feature -> Transformation
- deleteFeature :: Feature -> Transformation
- resetModes :: Transformation
Types
Type-synonyms
Data-types
data CECPOptions Source #
Defines options related to CECP.
Instances
Eq CECPOptions Source # | |
Defined in BishBosh.Input.CECPOptions (==) :: CECPOptions -> CECPOptions -> Bool # (/=) :: CECPOptions -> CECPOptions -> Bool # | |
Show CECPOptions Source # | |
Defined in BishBosh.Input.CECPOptions showsPrec :: Int -> CECPOptions -> ShowS # show :: CECPOptions -> String # showList :: [CECPOptions] -> ShowS # | |
NFData CECPOptions Source # | |
Defined in BishBosh.Input.CECPOptions rnf :: CECPOptions -> () # | |
Default CECPOptions Source # | |
Defined in BishBosh.Input.CECPOptions def :: CECPOptions # | |
XmlPickler CECPOptions Source # | |
Defined in BishBosh.Input.CECPOptions xpickle :: PU CECPOptions # |
Constants
analyseModeTag :: String Source #
Used to qualify XML.
displaySANTag :: String Source #
Used to qualify XML.
editModeTag :: String Source #
Used to qualify XML.
forceModeTag :: String Source #
Used to qualify XML.
ponderModeTag :: String Source #
Used to qualify XML.
postModeTag :: String Source #
Used to qualify XML.
protocolVersionTag :: String Source #
Used to qualify XML.
Functions
getNamedModes :: CECPOptions -> [(String, Mode)] Source #
Get an association-list of named modes.
Constructors
:: Mode | Analyse-mode. |
-> Bool | Display SAN. |
-> Mode | Edit-mode. |
-> Mode | Force-mode. |
-> Maybe NominalDiffTime | Paused. |
-> Mode | Ponder-mode. |
-> Mode | Post-mode. |
-> ProtocolVersion | |
-> CECPFeatures | |
-> CECPOptions |
Smart constructor.
Mutators
setProtocolVersion :: ProtocolVersion -> Transformation Source #
Mutator.
updateFeature :: Feature -> Transformation Source #
Mutator.
deleteFeature :: Feature -> Transformation Source #
Mutator.
resetModes :: Transformation Source #
Reset all modes but leave the remaining fields unaltered.