| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ormolu.Config
Description
Configuration options used by the tool.
Synopsis
- data Config region = Config {
- cfgDynOptions :: ![DynOption]
- cfgFixityOverrides :: !FixityOverrides
- cfgModuleReexports :: !ModuleReexports
- cfgDependencies :: !(Set PackageName)
- cfgUnsafe :: !Bool
- cfgDebug :: !Bool
- cfgCheckIdempotence :: !Bool
- cfgSourceType :: !SourceType
- cfgColorMode :: !ColorMode
- cfgRegion :: !region
- cfgPrinterOpts :: !PrinterOptsTotal
- cfgLocalModules :: !(Set ModuleName)
- data ColorMode
- data RegionIndices = RegionIndices {
- regionStartLine :: !(Maybe Int)
- regionEndLine :: !(Maybe Int)
- data RegionDeltas = RegionDeltas {}
- data SourceType
- defaultConfig :: Config RegionIndices
- overapproximatedDependencies :: Config region -> Set PackageName
- regionIndicesToDeltas :: Int -> RegionIndices -> RegionDeltas
- newtype DynOption = DynOption {}
- dynOptionToLocatedStr :: DynOption -> Located String
- data PrinterOpts (f :: Type -> Type) = PrinterOpts {
- poIndentation :: f Int
- poColumnLimit :: f ColumnLimit
- poFunctionArrows :: f FunctionArrowsStyle
- poCommaStyle :: f CommaStyle
- poImportExportStyle :: f ImportExportStyle
- poImportGrouping :: f ImportGrouping
- poIndentWheres :: f Bool
- poRecordBraceSpace :: f Bool
- poNewlinesBetweenDecls :: f Int
- poHaddockStyle :: f HaddockPrintStyle
- poHaddockStyleModule :: f HaddockPrintStyleModule
- poLetStyle :: f LetStyle
- poInStyle :: f InStyle
- poSingleConstraintParens :: f SingleConstraintParens
- poSingleDerivingParens :: f SingleDerivingParens
- poSortConstraints :: f Bool
- poSortDerivedClasses :: f Bool
- poSortDerivingClauses :: f Bool
- poTrailingSectionOperators :: f Bool
- poUnicode :: f Unicode
- poRespectful :: f Bool
- type PrinterOptsPartial = PrinterOpts Maybe
- type PrinterOptsTotal = PrinterOpts Identity
- defaultPrinterOpts :: PrinterOpts Identity
- defaultPrinterOptsYaml :: String
- fillMissingPrinterOpts :: forall (f :: Type -> Type). Applicative f => PrinterOpts Maybe -> PrinterOpts f -> PrinterOpts f
- resolvePrinterOpts :: [PrinterOptsPartial] -> PrinterOptsTotal
- data CommaStyle
- data FunctionArrowsStyle
- data HaddockPrintStyle
- data HaddockPrintStyleModule
- data ImportExportStyle
- data ImportGrouping
- data ImportGroup = ImportGroup {}
- data ImportGroupRule = ImportGroupRule {}
- data ImportModuleMatcher
- newtype ImportRulePriority = ImportRulePriority Word8
- matchAllRulePriority :: ImportRulePriority
- matchLocalRulePriority :: ImportRulePriority
- defaultImportRulePriority :: ImportRulePriority
- data QualifiedImportMatcher
- data LetStyle
- data InStyle
- data Unicode
- data ColumnLimit
- data SingleDerivingParens
- parsePrinterOptsCLI :: Applicative f => (forall a. PrinterOptsFieldType a => String -> String -> String -> f (Maybe a)) -> f (PrinterOpts Maybe)
- parsePrinterOptType :: PrinterOptsFieldType a => String -> Either String a
- data ConfigNotFound = ConfigNotFound {
- searchDirs :: [FilePath]
- findConfigFile :: FilePath -> IO (Either ConfigNotFound FilePath)
- configFileName :: FilePath
- data FourmoluConfig = FourmoluConfig {}
- emptyConfig :: FourmoluConfig
Documentation
Ormolu configuration.
Constructors
| Config | |
Fields
| |
Instances
Whether to use colors and other features of ANSI terminals.
Instances
| Bounded ColorMode # | |
| Enum ColorMode # | |
Defined in Ormolu.Terminal Methods succ :: ColorMode -> ColorMode # pred :: ColorMode -> ColorMode # fromEnum :: ColorMode -> Int # enumFrom :: ColorMode -> [ColorMode] # enumFromThen :: ColorMode -> ColorMode -> [ColorMode] # enumFromTo :: ColorMode -> ColorMode -> [ColorMode] # enumFromThenTo :: ColorMode -> ColorMode -> ColorMode -> [ColorMode] # | |
| Show ColorMode # | |
| Eq ColorMode # | |
data RegionIndices #
Region selection as the combination of start and end line numbers.
Constructors
| RegionIndices | |
Fields
| |
Instances
| Show RegionIndices # | |
Defined in Ormolu.Config Methods showsPrec :: Int -> RegionIndices -> ShowS # show :: RegionIndices -> String # showList :: [RegionIndices] -> ShowS # | |
| Eq RegionIndices # | |
Defined in Ormolu.Config Methods (==) :: RegionIndices -> RegionIndices -> Bool # (/=) :: RegionIndices -> RegionIndices -> Bool # | |
data RegionDeltas #
Region selection as the length of the literal prefix and the literal suffix.
Constructors
| RegionDeltas | |
Fields
| |
Instances
| Show RegionDeltas # | |
Defined in Ormolu.Config Methods showsPrec :: Int -> RegionDeltas -> ShowS # show :: RegionDeltas -> String # showList :: [RegionDeltas] -> ShowS # | |
| Eq RegionDeltas # | |
Defined in Ormolu.Config | |
data SourceType #
Type of sources that can be formatted by Ormolu.
Constructors
| ModuleSource | Consider the input as a regular Haskell module |
| SignatureSource | Consider the input as a Backpack module signature |
Instances
| Show SourceType # | |
Defined in Ormolu.Config Methods showsPrec :: Int -> SourceType -> ShowS # show :: SourceType -> String # showList :: [SourceType] -> ShowS # | |
| Eq SourceType # | |
Defined in Ormolu.Config | |
defaultConfig :: Config RegionIndices #
Default .Config RegionIndices
overapproximatedDependencies :: Config region -> Set PackageName #
Return all dependencies of the module. This includes both the declared dependencies of the component we are working with and all potential module re-export targets.
Arguments
| :: Int | Total number of lines in the input |
| -> RegionIndices | Region indices |
| -> RegionDeltas | Region deltas |
Convert RegionIndices into RegionDeltas.
A wrapper for dynamic options.
Constructors
| DynOption | |
Fields | |
Instances
| Show DynOption # | |
| Eq DynOption # | |
| Ord DynOption # | |
Fourmolu configuration
data PrinterOpts (f :: Type -> Type) #
Options controlling formatting output.
Constructors
| PrinterOpts | |
Fields
| |
Instances
| FromJSON PrinterOptsPartial # | |||||
Defined in Ormolu.Config Methods parseJSON :: Value -> Parser PrinterOptsPartial # parseJSONList :: Value -> Parser [PrinterOptsPartial] # | |||||
| Monoid PrinterOptsPartial # | |||||
Defined in Ormolu.Config Methods mempty :: PrinterOptsPartial # mappend :: PrinterOptsPartial -> PrinterOptsPartial -> PrinterOptsPartial # mconcat :: [PrinterOptsPartial] -> PrinterOptsPartial # | |||||
| Semigroup PrinterOptsPartial # | |||||
Defined in Ormolu.Config Methods (<>) :: PrinterOptsPartial -> PrinterOptsPartial -> PrinterOptsPartial # sconcat :: NonEmpty PrinterOptsPartial -> PrinterOptsPartial # stimes :: Integral b => b -> PrinterOptsPartial -> PrinterOptsPartial # | |||||
| Show PrinterOptsPartial # | |||||
Defined in Ormolu.Config Methods showsPrec :: Int -> PrinterOptsPartial -> ShowS # show :: PrinterOptsPartial -> String # showList :: [PrinterOptsPartial] -> ShowS # | |||||
| Show PrinterOptsTotal # | |||||
Defined in Ormolu.Config Methods showsPrec :: Int -> PrinterOptsTotal -> ShowS # show :: PrinterOptsTotal -> String # showList :: [PrinterOptsTotal] -> ShowS # | |||||
| Eq PrinterOptsPartial # | |||||
Defined in Ormolu.Config Methods (==) :: PrinterOptsPartial -> PrinterOptsPartial -> Bool # (/=) :: PrinterOptsPartial -> PrinterOptsPartial -> Bool # | |||||
| Eq PrinterOptsTotal # | |||||
Defined in Ormolu.Config Methods (==) :: PrinterOptsTotal -> PrinterOptsTotal -> Bool # (/=) :: PrinterOptsTotal -> PrinterOptsTotal -> Bool # | |||||
| Generic (PrinterOpts f) # | |||||
Defined in Ormolu.Config.Gen Associated Types
Methods from :: PrinterOpts f -> Rep (PrinterOpts f) x # to :: Rep (PrinterOpts f) x -> PrinterOpts f # | |||||
| type Rep (PrinterOpts f) # | |||||
Defined in Ormolu.Config.Gen | |||||
type PrinterOptsPartial = PrinterOpts Maybe #
A version of PrinterOpts where any field can be empty.
This corresponds to the information in a config file or in CLI options.
type PrinterOptsTotal = PrinterOpts Identity #
A version of PrinterOpts without empty fields.
fillMissingPrinterOpts :: forall (f :: Type -> Type). Applicative f => PrinterOpts Maybe -> PrinterOpts f -> PrinterOpts f #
Fill the field values that are Nothing in the first argument
with the values of the corresponding fields of the second argument.
resolvePrinterOpts :: [PrinterOptsPartial] -> PrinterOptsTotal #
Apply the given configuration in order (later options override earlier).
data CommaStyle #
Instances
| FromJSON CommaStyle # | |
Defined in Ormolu.Config.Gen | |
| Bounded CommaStyle # | |
Defined in Ormolu.Config.Gen | |
| Enum CommaStyle # | |
Defined in Ormolu.Config.Gen Methods succ :: CommaStyle -> CommaStyle # pred :: CommaStyle -> CommaStyle # toEnum :: Int -> CommaStyle # fromEnum :: CommaStyle -> Int # enumFrom :: CommaStyle -> [CommaStyle] # enumFromThen :: CommaStyle -> CommaStyle -> [CommaStyle] # enumFromTo :: CommaStyle -> CommaStyle -> [CommaStyle] # enumFromThenTo :: CommaStyle -> CommaStyle -> CommaStyle -> [CommaStyle] # | |
| Show CommaStyle # | |
Defined in Ormolu.Config.Gen Methods showsPrec :: Int -> CommaStyle -> ShowS # show :: CommaStyle -> String # showList :: [CommaStyle] -> ShowS # | |
| Eq CommaStyle # | |
Defined in Ormolu.Config.Gen | |
data FunctionArrowsStyle #
Constructors
| TrailingArrows | |
| LeadingArrows | |
| LeadingArgsArrows |
Instances
| FromJSON FunctionArrowsStyle # | |
Defined in Ormolu.Config.Gen Methods parseJSON :: Value -> Parser FunctionArrowsStyle # parseJSONList :: Value -> Parser [FunctionArrowsStyle] # | |
| Bounded FunctionArrowsStyle # | |
Defined in Ormolu.Config.Gen | |
| Enum FunctionArrowsStyle # | |
Defined in Ormolu.Config.Gen Methods succ :: FunctionArrowsStyle -> FunctionArrowsStyle # pred :: FunctionArrowsStyle -> FunctionArrowsStyle # toEnum :: Int -> FunctionArrowsStyle # fromEnum :: FunctionArrowsStyle -> Int # enumFrom :: FunctionArrowsStyle -> [FunctionArrowsStyle] # enumFromThen :: FunctionArrowsStyle -> FunctionArrowsStyle -> [FunctionArrowsStyle] # enumFromTo :: FunctionArrowsStyle -> FunctionArrowsStyle -> [FunctionArrowsStyle] # enumFromThenTo :: FunctionArrowsStyle -> FunctionArrowsStyle -> FunctionArrowsStyle -> [FunctionArrowsStyle] # | |
| Show FunctionArrowsStyle # | |
Defined in Ormolu.Config.Gen Methods showsPrec :: Int -> FunctionArrowsStyle -> ShowS # show :: FunctionArrowsStyle -> String # showList :: [FunctionArrowsStyle] -> ShowS # | |
| Eq FunctionArrowsStyle # | |
Defined in Ormolu.Config.Gen Methods (==) :: FunctionArrowsStyle -> FunctionArrowsStyle -> Bool # (/=) :: FunctionArrowsStyle -> FunctionArrowsStyle -> Bool # | |
data HaddockPrintStyle #
Constructors
| HaddockSingleLine | |
| HaddockMultiLine | |
| HaddockMultiLineCompact |
Instances
| FromJSON HaddockPrintStyle # | |
Defined in Ormolu.Config.Gen Methods parseJSON :: Value -> Parser HaddockPrintStyle # parseJSONList :: Value -> Parser [HaddockPrintStyle] # | |
| Bounded HaddockPrintStyle # | |
Defined in Ormolu.Config.Gen | |
| Enum HaddockPrintStyle # | |
Defined in Ormolu.Config.Gen Methods succ :: HaddockPrintStyle -> HaddockPrintStyle # pred :: HaddockPrintStyle -> HaddockPrintStyle # toEnum :: Int -> HaddockPrintStyle # fromEnum :: HaddockPrintStyle -> Int # enumFrom :: HaddockPrintStyle -> [HaddockPrintStyle] # enumFromThen :: HaddockPrintStyle -> HaddockPrintStyle -> [HaddockPrintStyle] # enumFromTo :: HaddockPrintStyle -> HaddockPrintStyle -> [HaddockPrintStyle] # enumFromThenTo :: HaddockPrintStyle -> HaddockPrintStyle -> HaddockPrintStyle -> [HaddockPrintStyle] # | |
| Show HaddockPrintStyle # | |
Defined in Ormolu.Config.Gen Methods showsPrec :: Int -> HaddockPrintStyle -> ShowS # show :: HaddockPrintStyle -> String # showList :: [HaddockPrintStyle] -> ShowS # | |
| Eq HaddockPrintStyle # | |
Defined in Ormolu.Config.Gen Methods (==) :: HaddockPrintStyle -> HaddockPrintStyle -> Bool # (/=) :: HaddockPrintStyle -> HaddockPrintStyle -> Bool # | |
data HaddockPrintStyleModule #
Constructors
| PrintStyleInherit | |
| PrintStyleOverride HaddockPrintStyle |
Instances
| FromJSON HaddockPrintStyleModule # | |
Defined in Ormolu.Config.Gen Methods parseJSON :: Value -> Parser HaddockPrintStyleModule # parseJSONList :: Value -> Parser [HaddockPrintStyleModule] # | |
| Show HaddockPrintStyleModule # | |
Defined in Ormolu.Config.Gen Methods showsPrec :: Int -> HaddockPrintStyleModule -> ShowS # show :: HaddockPrintStyleModule -> String # showList :: [HaddockPrintStyleModule] -> ShowS # | |
| Eq HaddockPrintStyleModule # | |
Defined in Ormolu.Config.Gen Methods (==) :: HaddockPrintStyleModule -> HaddockPrintStyleModule -> Bool # (/=) :: HaddockPrintStyleModule -> HaddockPrintStyleModule -> Bool # | |
data ImportExportStyle #
Instances
| FromJSON ImportExportStyle # | |
Defined in Ormolu.Config.Gen Methods parseJSON :: Value -> Parser ImportExportStyle # parseJSONList :: Value -> Parser [ImportExportStyle] # | |
| Bounded ImportExportStyle # | |
Defined in Ormolu.Config.Gen | |
| Enum ImportExportStyle # | |
Defined in Ormolu.Config.Gen Methods succ :: ImportExportStyle -> ImportExportStyle # pred :: ImportExportStyle -> ImportExportStyle # toEnum :: Int -> ImportExportStyle # fromEnum :: ImportExportStyle -> Int # enumFrom :: ImportExportStyle -> [ImportExportStyle] # enumFromThen :: ImportExportStyle -> ImportExportStyle -> [ImportExportStyle] # enumFromTo :: ImportExportStyle -> ImportExportStyle -> [ImportExportStyle] # enumFromThenTo :: ImportExportStyle -> ImportExportStyle -> ImportExportStyle -> [ImportExportStyle] # | |
| Show ImportExportStyle # | |
Defined in Ormolu.Config.Gen Methods showsPrec :: Int -> ImportExportStyle -> ShowS # show :: ImportExportStyle -> String # showList :: [ImportExportStyle] -> ShowS # | |
| Eq ImportExportStyle # | |
Defined in Ormolu.Config.Gen Methods (==) :: ImportExportStyle -> ImportExportStyle -> Bool # (/=) :: ImportExportStyle -> ImportExportStyle -> Bool # | |
data ImportGrouping #
Constructors
| ImportGroupLegacy | |
| ImportGroupPreserve | |
| ImportGroupSingle | |
| ImportGroupByScope | |
| ImportGroupByQualified | |
| ImportGroupByScopeThenQualified | |
| ImportGroupCustom (NonEmpty ImportGroup) |
Instances
| FromJSON ImportGrouping # | |
Defined in Ormolu.Config.Gen Methods parseJSON :: Value -> Parser ImportGrouping # parseJSONList :: Value -> Parser [ImportGrouping] # | |
| Show ImportGrouping # | |
Defined in Ormolu.Config.Gen Methods showsPrec :: Int -> ImportGrouping -> ShowS # show :: ImportGrouping -> String # showList :: [ImportGrouping] -> ShowS # | |
| Eq ImportGrouping # | |
Defined in Ormolu.Config.Gen Methods (==) :: ImportGrouping -> ImportGrouping -> Bool # (/=) :: ImportGrouping -> ImportGrouping -> Bool # | |
data ImportGroup #
Constructors
| ImportGroup | |
Instances
| FromJSON ImportGroup # | |
Defined in Ormolu.Config.Types | |
| Show ImportGroup # | |
Defined in Ormolu.Config.Types Methods showsPrec :: Int -> ImportGroup -> ShowS # show :: ImportGroup -> String # showList :: [ImportGroup] -> ShowS # | |
| Eq ImportGroup # | |
Defined in Ormolu.Config.Types | |
data ImportGroupRule #
Constructors
| ImportGroupRule | |
Instances
| FromJSON ImportGroupRule # | |
Defined in Ormolu.Config.Types Methods parseJSON :: Value -> Parser ImportGroupRule # parseJSONList :: Value -> Parser [ImportGroupRule] # | |
| Show ImportGroupRule # | |
Defined in Ormolu.Config.Types Methods showsPrec :: Int -> ImportGroupRule -> ShowS # show :: ImportGroupRule -> String # showList :: [ImportGroupRule] -> ShowS # | |
| Eq ImportGroupRule # | |
Defined in Ormolu.Config.Types Methods (==) :: ImportGroupRule -> ImportGroupRule -> Bool # (/=) :: ImportGroupRule -> ImportGroupRule -> Bool # | |
data ImportModuleMatcher #
Constructors
| MatchAllModules | |
| MatchLocalModules | |
| MatchGlob !Glob |
Instances
| FromJSON ImportModuleMatcher # | |
Defined in Ormolu.Config.Types Methods parseJSON :: Value -> Parser ImportModuleMatcher # parseJSONList :: Value -> Parser [ImportModuleMatcher] # | |
| Show ImportModuleMatcher # | |
Defined in Ormolu.Config.Types Methods showsPrec :: Int -> ImportModuleMatcher -> ShowS # show :: ImportModuleMatcher -> String # showList :: [ImportModuleMatcher] -> ShowS # | |
| Eq ImportModuleMatcher # | |
Defined in Ormolu.Config.Types Methods (==) :: ImportModuleMatcher -> ImportModuleMatcher -> Bool # (/=) :: ImportModuleMatcher -> ImportModuleMatcher -> Bool # | |
newtype ImportRulePriority #
Constructors
| ImportRulePriority Word8 |
Instances
| FromJSON ImportRulePriority # | |
Defined in Ormolu.Config.Types Methods parseJSON :: Value -> Parser ImportRulePriority # parseJSONList :: Value -> Parser [ImportRulePriority] # | |
| Bounded ImportRulePriority # | |
Defined in Ormolu.Config.Types | |
| Show ImportRulePriority # | |
Defined in Ormolu.Config.Types Methods showsPrec :: Int -> ImportRulePriority -> ShowS # show :: ImportRulePriority -> String # showList :: [ImportRulePriority] -> ShowS # | |
| Eq ImportRulePriority # | |
Defined in Ormolu.Config.Types Methods (==) :: ImportRulePriority -> ImportRulePriority -> Bool # (/=) :: ImportRulePriority -> ImportRulePriority -> Bool # | |
| Ord ImportRulePriority # | |
Defined in Ormolu.Config.Types Methods compare :: ImportRulePriority -> ImportRulePriority -> Ordering # (<) :: ImportRulePriority -> ImportRulePriority -> Bool # (<=) :: ImportRulePriority -> ImportRulePriority -> Bool # (>) :: ImportRulePriority -> ImportRulePriority -> Bool # (>=) :: ImportRulePriority -> ImportRulePriority -> Bool # max :: ImportRulePriority -> ImportRulePriority -> ImportRulePriority # min :: ImportRulePriority -> ImportRulePriority -> ImportRulePriority # | |
data QualifiedImportMatcher #
Instances
| Show QualifiedImportMatcher # | |
Defined in Ormolu.Config.Types Methods showsPrec :: Int -> QualifiedImportMatcher -> ShowS # show :: QualifiedImportMatcher -> String # showList :: [QualifiedImportMatcher] -> ShowS # | |
| Eq QualifiedImportMatcher # | |
Defined in Ormolu.Config.Types Methods (==) :: QualifiedImportMatcher -> QualifiedImportMatcher -> Bool # (/=) :: QualifiedImportMatcher -> QualifiedImportMatcher -> Bool # | |
Constructors
| LetAuto | |
| LetInline | |
| LetNewline | |
| LetMixed |
Instances
| FromJSON LetStyle # | |
Defined in Ormolu.Config.Gen | |
| Bounded LetStyle # | |
| Enum LetStyle # | |
Defined in Ormolu.Config.Gen | |
| Show LetStyle # | |
| Eq LetStyle # | |
Constructors
| InLeftAlign | |
| InRightAlign | |
| InNoSpace |
Instances
| FromJSON InStyle # | |
Defined in Ormolu.Config.Gen | |
| Bounded InStyle # | |
| Enum InStyle # | |
| Show InStyle # | |
| Eq InStyle # | |
Constructors
| UnicodeDetect | |
| UnicodeAlways | |
| UnicodeNever |
Instances
| FromJSON Unicode # | |
Defined in Ormolu.Config.Gen | |
| Bounded Unicode # | |
| Enum Unicode # | |
| Show Unicode # | |
| Eq Unicode # | |
data ColumnLimit #
Constructors
| NoLimit | |
| ColumnLimit Int |
Instances
| FromJSON ColumnLimit # | |
Defined in Ormolu.Config.Gen | |
| Show ColumnLimit # | |
Defined in Ormolu.Config.Gen Methods showsPrec :: Int -> ColumnLimit -> ShowS # show :: ColumnLimit -> String # showList :: [ColumnLimit] -> ShowS # | |
| Eq ColumnLimit # | |
Defined in Ormolu.Config.Gen | |
data SingleDerivingParens #
Constructors
| DerivingAuto | |
| DerivingAlways | |
| DerivingNever |
Instances
| FromJSON SingleDerivingParens # | |
Defined in Ormolu.Config.Gen Methods parseJSON :: Value -> Parser SingleDerivingParens # parseJSONList :: Value -> Parser [SingleDerivingParens] # | |
| Bounded SingleDerivingParens # | |
Defined in Ormolu.Config.Gen | |
| Enum SingleDerivingParens # | |
Defined in Ormolu.Config.Gen Methods succ :: SingleDerivingParens -> SingleDerivingParens # pred :: SingleDerivingParens -> SingleDerivingParens # toEnum :: Int -> SingleDerivingParens # fromEnum :: SingleDerivingParens -> Int # enumFrom :: SingleDerivingParens -> [SingleDerivingParens] # enumFromThen :: SingleDerivingParens -> SingleDerivingParens -> [SingleDerivingParens] # enumFromTo :: SingleDerivingParens -> SingleDerivingParens -> [SingleDerivingParens] # enumFromThenTo :: SingleDerivingParens -> SingleDerivingParens -> SingleDerivingParens -> [SingleDerivingParens] # | |
| Show SingleDerivingParens # | |
Defined in Ormolu.Config.Gen Methods showsPrec :: Int -> SingleDerivingParens -> ShowS # show :: SingleDerivingParens -> String # showList :: [SingleDerivingParens] -> ShowS # | |
| Eq SingleDerivingParens # | |
Defined in Ormolu.Config.Gen Methods (==) :: SingleDerivingParens -> SingleDerivingParens -> Bool # (/=) :: SingleDerivingParens -> SingleDerivingParens -> Bool # | |
parsePrinterOptsCLI :: Applicative f => (forall a. PrinterOptsFieldType a => String -> String -> String -> f (Maybe a)) -> f (PrinterOpts Maybe) #
parsePrinterOptType :: PrinterOptsFieldType a => String -> Either String a #
Loading Fourmolu configuration
data ConfigNotFound #
Constructors
| ConfigNotFound | |
Fields
| |
Instances
| Show ConfigNotFound # | |
Defined in Ormolu.Config Methods showsPrec :: Int -> ConfigNotFound -> ShowS # show :: ConfigNotFound -> String # showList :: [ConfigNotFound] -> ShowS # | |
findConfigFile :: FilePath -> IO (Either ConfigNotFound FilePath) #
Find a fourmolu configuration file.
Looks for a file named fourmolu.yaml, first in the given path and its parents, and then in the XDG config directory.
Expected file name for YAML config.
data FourmoluConfig #
Constructors
| FourmoluConfig | |
Instances
| FromJSON FourmoluConfig # | |
Defined in Ormolu.Config Methods parseJSON :: Value -> Parser FourmoluConfig # parseJSONList :: Value -> Parser [FourmoluConfig] # | |
| Show FourmoluConfig # | |
Defined in Ormolu.Config Methods showsPrec :: Int -> FourmoluConfig -> ShowS # show :: FourmoluConfig -> String # showList :: [FourmoluConfig] -> ShowS # | |
| Eq FourmoluConfig # | |
Defined in Ormolu.Config Methods (==) :: FourmoluConfig -> FourmoluConfig -> Bool # (/=) :: FourmoluConfig -> FourmoluConfig -> Bool # | |
Orphan instances
| FromJSON PrinterOptsPartial # | |
Methods parseJSON :: Value -> Parser PrinterOptsPartial # parseJSONList :: Value -> Parser [PrinterOptsPartial] # | |
| Monoid PrinterOptsPartial # | |
Methods mempty :: PrinterOptsPartial # mappend :: PrinterOptsPartial -> PrinterOptsPartial -> PrinterOptsPartial # mconcat :: [PrinterOptsPartial] -> PrinterOptsPartial # | |
| Semigroup PrinterOptsPartial # | |
Methods (<>) :: PrinterOptsPartial -> PrinterOptsPartial -> PrinterOptsPartial # sconcat :: NonEmpty PrinterOptsPartial -> PrinterOptsPartial # stimes :: Integral b => b -> PrinterOptsPartial -> PrinterOptsPartial # | |
| Show PrinterOptsPartial # | |
Methods showsPrec :: Int -> PrinterOptsPartial -> ShowS # show :: PrinterOptsPartial -> String # showList :: [PrinterOptsPartial] -> ShowS # | |
| Show PrinterOptsTotal # | |
Methods showsPrec :: Int -> PrinterOptsTotal -> ShowS # show :: PrinterOptsTotal -> String # showList :: [PrinterOptsTotal] -> ShowS # | |
| Eq PrinterOptsPartial # | |
Methods (==) :: PrinterOptsPartial -> PrinterOptsPartial -> Bool # (/=) :: PrinterOptsPartial -> PrinterOptsPartial -> Bool # | |
| Eq PrinterOptsTotal # | |
Methods (==) :: PrinterOptsTotal -> PrinterOptsTotal -> Bool # (/=) :: PrinterOptsTotal -> PrinterOptsTotal -> Bool # | |