Safe Haskell | None |
---|---|
Language | Haskell2010 |
Haskell indenter.
Synopsis
- data AppConfig = AppConfig {
- appStyle :: Style
- appLanguage :: Language
- appExtensions :: [Extension]
- appFixities :: [Fixity]
- defaultAppConfig :: AppConfig
- findAppConfig :: IO (Maybe FilePath)
- findAppConfigIn :: FilePath -> IO (Maybe FilePath)
- readAppConfig :: FilePath -> IO AppConfig
- setStyle :: AppConfig -> Maybe String -> AppConfig
- setLanguage :: AppConfig -> Maybe String -> AppConfig
- setExtensions :: AppConfig -> [String] -> AppConfig
- setFixities :: AppConfig -> [String] -> AppConfig
- reformat :: AppConfig -> Maybe FilePath -> ByteString -> Either String ByteString
- data Style = Style {
- styleName :: !Text
- styleAuthor :: !Text
- styleDescription :: !Text
- styleConfig :: !Config
- styles :: [Style]
- defaultExtensions :: [Extension]
Configuration
AppConfig | |
|
Instances
Generic AppConfig Source # | |
ToJSON AppConfig Source # | |
Defined in Floskell.ConfigFile | |
FromJSON AppConfig Source # | |
type Rep AppConfig Source # | |
Defined in Floskell.ConfigFile type Rep AppConfig = D1 ('MetaData "AppConfig" "Floskell.ConfigFile" "floskell-0.10.6-82g7u7k8RyIBgbNp7FyVnZ" 'False) (C1 ('MetaCons "AppConfig" 'PrefixI 'True) ((S1 ('MetaSel ('Just "appStyle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Style) :*: S1 ('MetaSel ('Just "appLanguage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Language)) :*: (S1 ('MetaSel ('Just "appExtensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Extension]) :*: S1 ('MetaSel ('Just "appFixities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Fixity])))) |
defaultAppConfig :: AppConfig Source #
Default program configuration.
findAppConfig :: IO (Maybe FilePath) Source #
Try to find a configuration file based on current working directory, or in one of the application configuration directories.
Formatting functions.
reformat :: AppConfig -> Maybe FilePath -> ByteString -> Either String ByteString Source #
Format the given source.
Style
A printer style.
Style | |
|
Testing
defaultExtensions :: [Extension] Source #
Default extensions.