| 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 Source # | |
| Enum ColorMode Source # | |
Defined in Ormolu.Terminal Methods succ :: ColorMode -> ColorMode Source # pred :: ColorMode -> ColorMode Source # toEnum :: Int -> ColorMode Source # fromEnum :: ColorMode -> Int Source # enumFrom :: ColorMode -> [ColorMode] Source # enumFromThen :: ColorMode -> ColorMode -> [ColorMode] Source # enumFromTo :: ColorMode -> ColorMode -> [ColorMode] Source # enumFromThenTo :: ColorMode -> ColorMode -> ColorMode -> [ColorMode] Source # | |
| Show ColorMode Source # | |
| Eq ColorMode Source # | |
data RegionIndices Source #
Region selection as the combination of start and end line numbers.
Constructors
| RegionIndices | |
Fields
| |
Instances
| Show RegionIndices Source # | |
Defined in Ormolu.Config | |
| Eq RegionIndices Source # | |
Defined in Ormolu.Config Methods (==) :: RegionIndices -> RegionIndices -> Bool Source # (/=) :: RegionIndices -> RegionIndices -> Bool Source # | |
data RegionDeltas Source #
Region selection as the length of the literal prefix and the literal suffix.
Constructors
| RegionDeltas | |
Fields
| |
Instances
| Show RegionDeltas Source # | |
Defined in Ormolu.Config | |
| Eq RegionDeltas Source # | |
Defined in Ormolu.Config Methods (==) :: RegionDeltas -> RegionDeltas -> Bool Source # (/=) :: RegionDeltas -> RegionDeltas -> Bool Source # | |
data SourceType Source #
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 Source # | |
Defined in Ormolu.Config | |
| Eq SourceType Source # | |
Defined in Ormolu.Config Methods (==) :: SourceType -> SourceType -> Bool Source # (/=) :: SourceType -> SourceType -> Bool Source # | |
defaultConfig :: Config RegionIndices Source #
Default .Config RegionIndices
overapproximatedDependencies :: Config region -> Set PackageName Source #
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.
regionIndicesToDeltas Source #
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 Source # | |
| Eq DynOption Source # | |
| Ord DynOption Source # | |
Defined in Ormolu.Config | |
Fourmolu configuration
data PrinterOpts (f :: Type -> Type) Source #
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 Source # | |||||
Defined in Ormolu.Config Methods mempty :: PrinterOptsPartial Source # mappend :: PrinterOptsPartial -> PrinterOptsPartial -> PrinterOptsPartial Source # mconcat :: [PrinterOptsPartial] -> PrinterOptsPartial Source # | |||||
| Semigroup PrinterOptsPartial Source # | |||||
Defined in Ormolu.Config Methods (<>) :: PrinterOptsPartial -> PrinterOptsPartial -> PrinterOptsPartial Source # sconcat :: NonEmpty PrinterOptsPartial -> PrinterOptsPartial Source # stimes :: Integral b => b -> PrinterOptsPartial -> PrinterOptsPartial Source # | |||||
| Show PrinterOptsPartial Source # | |||||
Defined in Ormolu.Config | |||||
| Show PrinterOptsTotal Source # | |||||
Defined in Ormolu.Config | |||||
| Eq PrinterOptsPartial Source # | |||||
Defined in Ormolu.Config Methods (==) :: PrinterOptsPartial -> PrinterOptsPartial -> Bool Source # (/=) :: PrinterOptsPartial -> PrinterOptsPartial -> Bool Source # | |||||
| Eq PrinterOptsTotal Source # | |||||
Defined in Ormolu.Config Methods (==) :: PrinterOptsTotal -> PrinterOptsTotal -> Bool Source # (/=) :: PrinterOptsTotal -> PrinterOptsTotal -> Bool Source # | |||||
| Generic (PrinterOpts f) Source # | |||||
Defined in Ormolu.Config.Gen Associated Types
Methods from :: PrinterOpts f -> Rep (PrinterOpts f) x Source # to :: Rep (PrinterOpts f) x -> PrinterOpts f Source # | |||||
| type Rep (PrinterOpts f) Source # | |||||
Defined in Ormolu.Config.Gen | |||||
type PrinterOptsPartial = PrinterOpts Maybe Source #
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 Source #
A version of PrinterOpts without empty fields.
fillMissingPrinterOpts :: forall (f :: Type -> Type). Applicative f => PrinterOpts Maybe -> PrinterOpts f -> PrinterOpts f Source #
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 Source #
Apply the given configuration in order (later options override earlier).
data CommaStyle Source #
Instances
| FromJSON CommaStyle Source # | |
Defined in Ormolu.Config.Gen | |
| Bounded CommaStyle Source # | |
Defined in Ormolu.Config.Gen | |
| Enum CommaStyle Source # | |
Defined in Ormolu.Config.Gen Methods succ :: CommaStyle -> CommaStyle Source # pred :: CommaStyle -> CommaStyle Source # toEnum :: Int -> CommaStyle Source # fromEnum :: CommaStyle -> Int Source # enumFrom :: CommaStyle -> [CommaStyle] Source # enumFromThen :: CommaStyle -> CommaStyle -> [CommaStyle] Source # enumFromTo :: CommaStyle -> CommaStyle -> [CommaStyle] Source # enumFromThenTo :: CommaStyle -> CommaStyle -> CommaStyle -> [CommaStyle] Source # | |
| Show CommaStyle Source # | |
Defined in Ormolu.Config.Gen | |
| Eq CommaStyle Source # | |
Defined in Ormolu.Config.Gen Methods (==) :: CommaStyle -> CommaStyle -> Bool Source # (/=) :: CommaStyle -> CommaStyle -> Bool Source # | |
data FunctionArrowsStyle Source #
Constructors
| TrailingArrows | |
| LeadingArrows | |
| LeadingArgsArrows |
Instances
| FromJSON FunctionArrowsStyle Source # | |
Defined in Ormolu.Config.Gen Methods parseJSON :: Value -> Parser FunctionArrowsStyle parseJSONList :: Value -> Parser [FunctionArrowsStyle] | |
| Bounded FunctionArrowsStyle Source # | |
Defined in Ormolu.Config.Gen | |
| Enum FunctionArrowsStyle Source # | |
Defined in Ormolu.Config.Gen Methods succ :: FunctionArrowsStyle -> FunctionArrowsStyle Source # pred :: FunctionArrowsStyle -> FunctionArrowsStyle Source # toEnum :: Int -> FunctionArrowsStyle Source # fromEnum :: FunctionArrowsStyle -> Int Source # enumFrom :: FunctionArrowsStyle -> [FunctionArrowsStyle] Source # enumFromThen :: FunctionArrowsStyle -> FunctionArrowsStyle -> [FunctionArrowsStyle] Source # enumFromTo :: FunctionArrowsStyle -> FunctionArrowsStyle -> [FunctionArrowsStyle] Source # enumFromThenTo :: FunctionArrowsStyle -> FunctionArrowsStyle -> FunctionArrowsStyle -> [FunctionArrowsStyle] Source # | |
| Show FunctionArrowsStyle Source # | |
Defined in Ormolu.Config.Gen | |
| Eq FunctionArrowsStyle Source # | |
Defined in Ormolu.Config.Gen Methods (==) :: FunctionArrowsStyle -> FunctionArrowsStyle -> Bool Source # (/=) :: FunctionArrowsStyle -> FunctionArrowsStyle -> Bool Source # | |
data HaddockPrintStyle Source #
Constructors
| HaddockSingleLine | |
| HaddockMultiLine | |
| HaddockMultiLineCompact |
Instances
| FromJSON HaddockPrintStyle Source # | |
Defined in Ormolu.Config.Gen Methods parseJSON :: Value -> Parser HaddockPrintStyle parseJSONList :: Value -> Parser [HaddockPrintStyle] | |
| Bounded HaddockPrintStyle Source # | |
Defined in Ormolu.Config.Gen | |
| Enum HaddockPrintStyle Source # | |
Defined in Ormolu.Config.Gen Methods succ :: HaddockPrintStyle -> HaddockPrintStyle Source # pred :: HaddockPrintStyle -> HaddockPrintStyle Source # toEnum :: Int -> HaddockPrintStyle Source # fromEnum :: HaddockPrintStyle -> Int Source # enumFrom :: HaddockPrintStyle -> [HaddockPrintStyle] Source # enumFromThen :: HaddockPrintStyle -> HaddockPrintStyle -> [HaddockPrintStyle] Source # enumFromTo :: HaddockPrintStyle -> HaddockPrintStyle -> [HaddockPrintStyle] Source # enumFromThenTo :: HaddockPrintStyle -> HaddockPrintStyle -> HaddockPrintStyle -> [HaddockPrintStyle] Source # | |
| Show HaddockPrintStyle Source # | |
Defined in Ormolu.Config.Gen | |
| Eq HaddockPrintStyle Source # | |
Defined in Ormolu.Config.Gen Methods (==) :: HaddockPrintStyle -> HaddockPrintStyle -> Bool Source # (/=) :: HaddockPrintStyle -> HaddockPrintStyle -> Bool Source # | |
data HaddockPrintStyleModule Source #
Constructors
| PrintStyleInherit | |
| PrintStyleOverride HaddockPrintStyle |
Instances
| FromJSON HaddockPrintStyleModule Source # | |
Defined in Ormolu.Config.Gen Methods parseJSON :: Value -> Parser HaddockPrintStyleModule parseJSONList :: Value -> Parser [HaddockPrintStyleModule] | |
| Show HaddockPrintStyleModule Source # | |
Defined in Ormolu.Config.Gen | |
| Eq HaddockPrintStyleModule Source # | |
Defined in Ormolu.Config.Gen Methods (==) :: HaddockPrintStyleModule -> HaddockPrintStyleModule -> Bool Source # (/=) :: HaddockPrintStyleModule -> HaddockPrintStyleModule -> Bool Source # | |
data ImportExportStyle Source #
Instances
| FromJSON ImportExportStyle Source # | |
Defined in Ormolu.Config.Gen Methods parseJSON :: Value -> Parser ImportExportStyle parseJSONList :: Value -> Parser [ImportExportStyle] | |
| Bounded ImportExportStyle Source # | |
Defined in Ormolu.Config.Gen | |
| Enum ImportExportStyle Source # | |
Defined in Ormolu.Config.Gen Methods succ :: ImportExportStyle -> ImportExportStyle Source # pred :: ImportExportStyle -> ImportExportStyle Source # toEnum :: Int -> ImportExportStyle Source # fromEnum :: ImportExportStyle -> Int Source # enumFrom :: ImportExportStyle -> [ImportExportStyle] Source # enumFromThen :: ImportExportStyle -> ImportExportStyle -> [ImportExportStyle] Source # enumFromTo :: ImportExportStyle -> ImportExportStyle -> [ImportExportStyle] Source # enumFromThenTo :: ImportExportStyle -> ImportExportStyle -> ImportExportStyle -> [ImportExportStyle] Source # | |
| Show ImportExportStyle Source # | |
Defined in Ormolu.Config.Gen | |
| Eq ImportExportStyle Source # | |
Defined in Ormolu.Config.Gen Methods (==) :: ImportExportStyle -> ImportExportStyle -> Bool Source # (/=) :: ImportExportStyle -> ImportExportStyle -> Bool Source # | |
data ImportGrouping Source #
Constructors
| ImportGroupLegacy | |
| ImportGroupPreserve | |
| ImportGroupSingle | |
| ImportGroupByScope | |
| ImportGroupByQualified | |
| ImportGroupByScopeThenQualified | |
| ImportGroupCustom (NonEmpty ImportGroup) |
Instances
| FromJSON ImportGrouping Source # | |
Defined in Ormolu.Config.Gen | |
| Show ImportGrouping Source # | |
Defined in Ormolu.Config.Gen | |
| Eq ImportGrouping Source # | |
Defined in Ormolu.Config.Gen Methods (==) :: ImportGrouping -> ImportGrouping -> Bool Source # (/=) :: ImportGrouping -> ImportGrouping -> Bool Source # | |
data ImportGroup Source #
Constructors
| ImportGroup | |
Instances
| FromJSON ImportGroup Source # | |
Defined in Ormolu.Config.Types | |
| Show ImportGroup Source # | |
Defined in Ormolu.Config.Types | |
| Eq ImportGroup Source # | |
Defined in Ormolu.Config.Types Methods (==) :: ImportGroup -> ImportGroup -> Bool Source # (/=) :: ImportGroup -> ImportGroup -> Bool Source # | |
data ImportGroupRule Source #
Constructors
| ImportGroupRule | |
Instances
| FromJSON ImportGroupRule Source # | |
Defined in Ormolu.Config.Types Methods parseJSON :: Value -> Parser ImportGroupRule parseJSONList :: Value -> Parser [ImportGroupRule] | |
| Show ImportGroupRule Source # | |
Defined in Ormolu.Config.Types | |
| Eq ImportGroupRule Source # | |
Defined in Ormolu.Config.Types Methods (==) :: ImportGroupRule -> ImportGroupRule -> Bool Source # (/=) :: ImportGroupRule -> ImportGroupRule -> Bool Source # | |
data ImportModuleMatcher Source #
Constructors
| MatchAllModules | |
| MatchLocalModules | |
| MatchGlob !Glob |
Instances
| FromJSON ImportModuleMatcher Source # | |
Defined in Ormolu.Config.Types Methods parseJSON :: Value -> Parser ImportModuleMatcher parseJSONList :: Value -> Parser [ImportModuleMatcher] | |
| Show ImportModuleMatcher Source # | |
Defined in Ormolu.Config.Types | |
| Eq ImportModuleMatcher Source # | |
Defined in Ormolu.Config.Types Methods (==) :: ImportModuleMatcher -> ImportModuleMatcher -> Bool Source # (/=) :: ImportModuleMatcher -> ImportModuleMatcher -> Bool Source # | |
newtype ImportRulePriority Source #
Constructors
| ImportRulePriority Word8 |
Instances
| FromJSON ImportRulePriority Source # | |
Defined in Ormolu.Config.Types Methods parseJSON :: Value -> Parser ImportRulePriority parseJSONList :: Value -> Parser [ImportRulePriority] | |
| Bounded ImportRulePriority Source # | |
Defined in Ormolu.Config.Types | |
| Show ImportRulePriority Source # | |
Defined in Ormolu.Config.Types | |
| Eq ImportRulePriority Source # | |
Defined in Ormolu.Config.Types Methods (==) :: ImportRulePriority -> ImportRulePriority -> Bool Source # (/=) :: ImportRulePriority -> ImportRulePriority -> Bool Source # | |
| Ord ImportRulePriority Source # | |
Defined in Ormolu.Config.Types Methods compare :: ImportRulePriority -> ImportRulePriority -> Ordering Source # (<) :: ImportRulePriority -> ImportRulePriority -> Bool Source # (<=) :: ImportRulePriority -> ImportRulePriority -> Bool Source # (>) :: ImportRulePriority -> ImportRulePriority -> Bool Source # (>=) :: ImportRulePriority -> ImportRulePriority -> Bool Source # max :: ImportRulePriority -> ImportRulePriority -> ImportRulePriority Source # min :: ImportRulePriority -> ImportRulePriority -> ImportRulePriority Source # | |
data QualifiedImportMatcher Source #
Instances
| Show QualifiedImportMatcher Source # | |
Defined in Ormolu.Config.Types | |
| Eq QualifiedImportMatcher Source # | |
Defined in Ormolu.Config.Types Methods (==) :: QualifiedImportMatcher -> QualifiedImportMatcher -> Bool Source # (/=) :: QualifiedImportMatcher -> QualifiedImportMatcher -> Bool Source # | |
Constructors
| LetAuto | |
| LetInline | |
| LetNewline | |
| LetMixed |
Instances
| FromJSON LetStyle Source # | |
Defined in Ormolu.Config.Gen | |
| Bounded LetStyle Source # | |
| Enum LetStyle Source # | |
Defined in Ormolu.Config.Gen Methods succ :: LetStyle -> LetStyle Source # pred :: LetStyle -> LetStyle Source # toEnum :: Int -> LetStyle Source # fromEnum :: LetStyle -> Int Source # enumFrom :: LetStyle -> [LetStyle] Source # enumFromThen :: LetStyle -> LetStyle -> [LetStyle] Source # enumFromTo :: LetStyle -> LetStyle -> [LetStyle] Source # enumFromThenTo :: LetStyle -> LetStyle -> LetStyle -> [LetStyle] Source # | |
| Show LetStyle Source # | |
| Eq LetStyle Source # | |
Constructors
| InLeftAlign | |
| InRightAlign | |
| InNoSpace |
Instances
| FromJSON InStyle Source # | |
Defined in Ormolu.Config.Gen | |
| Bounded InStyle Source # | |
| Enum InStyle Source # | |
Defined in Ormolu.Config.Gen Methods succ :: InStyle -> InStyle Source # pred :: InStyle -> InStyle Source # toEnum :: Int -> InStyle Source # fromEnum :: InStyle -> Int Source # enumFrom :: InStyle -> [InStyle] Source # enumFromThen :: InStyle -> InStyle -> [InStyle] Source # enumFromTo :: InStyle -> InStyle -> [InStyle] Source # enumFromThenTo :: InStyle -> InStyle -> InStyle -> [InStyle] Source # | |
| Show InStyle Source # | |
| Eq InStyle Source # | |
Constructors
| UnicodeDetect | |
| UnicodeAlways | |
| UnicodeNever |
Instances
| FromJSON Unicode Source # | |
Defined in Ormolu.Config.Gen | |
| Bounded Unicode Source # | |
| Enum Unicode Source # | |
Defined in Ormolu.Config.Gen Methods succ :: Unicode -> Unicode Source # pred :: Unicode -> Unicode Source # toEnum :: Int -> Unicode Source # fromEnum :: Unicode -> Int Source # enumFrom :: Unicode -> [Unicode] Source # enumFromThen :: Unicode -> Unicode -> [Unicode] Source # enumFromTo :: Unicode -> Unicode -> [Unicode] Source # enumFromThenTo :: Unicode -> Unicode -> Unicode -> [Unicode] Source # | |
| Show Unicode Source # | |
| Eq Unicode Source # | |
data ColumnLimit Source #
Constructors
| NoLimit | |
| ColumnLimit Int |
Instances
| FromJSON ColumnLimit Source # | |
Defined in Ormolu.Config.Gen | |
| Show ColumnLimit Source # | |
Defined in Ormolu.Config.Gen | |
| Eq ColumnLimit Source # | |
Defined in Ormolu.Config.Gen Methods (==) :: ColumnLimit -> ColumnLimit -> Bool Source # (/=) :: ColumnLimit -> ColumnLimit -> Bool Source # | |
data SingleDerivingParens Source #
Constructors
| DerivingAuto | |
| DerivingAlways | |
| DerivingNever |
Instances
| FromJSON SingleDerivingParens Source # | |
Defined in Ormolu.Config.Gen Methods parseJSON :: Value -> Parser SingleDerivingParens parseJSONList :: Value -> Parser [SingleDerivingParens] | |
| Bounded SingleDerivingParens Source # | |
Defined in Ormolu.Config.Gen | |
| Enum SingleDerivingParens Source # | |
Defined in Ormolu.Config.Gen Methods succ :: SingleDerivingParens -> SingleDerivingParens Source # pred :: SingleDerivingParens -> SingleDerivingParens Source # toEnum :: Int -> SingleDerivingParens Source # fromEnum :: SingleDerivingParens -> Int Source # enumFrom :: SingleDerivingParens -> [SingleDerivingParens] Source # enumFromThen :: SingleDerivingParens -> SingleDerivingParens -> [SingleDerivingParens] Source # enumFromTo :: SingleDerivingParens -> SingleDerivingParens -> [SingleDerivingParens] Source # enumFromThenTo :: SingleDerivingParens -> SingleDerivingParens -> SingleDerivingParens -> [SingleDerivingParens] Source # | |
| Show SingleDerivingParens Source # | |
Defined in Ormolu.Config.Gen | |
| Eq SingleDerivingParens Source # | |
Defined in Ormolu.Config.Gen Methods (==) :: SingleDerivingParens -> SingleDerivingParens -> Bool Source # (/=) :: SingleDerivingParens -> SingleDerivingParens -> Bool Source # | |
parsePrinterOptsCLI :: Applicative f => (forall a. PrinterOptsFieldType a => String -> String -> String -> f (Maybe a)) -> f (PrinterOpts Maybe) Source #
Loading Fourmolu configuration
data ConfigNotFound Source #
Constructors
| ConfigNotFound | |
Fields
| |
Instances
| Show ConfigNotFound Source # | |
Defined in Ormolu.Config | |
findConfigFile :: FilePath -> IO (Either ConfigNotFound FilePath) Source #
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.
configFileName :: FilePath Source #
Expected file name for YAML config.
data FourmoluConfig Source #
Constructors
| FourmoluConfig | |
Instances
| FromJSON FourmoluConfig Source # | |
Defined in Ormolu.Config | |
| Show FourmoluConfig Source # | |
Defined in Ormolu.Config | |
| Eq FourmoluConfig Source # | |
Defined in Ormolu.Config Methods (==) :: FourmoluConfig -> FourmoluConfig -> Bool Source # (/=) :: FourmoluConfig -> FourmoluConfig -> Bool Source # | |
Orphan instances
| FromJSON PrinterOptsPartial Source # | |
Methods parseJSON :: Value -> Parser PrinterOptsPartial parseJSONList :: Value -> Parser [PrinterOptsPartial] | |
| Monoid PrinterOptsPartial Source # | |
Methods mempty :: PrinterOptsPartial Source # mappend :: PrinterOptsPartial -> PrinterOptsPartial -> PrinterOptsPartial Source # mconcat :: [PrinterOptsPartial] -> PrinterOptsPartial Source # | |
| Semigroup PrinterOptsPartial Source # | |
Methods (<>) :: PrinterOptsPartial -> PrinterOptsPartial -> PrinterOptsPartial Source # sconcat :: NonEmpty PrinterOptsPartial -> PrinterOptsPartial Source # stimes :: Integral b => b -> PrinterOptsPartial -> PrinterOptsPartial Source # | |
| Show PrinterOptsPartial Source # | |
| Show PrinterOptsTotal Source # | |
| Eq PrinterOptsPartial Source # | |
Methods (==) :: PrinterOptsPartial -> PrinterOptsPartial -> Bool Source # (/=) :: PrinterOptsPartial -> PrinterOptsPartial -> Bool Source # | |
| Eq PrinterOptsTotal Source # | |
Methods (==) :: PrinterOptsTotal -> PrinterOptsTotal -> Bool Source # (/=) :: PrinterOptsTotal -> PrinterOptsTotal -> Bool Source # | |