The Facade of the Ancestral Monad
Providing a unified interface to a set of complex pure functions in the Ancestral Monad.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Facade
ARCANUM SCHOOL: Transmutation // Ancestral Monad
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// MIRANDA PATTERN //
|| The Facade hides the chaotic details behind a pure monadic boundary.
subsystem_a :: num -> num
subsystem_a x = x * x
subsystem_b :: num -> string
subsystem_b x = "Value: " ++ show x
subsystem_c :: string -> string
subsystem_c s = "*** " ++ s ++ " ***"
facade_operation :: num -> string
facade_operation x = subsystem_c (subsystem_b (subsystem_a x))
Runic Tags:
#miranda
#structural
#facade
#ancestral-monad