floskell-0.11.1: A flexible Haskell source code pretty printer
Safe HaskellSafe-Inferred
LanguageHaskell2010

Floskell

Description

Haskell indenter.

Synopsis

Configuration

data AppConfig Source #

Instances

Instances details
FromJSON AppConfig Source # 
Instance details

Defined in Floskell.ConfigFile

ToJSON AppConfig Source # 
Instance details

Defined in Floskell.ConfigFile

Generic AppConfig Source # 
Instance details

Defined in Floskell.ConfigFile

Associated Types

type Rep AppConfig :: Type -> Type #

type Rep AppConfig Source # 
Instance details

Defined in Floskell.ConfigFile

type Rep AppConfig = D1 ('MetaData "AppConfig" "Floskell.ConfigFile" "floskell-0.11.1-69ZXPOFcUar7H9kSSNPhPV" '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.

readAppConfig :: FilePath -> IO AppConfig Source #

Load a configuration file.

Formatting functions.

reformat :: AppConfig -> Maybe FilePath -> Text -> Either String Text Source #

Format the given source.

Style

data Style Source #

A printer style.

Constructors

Style 

Fields

styles :: [Style] Source #

Styles list, useful for programmatically choosing.

Testing

defaultExtensions :: [Extension] Source #

Default extensions.