Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ComponentError
- data ComponentBuildError
- = DuplicatedComponentKeyDetected !Description
- | ComponentAllocationFailed !Description !SomeException
- | ComponentErrorThrown !SomeException
- | ComponentIOLiftFailed !SomeException
- newtype ComponentM a = ComponentM (IO (Either ([ComponentBuildError], BuildTable) (a, BuildTable)))
- data Build = Build {
- componentDesc :: !Description
- componentTeardown :: !Teardown
- buildElapsedTime :: !NominalDiffTime
- buildFailure :: !(Maybe SomeException)
- buildDependencies :: !(Set Description)
- newtype BuildResult = BuildResult {
- toBuildList :: [Build]
- data TeardownResult :: *
- data ComponentEvent
- buildTableToOrderedList :: BuildTable -> [Build]
- buildTableToTeardown :: Text -> BuildTable -> IO Teardown
Documentation
data ComponentError Source #
Exception thrown by the runComponentM
family of functions
ComponentRuntimeFailed | Failure raised when the Application Callback given to a |
| |
ComponentBuildFailed | Failure raised when execution of |
|
data ComponentBuildError Source #
Exception raised on the execution of IO
sub-routines used when
constructing ComponentM
values (e.g. buildComponent
)
DuplicatedComponentKeyDetected !Description | Failure thrown when using the same component key on a Component composition |
ComponentAllocationFailed !Description !SomeException | Failure thrown when the allocation sub-routine of a Component fails with an exception |
ComponentErrorThrown !SomeException | Failure thrown when calling the |
ComponentIOLiftFailed !SomeException | Failure thrown when calling |
newtype ComponentM a Source #
Represents the construction of a Component in your application, components
may be composed using a Monad
or Applicative
interface.
ComponentM (IO (Either ([ComponentBuildError], BuildTable) (a, BuildTable))) |
Contains metadata about the build of a resource from a ComponentM
value
Build | |
|
data TeardownResult :: * #
Result from a Teardown
sub-routine
data ComponentEvent Source #
An event record used to trace the execution of an application initialization and teardown
buildTableToOrderedList :: BuildTable -> [Build] Source #