purescript-httpurple/Library/HTTPure/HTTPureM.purs

23 lines
629 B
Haskell
Raw Normal View History

module HTTPure.HTTPureM
( HTTPureM
2017-07-18 05:25:14 +00:00
, HTTPureEffects
) where
2017-07-10 10:17:13 +00:00
import Control.Monad.Eff as Eff
2017-07-18 05:25:14 +00:00
import Control.Monad.Eff.Exception as Exception
import Control.Monad.ST as ST
2017-07-10 10:17:13 +00:00
import Node.HTTP as HTTP
2017-07-18 05:25:14 +00:00
-- | A row of types that are used by an HTTPure server.
type HTTPureEffects e =
( http :: HTTP.HTTP
, st :: ST.ST String
, exception :: Exception.EXCEPTION
| e
)
-- | The `HTTPureM` monad represents effects run by an HTTPure server. It takes
-- | an effects row parameter which enumerates all other side-effects performed
-- | while carrying out the server actions.
2017-07-18 05:25:14 +00:00
type HTTPureM e t = Eff.Eff (HTTPureEffects e) t