packages feed

MultiChor-1.0.0.0: src/Choreography.hs

-- | This is just a wrapper module to allow more concise imports.
--     For documentation, you should probably start in "Choreography.Core".
module Choreography
  ( module Choreography.Core,
    module Choreography.Choreography,
    module Choreography.Choreography.Batteries,
    module Choreography.Locations,
    module Choreography.Locations.Batteries,
    module Choreography.Network,
    module Choreography.Polymorphism,

    -- * Running choreographies
    runChoreography,
  )
where

import Choreography.Choreography
import Choreography.Choreography.Batteries
import Choreography.Core
import Choreography.Locations
import Choreography.Locations.Batteries
import Choreography.Network
import Choreography.Polymorphism
import Control.Monad.IO.Class (MonadIO)

-- | Run a choreography with a message transport backend...
runChoreography :: (Backend config, MonadIO m, KnownSymbols ps) => config -> Choreo ps m a -> LocTm -> m a
runChoreography cfg choreo l = runNetwork cfg l (epp choreo l)