The Command
Reifying spells into data structures to be evaluated later.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Command
ARCANUM SCHOOL: Evocation // Storage
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PURE FUNCTIONAL VOID SIGIL //
module Command where
data Command = Print String | Beep
execute :: Command -> IO ()
execute (Print s) = putStrLn s
execute Beep = putStrLn "BEEP!"
Runic Tags:
#command
#adt
#behavioral