Safe Haskell | None |
---|---|
Language | Haskell98 |
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
- showStyle :: Style -> String
- showLanguage :: Language -> String
- showExtension :: Extension -> String
- showFixity :: Fixity -> String
- lookupStyle :: String -> Style
- lookupLanguage :: String -> Language
- lookupExtension :: String -> Extension
- lookupFixity :: String -> Fixity
- setStyle :: AppConfig -> Maybe String -> AppConfig
- setLanguage :: AppConfig -> Maybe String -> AppConfig
- setExtensions :: AppConfig -> [String] -> AppConfig
- setFixities :: AppConfig -> [String] -> AppConfig
Documentation
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.0-80IOxP9iKCgpN1x1iUKU" 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.
showLanguage :: Language -> String Source #
Show a Haskell language name.
showExtension :: Extension -> String Source #
Show a Haskell language extension.
showFixity :: Fixity -> String Source #
Show a fixity declaration.
lookupStyle :: String -> Style Source #
Lookup a style by name.
lookupLanguage :: String -> Language Source #
Lookup a language by name.
lookupExtension :: String -> Extension Source #
Lookup an extension by name.
lookupFixity :: String -> Fixity Source #
Parse a fixity declaration.