Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Shell.Types
Synopsis
- data CardanoFeature = CardanoFeature {
- featureName :: Text
- featureStart :: forall m. (MonadIO m, MonadConc m) => m ()
- featureShutdown :: forall m. (MonadIO m, MonadConc m) => m ()
- data CardanoFeatureInit env dependency cardanoConfiguration featureConfiguration layer = CardanoFeatureInit {
- featureType :: !Text
- featureInit :: env -> dependency -> cardanoConfiguration -> featureConfiguration -> IO layer
- featureCleanup :: layer -> IO ()
- data NoDependency = NoDependency
- data ApplicationEnvironment
- newtype CardanoApplication = CardanoApplication {
- runCardanoApplication :: IO ()
- applicationProductionMode :: ApplicationEnvironment -> Bool
Documentation
data CardanoFeature Source #
The interface for the running feature, the high-level interface we use for running it.
Constructors
CardanoFeature | |
Fields
|
data CardanoFeatureInit env dependency cardanoConfiguration featureConfiguration layer Source #
Cardano feature initialization. We are saying "you have the responsibility to make sure you use the right context!".
Constructors
CardanoFeatureInit | |
Fields
|
data NoDependency Source #
The option to not have any additional dependency for the CardanoFeature
.
Constructors
NoDependency |
Instances
Eq NoDependency Source # | |
Defined in Cardano.Shell.Types | |
Show NoDependency Source # | |
Defined in Cardano.Shell.Types Methods showsPrec :: Int -> NoDependency -> ShowS # show :: NoDependency -> String # showList :: [NoDependency] -> ShowS # |
data ApplicationEnvironment Source #
The application environment.
Constructors
Development | |
Production |
Instances
Eq ApplicationEnvironment Source # | |
Defined in Cardano.Shell.Types Methods (==) :: ApplicationEnvironment -> ApplicationEnvironment -> Bool # (/=) :: ApplicationEnvironment -> ApplicationEnvironment -> Bool # | |
Show ApplicationEnvironment Source # | |
Defined in Cardano.Shell.Types Methods showsPrec :: Int -> ApplicationEnvironment -> ShowS # show :: ApplicationEnvironment -> String # showList :: [ApplicationEnvironment] -> ShowS # |
newtype CardanoApplication Source #
The top level module we use to run the key functions.
Constructors
CardanoApplication | |
Fields
|
applicationProductionMode :: ApplicationEnvironment -> Bool Source #
A simple function to inform us.