| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Haskell.Brittany.Internal.Config
- data CConfig f = Config {}
- data CDebugConfig f = DebugConfig {
- _dconf_dump_config :: f (Last Bool)
- _dconf_dump_annotations :: f (Last Bool)
- _dconf_dump_ast_unknown :: f (Last Bool)
- _dconf_dump_ast_full :: f (Last Bool)
- _dconf_dump_bridoc_raw :: f (Last Bool)
- _dconf_dump_bridoc_simpl_alt :: f (Last Bool)
- _dconf_dump_bridoc_simpl_floating :: f (Last Bool)
- _dconf_dump_bridoc_simpl_par :: f (Last Bool)
- _dconf_dump_bridoc_simpl_columns :: f (Last Bool)
- _dconf_dump_bridoc_simpl_indent :: f (Last Bool)
- _dconf_dump_bridoc_final :: f (Last Bool)
- _dconf_roundtrip_exactprint_only :: f (Last Bool)
- data CLayoutConfig f = LayoutConfig {
- _lconfig_cols :: f (Last Int)
- _lconfig_indentPolicy :: f (Last IndentPolicy)
- _lconfig_indentAmount :: f (Last Int)
- _lconfig_indentWhereSpecial :: f (Last Bool)
- _lconfig_indentListSpecial :: f (Last Bool)
- _lconfig_importColumn :: f (Last Int)
- _lconfig_altChooser :: f (Last AltChooser)
- _lconfig_columnAlignMode :: f (Last ColumnAlignMode)
- _lconfig_alignmentLimit :: f (Last Int)
- _lconfig_alignmentBreakOnMultiline :: f (Last Bool)
- _lconfig_hangingTypeSignature :: f (Last Bool)
- type DebugConfig = CDebugConfig Identity
- type LayoutConfig = CLayoutConfig Identity
- type Config = CConfig Identity
- configParser :: CmdParser Identity out (CConfig Option)
- staticDefaultConfig :: Config
- forwardOptionsSyntaxExtsEnabled :: ForwardOptions
- readConfig :: MonadIO m => FilePath -> MaybeT m (Maybe (CConfig Option))
- writeDefaultConfig :: MonadIO m => FilePath -> m ()
- showConfigYaml :: Config -> String
Documentation
Constructors
| Config | |
Fields
| |
data CDebugConfig f #
Constructors
| DebugConfig | |
Fields
| |
Instances
| CZipWith CDebugConfig # | |
| Data (CDebugConfig Identity) # | |
| Show (CDebugConfig Option) # | |
| Show (CDebugConfig Identity) # | |
| Generic (CDebugConfig f) # | |
| Semigroup (CDebugConfig Option) # | |
| Semigroup (CDebugConfig Identity) # | |
| Monoid (CDebugConfig Option) # | |
| type Rep (CDebugConfig f) # | |
data CLayoutConfig f #
Constructors
| LayoutConfig | |
Fields
| |
Instances
| CZipWith CLayoutConfig # | |
| Data (CLayoutConfig Identity) # | |
| Show (CLayoutConfig Option) # | |
| Show (CLayoutConfig Identity) # | |
| Generic (CLayoutConfig f) # | |
| Semigroup (CLayoutConfig Option) # | |
| Semigroup (CLayoutConfig Identity) # | |
| Monoid (CLayoutConfig Option) # | |
| type Rep (CLayoutConfig f) # | |
type DebugConfig = CDebugConfig Identity #
type LayoutConfig = CLayoutConfig Identity #
readConfig :: MonadIO m => FilePath -> MaybeT m (Maybe (CConfig Option)) #
Reads a config from a file. If the file does not exist, returns Nothing. If the file exists and parsing fails, prints to stderr and aborts the MaybeT. Otherwise succeed via Just. If the second parameter is True and the file does not exist, writes the staticDefaultConfig to the file.
writeDefaultConfig :: MonadIO m => FilePath -> m () #
showConfigYaml :: Config -> String #