Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 411 Bytes

File metadata and controls

7 lines (4 loc) · 411 Bytes

InterpretHalogenHooks

Demonstrates how to use a custom monad (in this case, using ReaderT with Aff as the effect type) for a component, and then interpreting that custom monad back down to Aff, so it can be run as a normal component.

This can be used, for example, to implement a read-only configuration for your application, or a global state if you store a mutable reference.

Expected Behavior: