This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Control.Monad.Eff.Alt where | |
import Control.Bind (bind) | |
import Control.Monad.Eff.Exception (Error) | |
import Partial.Unsafe (unsafeCrashWith) | |
import Prelude (liftA1, class Functor, class Applicative, class Monad, ap, class Apply, class Bind, class Show, Unit) | |
-- This illustrates an alternative way to use the type system to model | |
-- effects, where the effects type is a "regular" type, and the effects |