Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data SpecFolders = SpecFolders {}
- data InteractiveRuntimeEnv
- data InteractiveCommandOptions = InteractiveCommandOptions {}
- type InteractiveCLICommand = NapkinExceptIO InteractiveRuntimeEnv
- data InteractiveActionEnv b = InteractiveActionEnv {}
- type InteractiveAction e = forall b. ValidateSpecsRequirements b => InteractiveActionEnv b -> IO (Either e ())
- class ToInteractiveOptions a where
- chooseInteractiveCommand :: ToNapkinError e => InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> CLICommand
- reloadableAction :: ToNapkinError e => Maybe SpecFolders -> Maybe RuntimeEnv -> InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> InteractiveCLICommand
- autoReloadAction :: ToNapkinError e => InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> CLICommand
- readSpecFolders :: MonadIO m => SpecFilesWithOverrides -> YamlSpec b -> m SpecFolders
Documentation
data SpecFolders #
Instances
Eq SpecFolders # | |
Defined in Napkin.Cli.Interactive.Interactive (==) :: SpecFolders -> SpecFolders -> Bool # (/=) :: SpecFolders -> SpecFolders -> Bool # |
data InteractiveCommandOptions #
Instances
data InteractiveActionEnv b #
type InteractiveAction e = forall b. ValidateSpecsRequirements b => InteractiveActionEnv b -> IO (Either e ()) #
class ToInteractiveOptions a where #
chooseInteractiveCommand :: ToNapkinError e => InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> CLICommand #
Choose whether to run a reloadable acton interactively or not.
reloadableAction :: ToNapkinError e => Maybe SpecFolders -> Maybe RuntimeEnv -> InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> InteractiveCLICommand #
Run a reloadable action.
autoReloadAction :: ToNapkinError e => InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> CLICommand #
Wait for a spec file or a Haskell file to change and reload action.
readSpecFolders :: MonadIO m => SpecFilesWithOverrides -> YamlSpec b -> m SpecFolders #