The Adapter
Typeclass instances adapting ancient planar energies into modern functional streams.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Adapter
ARCANUM SCHOOL: Transmutation // Geomancy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PURE FUNCTIONAL VOID SIGIL //
module Adapter where
class ModernSpell s where invoke :: s -> String
data AncientScroll = AncientScroll
readScroll :: AncientScroll -> String
readScroll _ = "Ancient Power"
instance ModernSpell AncientScroll where invoke = readScroll
Runic Tags:
#adapter
#typeclasses
#structural