λ HASKELL SIGILS DIFFICULTY: Adept Behavioral

The Observer

FRP and reactive conduits to react to the changing void.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Observer
ARCANUM SCHOOL: Divination // Reactive
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PURE FUNCTIONAL VOID SIGIL //
module Observer where
type Observer = String -> IO ()
notify :: [Observer] -> String -> IO ()
notify obs msg = mapM_ ($ msg) obs
Runic Tags: #observer #frp #behavioral