The Facade of Web Runes
Provide a simplified, unified rune array to complex subsystem grimories.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Facade
ARCANUM SCHOOL: Illusion // Interface Masking
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PURESCRIPT PATTERN //
module Arcane.Facade where
import Prelude
-- Complex sub-systems
summoningCircle :: { draw :: String -> String }
summoningCircle = { draw: \demon -> "Drawing circle for " <> demon }
incantation :: { chant :: String -> String }
incantation = { chant: \words -> "Chanting: " <> words }
pactBinding :: { seal :: String -> String }
pactBinding = { seal: \entity -> "Sealing pact with " <> entity }
-- The Facade
type WarlockAPI = { summonDemon :: String -> String }
warlockFacade :: WarlockAPI
warlockFacade =
{ summonDemon: \name ->
summoningCircle.draw name <> " | " <>
incantation.chant "Zal'garoth Kaza!" <> " | " <>
pactBinding.seal name
}
Runic Tags:
#structural
#facade
#purescript
#runes