| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Floskell.Config
Documentation
Constructors
| Align | |
| IndentBy !Int | |
| AlignOrIndentBy !Int |
Instances
data LayoutContext #
Constructors
| Declaration | |
| Type | |
| Pattern | |
| Expression | |
| Other |
Instances
| FromJSON LayoutContext # | |||||
Defined in Floskell.Config Methods parseJSON :: Value -> Parser LayoutContext # parseJSONList :: Value -> Parser [LayoutContext] # | |||||
| ToJSON LayoutContext # | |||||
Defined in Floskell.Config Methods toJSON :: LayoutContext -> Value # toEncoding :: LayoutContext -> Encoding # toJSONList :: [LayoutContext] -> Value # toEncodingList :: [LayoutContext] -> Encoding # omitField :: LayoutContext -> Bool # | |||||
| Bounded LayoutContext # | |||||
Defined in Floskell.Config | |||||
| Enum LayoutContext # | |||||
Defined in Floskell.Config Methods succ :: LayoutContext -> LayoutContext # pred :: LayoutContext -> LayoutContext # toEnum :: Int -> LayoutContext # fromEnum :: LayoutContext -> Int # enumFrom :: LayoutContext -> [LayoutContext] # enumFromThen :: LayoutContext -> LayoutContext -> [LayoutContext] # enumFromTo :: LayoutContext -> LayoutContext -> [LayoutContext] # enumFromThenTo :: LayoutContext -> LayoutContext -> LayoutContext -> [LayoutContext] # | |||||
| Generic LayoutContext # | |||||
Defined in Floskell.Config Associated Types
| |||||
| Show LayoutContext # | |||||
Defined in Floskell.Config Methods showsPrec :: Int -> LayoutContext -> ShowS # show :: LayoutContext -> String # showList :: [LayoutContext] -> ShowS # | |||||
| Eq LayoutContext # | |||||
Defined in Floskell.Config Methods (==) :: LayoutContext -> LayoutContext -> Bool # (/=) :: LayoutContext -> LayoutContext -> Bool # | |||||
| Ord LayoutContext # | |||||
Defined in Floskell.Config Methods compare :: LayoutContext -> LayoutContext -> Ordering # (<) :: LayoutContext -> LayoutContext -> Bool # (<=) :: LayoutContext -> LayoutContext -> Bool # (>) :: LayoutContext -> LayoutContext -> Bool # (>=) :: LayoutContext -> LayoutContext -> Bool # max :: LayoutContext -> LayoutContext -> LayoutContext # min :: LayoutContext -> LayoutContext -> LayoutContext # | |||||
| type Rep LayoutContext # | |||||
Defined in Floskell.Config type Rep LayoutContext = D1 ('MetaData "LayoutContext" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) ((C1 ('MetaCons "Declaration" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Type" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Pattern" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Expression" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Other" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
Instances
| Bounded Location # | |
| Enum Location # | |
| Generic Location # | |
Defined in Floskell.Config | |
| Show Location # | |
| Eq Location # | |
| Ord Location # | |
Defined in Floskell.Config | |
| type Rep Location # | |
Instances
| FromJSON WsLoc # | |||||
Defined in Floskell.Config | |||||
| ToJSON WsLoc # | |||||
| Bounded WsLoc # | |||||
| Enum WsLoc # | |||||
Defined in Floskell.Config | |||||
| Generic WsLoc # | |||||
Defined in Floskell.Config Associated Types
| |||||
| Show WsLoc # | |||||
| Eq WsLoc # | |||||
| Ord WsLoc # | |||||
| type Rep WsLoc # | |||||
Defined in Floskell.Config type Rep WsLoc = D1 ('MetaData "WsLoc" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) ((C1 ('MetaCons "WsNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WsBefore" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "WsAfter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WsBoth" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data Whitespace #
Constructors
| Whitespace | |
Fields
| |
Instances
| FromJSON Whitespace # | |||||
Defined in Floskell.Config | |||||
| ToJSON Whitespace # | |||||
Defined in Floskell.Config Methods toJSON :: Whitespace -> Value # toEncoding :: Whitespace -> Encoding # toJSONList :: [Whitespace] -> Value # toEncodingList :: [Whitespace] -> Encoding # omitField :: Whitespace -> Bool # | |||||
| Generic Whitespace # | |||||
Defined in Floskell.Config Associated Types
| |||||
| Show Whitespace # | |||||
Defined in Floskell.Config Methods showsPrec :: Int -> Whitespace -> ShowS # show :: Whitespace -> String # showList :: [Whitespace] -> ShowS # | |||||
| type Rep Whitespace # | |||||
Defined in Floskell.Config type Rep Whitespace = D1 ('MetaData "Whitespace" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) (C1 ('MetaCons "Whitespace" 'PrefixI 'True) (S1 ('MetaSel ('Just "wsSpaces") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WsLoc) :*: (S1 ('MetaSel ('Just "wsLinebreaks") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WsLoc) :*: S1 ('MetaSel ('Just "wsForceLinebreak") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))) | |||||
Constructors
| Flex | |
| Vertical | |
| TryOneline |
Instances
| FromJSON Layout # | |||||
Defined in Floskell.Config | |||||
| ToJSON Layout # | |||||
| Bounded Layout # | |||||
| Enum Layout # | |||||
Defined in Floskell.Config | |||||
| Generic Layout # | |||||
Defined in Floskell.Config Associated Types
| |||||
| Show Layout # | |||||
| Eq Layout # | |||||
| Ord Layout # | |||||
| type Rep Layout # | |||||
Defined in Floskell.Config type Rep Layout = D1 ('MetaData "Layout" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) (C1 ('MetaCons "Flex" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Vertical" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TryOneline" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data ConfigMapKey #
Constructors
| ConfigMapKey !(Maybe Text) !(Maybe LayoutContext) |
Instances
| Show ConfigMapKey # | |
Defined in Floskell.Config Methods showsPrec :: Int -> ConfigMapKey -> ShowS # show :: ConfigMapKey -> String # showList :: [ConfigMapKey] -> ShowS # | |
| Eq ConfigMapKey # | |
Defined in Floskell.Config | |
| Ord ConfigMapKey # | |
Defined in Floskell.Config Methods compare :: ConfigMapKey -> ConfigMapKey -> Ordering # (<) :: ConfigMapKey -> ConfigMapKey -> Bool # (<=) :: ConfigMapKey -> ConfigMapKey -> Bool # (>) :: ConfigMapKey -> ConfigMapKey -> Bool # (>=) :: ConfigMapKey -> ConfigMapKey -> Bool # max :: ConfigMapKey -> ConfigMapKey -> ConfigMapKey # min :: ConfigMapKey -> ConfigMapKey -> ConfigMapKey # | |
Constructors
| ConfigMap | |
Fields
| |
Instances
| FromJSON a => FromJSON (ConfigMap a) # | |||||
Defined in Floskell.Config | |||||
| ToJSON a => ToJSON (ConfigMap a) # | |||||
| Generic (ConfigMap a) # | |||||
Defined in Floskell.Config Associated Types
| |||||
| type Rep (ConfigMap a) # | |||||
Defined in Floskell.Config type Rep (ConfigMap a) = D1 ('MetaData "ConfigMap" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) (C1 ('MetaCons "ConfigMap" 'PrefixI 'True) (S1 ('MetaSel ('Just "cfgMapDefault") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Just "cfgMapOverrides") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map ConfigMapKey a)))) | |||||
data PenaltyConfig #
Constructors
| PenaltyConfig | |
Fields
| |
Instances
| FromJSON PenaltyConfig # | |||||
Defined in Floskell.Config Methods parseJSON :: Value -> Parser PenaltyConfig # parseJSONList :: Value -> Parser [PenaltyConfig] # | |||||
| ToJSON PenaltyConfig # | |||||
Defined in Floskell.Config Methods toJSON :: PenaltyConfig -> Value # toEncoding :: PenaltyConfig -> Encoding # toJSONList :: [PenaltyConfig] -> Value # toEncodingList :: [PenaltyConfig] -> Encoding # omitField :: PenaltyConfig -> Bool # | |||||
| Default PenaltyConfig # | |||||
Defined in Floskell.Config Methods def :: PenaltyConfig # | |||||
| Generic PenaltyConfig # | |||||
Defined in Floskell.Config Associated Types
| |||||
| type Rep PenaltyConfig # | |||||
Defined in Floskell.Config type Rep PenaltyConfig = D1 ('MetaData "PenaltyConfig" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) (C1 ('MetaCons "PenaltyConfig" 'PrefixI 'True) ((S1 ('MetaSel ('Just "penaltyMaxLineLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "penaltyLinebreak") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "penaltyIndent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "penaltyOverfull") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "penaltyOverfullOnce") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int))))) | |||||
data AlignConfig #
Constructors
| AlignConfig | |
Fields
| |
Instances
| FromJSON AlignConfig # | |||||
Defined in Floskell.Config | |||||
| ToJSON AlignConfig # | |||||
Defined in Floskell.Config Methods toJSON :: AlignConfig -> Value # toEncoding :: AlignConfig -> Encoding # toJSONList :: [AlignConfig] -> Value # toEncodingList :: [AlignConfig] -> Encoding # omitField :: AlignConfig -> Bool # | |||||
| Default AlignConfig # | |||||
Defined in Floskell.Config Methods def :: AlignConfig # | |||||
| Generic AlignConfig # | |||||
Defined in Floskell.Config Associated Types
| |||||
| type Rep AlignConfig # | |||||
Defined in Floskell.Config type Rep AlignConfig = D1 ('MetaData "AlignConfig" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) (C1 ('MetaCons "AlignConfig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cfgAlignLimits") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Int, Int)) :*: S1 ('MetaSel ('Just "cfgAlignCase") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "cfgAlignClass") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgAlignImportModule") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "cfgAlignImportSpec") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgAlignLetBinds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "cfgAlignMatches") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "cfgAlignRecordFields") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgAlignWhere") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))))) | |||||
data IndentConfig #
Constructors
| IndentConfig | |
Fields
| |
Instances
| FromJSON IndentConfig # | |||||
Defined in Floskell.Config | |||||
| ToJSON IndentConfig # | |||||
Defined in Floskell.Config Methods toJSON :: IndentConfig -> Value # toEncoding :: IndentConfig -> Encoding # toJSONList :: [IndentConfig] -> Value # toEncodingList :: [IndentConfig] -> Encoding # omitField :: IndentConfig -> Bool # | |||||
| Default IndentConfig # | |||||
Defined in Floskell.Config Methods def :: IndentConfig # | |||||
| Generic IndentConfig # | |||||
Defined in Floskell.Config Associated Types
| |||||
| type Rep IndentConfig # | |||||
Defined in Floskell.Config type Rep IndentConfig = D1 ('MetaData "IndentConfig" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) (C1 ('MetaCons "IndentConfig" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "cfgIndentOnside") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "cfgIndentDeriving") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "cfgIndentWhere") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "cfgIndentApp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent))) :*: ((S1 ('MetaSel ('Just "cfgIndentCase") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentClass") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent)) :*: (S1 ('MetaSel ('Just "cfgIndentDo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentExportSpecList") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent)))) :*: (((S1 ('MetaSel ('Just "cfgIndentIf") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentImportSpecList") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent)) :*: (S1 ('MetaSel ('Just "cfgIndentLet") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentLetBinds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent))) :*: ((S1 ('MetaSel ('Just "cfgIndentLetIn") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentMultiIf") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent)) :*: (S1 ('MetaSel ('Just "cfgIndentTypesig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent) :*: S1 ('MetaSel ('Just "cfgIndentWhereBinds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Indent)))))) | |||||
data LayoutConfig #
Constructors
| LayoutConfig | |
Fields
| |
Instances
| FromJSON LayoutConfig # | |||||
Defined in Floskell.Config | |||||
| ToJSON LayoutConfig # | |||||
Defined in Floskell.Config Methods toJSON :: LayoutConfig -> Value # toEncoding :: LayoutConfig -> Encoding # toJSONList :: [LayoutConfig] -> Value # toEncodingList :: [LayoutConfig] -> Encoding # omitField :: LayoutConfig -> Bool # | |||||
| Default LayoutConfig # | |||||
Defined in Floskell.Config Methods def :: LayoutConfig # | |||||
| Generic LayoutConfig # | |||||
Defined in Floskell.Config Associated Types
| |||||
| type Rep LayoutConfig # | |||||
Defined in Floskell.Config type Rep LayoutConfig = D1 ('MetaData "LayoutConfig" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) (C1 ('MetaCons "LayoutConfig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cfgLayoutApp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: S1 ('MetaSel ('Just "cfgLayoutConDecls") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout)) :*: (S1 ('MetaSel ('Just "cfgLayoutDeclaration") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: (S1 ('MetaSel ('Just "cfgLayoutExportSpecList") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: S1 ('MetaSel ('Just "cfgLayoutIf") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout)))) :*: ((S1 ('MetaSel ('Just "cfgLayoutImportSpecList") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: (S1 ('MetaSel ('Just "cfgLayoutInfixApp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: S1 ('MetaSel ('Just "cfgLayoutLet") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout))) :*: (S1 ('MetaSel ('Just "cfgLayoutListComp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: (S1 ('MetaSel ('Just "cfgLayoutRecord") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout) :*: S1 ('MetaSel ('Just "cfgLayoutType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Layout)))))) | |||||
Constructors
| OpConfig | |
Fields | |
Instances
| FromJSON OpConfig # | |||||
Defined in Floskell.Config | |||||
| ToJSON OpConfig # | |||||
| Default OpConfig # | |||||
Defined in Floskell.Config | |||||
| Generic OpConfig # | |||||
Defined in Floskell.Config Associated Types
| |||||
| type Rep OpConfig # | |||||
Defined in Floskell.Config type Rep OpConfig = D1 ('MetaData "OpConfig" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'True) (C1 ('MetaCons "OpConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "unOpConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ConfigMap Whitespace)))) | |||||
newtype GroupConfig #
Constructors
| GroupConfig | |
Fields | |
Instances
| FromJSON GroupConfig # | |||||
Defined in Floskell.Config | |||||
| ToJSON GroupConfig # | |||||
Defined in Floskell.Config Methods toJSON :: GroupConfig -> Value # toEncoding :: GroupConfig -> Encoding # toJSONList :: [GroupConfig] -> Value # toEncodingList :: [GroupConfig] -> Encoding # omitField :: GroupConfig -> Bool # | |||||
| Default GroupConfig # | |||||
Defined in Floskell.Config Methods def :: GroupConfig # | |||||
| Generic GroupConfig # | |||||
Defined in Floskell.Config Associated Types
| |||||
| type Rep GroupConfig # | |||||
Defined in Floskell.Config type Rep GroupConfig = D1 ('MetaData "GroupConfig" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'True) (C1 ('MetaCons "GroupConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "unGroupConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ConfigMap Whitespace)))) | |||||
data ImportsGroupOrder #
Constructors
| ImportsGroupKeep | |
| ImportsGroupSorted | |
| ImportsGroupGrouped |
Instances
| FromJSON ImportsGroupOrder # | |||||
Defined in Floskell.Config Methods parseJSON :: Value -> Parser ImportsGroupOrder # parseJSONList :: Value -> Parser [ImportsGroupOrder] # | |||||
| ToJSON ImportsGroupOrder # | |||||
Defined in Floskell.Config Methods toJSON :: ImportsGroupOrder -> Value # toEncoding :: ImportsGroupOrder -> Encoding # toJSONList :: [ImportsGroupOrder] -> Value # toEncodingList :: [ImportsGroupOrder] -> Encoding # omitField :: ImportsGroupOrder -> Bool # | |||||
| Generic ImportsGroupOrder # | |||||
Defined in Floskell.Config Associated Types
Methods from :: ImportsGroupOrder -> Rep ImportsGroupOrder x # to :: Rep ImportsGroupOrder x -> ImportsGroupOrder # | |||||
| type Rep ImportsGroupOrder # | |||||
Defined in Floskell.Config type Rep ImportsGroupOrder = D1 ('MetaData "ImportsGroupOrder" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) (C1 ('MetaCons "ImportsGroupKeep" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ImportsGroupSorted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ImportsGroupGrouped" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data ImportsGroup #
Constructors
| ImportsGroup | |
Fields
| |
Instances
| FromJSON ImportsGroup # | |||||
Defined in Floskell.Config | |||||
| ToJSON ImportsGroup # | |||||
Defined in Floskell.Config Methods toJSON :: ImportsGroup -> Value # toEncoding :: ImportsGroup -> Encoding # toJSONList :: [ImportsGroup] -> Value # toEncodingList :: [ImportsGroup] -> Encoding # omitField :: ImportsGroup -> Bool # | |||||
| Generic ImportsGroup # | |||||
Defined in Floskell.Config Associated Types
| |||||
| type Rep ImportsGroup # | |||||
Defined in Floskell.Config type Rep ImportsGroup = D1 ('MetaData "ImportsGroup" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) (C1 ('MetaCons "ImportsGroup" 'PrefixI 'True) (S1 ('MetaSel ('Just "importsPrefixes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [String]) :*: S1 ('MetaSel ('Just "importsOrder") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ImportsGroupOrder))) | |||||
data SortImportsRule #
Constructors
| NoImportSort | |
| SortImportsByPrefix | |
| SortImportsByGroups ![ImportsGroup] |
Instances
| FromJSON SortImportsRule # | |
Defined in Floskell.Config Methods parseJSON :: Value -> Parser SortImportsRule # parseJSONList :: Value -> Parser [SortImportsRule] # | |
| ToJSON SortImportsRule # | |
Defined in Floskell.Config Methods toJSON :: SortImportsRule -> Value # toEncoding :: SortImportsRule -> Encoding # toJSONList :: [SortImportsRule] -> Value # toEncodingList :: [SortImportsRule] -> Encoding # omitField :: SortImportsRule -> Bool # | |
data DeclarationConstruct #
Constructors
| DeclModule | |
| DeclClass | |
| DeclInstance | |
| DeclWhere |
Instances
| FromJSON DeclarationConstruct # | |||||
Defined in Floskell.Config Methods parseJSON :: Value -> Parser DeclarationConstruct # parseJSONList :: Value -> Parser [DeclarationConstruct] # | |||||
| ToJSON DeclarationConstruct # | |||||
Defined in Floskell.Config Methods toJSON :: DeclarationConstruct -> Value # toEncoding :: DeclarationConstruct -> Encoding # toJSONList :: [DeclarationConstruct] -> Value # toEncodingList :: [DeclarationConstruct] -> Encoding # omitField :: DeclarationConstruct -> Bool # | |||||
| Generic DeclarationConstruct # | |||||
Defined in Floskell.Config Associated Types
Methods from :: DeclarationConstruct -> Rep DeclarationConstruct x # to :: Rep DeclarationConstruct x -> DeclarationConstruct # | |||||
| Eq DeclarationConstruct # | |||||
Defined in Floskell.Config Methods (==) :: DeclarationConstruct -> DeclarationConstruct -> Bool # (/=) :: DeclarationConstruct -> DeclarationConstruct -> Bool # | |||||
| Ord DeclarationConstruct # | |||||
Defined in Floskell.Config Methods compare :: DeclarationConstruct -> DeclarationConstruct -> Ordering # (<) :: DeclarationConstruct -> DeclarationConstruct -> Bool # (<=) :: DeclarationConstruct -> DeclarationConstruct -> Bool # (>) :: DeclarationConstruct -> DeclarationConstruct -> Bool # (>=) :: DeclarationConstruct -> DeclarationConstruct -> Bool # max :: DeclarationConstruct -> DeclarationConstruct -> DeclarationConstruct # min :: DeclarationConstruct -> DeclarationConstruct -> DeclarationConstruct # | |||||
| type Rep DeclarationConstruct # | |||||
Defined in Floskell.Config type Rep DeclarationConstruct = D1 ('MetaData "DeclarationConstruct" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) ((C1 ('MetaCons "DeclModule" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DeclClass" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DeclInstance" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DeclWhere" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data OptionConfig #
Constructors
| OptionConfig | |
Fields
| |
Instances
| FromJSON OptionConfig # | |||||
Defined in Floskell.Config | |||||
| ToJSON OptionConfig # | |||||
Defined in Floskell.Config Methods toJSON :: OptionConfig -> Value # toEncoding :: OptionConfig -> Encoding # toJSONList :: [OptionConfig] -> Value # toEncodingList :: [OptionConfig] -> Encoding # omitField :: OptionConfig -> Bool # | |||||
| Default OptionConfig # | |||||
Defined in Floskell.Config Methods def :: OptionConfig # | |||||
| Generic OptionConfig # | |||||
Defined in Floskell.Config Associated Types
| |||||
| type Rep OptionConfig # | |||||
Defined in Floskell.Config type Rep OptionConfig = D1 ('MetaData "OptionConfig" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) (C1 ('MetaCons "OptionConfig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cfgOptionSortPragmas") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgOptionSplitLanguagePragmas") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "cfgOptionSortImports") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SortImportsRule) :*: S1 ('MetaSel ('Just "cfgOptionSortImportLists") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "cfgOptionAlignSumTypeDecl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgOptionFlexibleOneline") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "cfgOptionPreserveVerticalSpace") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "cfgOptionDeclNoBlankLines") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set DeclarationConstruct)) :*: S1 ('MetaSel ('Just "cfgOptionAlignLetBindsAndInExpr") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))))) | |||||
Constructors
| Config | |
Fields
| |
Instances
| FromJSON Config # | |||||
Defined in Floskell.Config | |||||
| ToJSON Config # | |||||
| Default Config # | |||||
Defined in Floskell.Config | |||||
| Generic Config # | |||||
Defined in Floskell.Config Associated Types
| |||||
| type Rep Config # | |||||
Defined in Floskell.Config type Rep Config = D1 ('MetaData "Config" "Floskell.Config" "floskell-0.11.1-If3Z75J2neZ5JNi0eSSCAs" 'False) (C1 ('MetaCons "Config" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cfgPenalty") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PenaltyConfig) :*: (S1 ('MetaSel ('Just "cfgAlign") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AlignConfig) :*: S1 ('MetaSel ('Just "cfgIndent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 IndentConfig))) :*: ((S1 ('MetaSel ('Just "cfgLayout") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LayoutConfig) :*: S1 ('MetaSel ('Just "cfgOp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OpConfig)) :*: (S1 ('MetaSel ('Just "cfgGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GroupConfig) :*: S1 ('MetaSel ('Just "cfgOptions") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OptionConfig))))) | |||||
defaultConfig :: Config #
safeConfig :: Config -> Config #
cfgMapFind :: LayoutContext -> Text -> ConfigMap a -> a #
cfgOpWs :: LayoutContext -> Text -> OpConfig -> Whitespace #
cfgGroupWs :: LayoutContext -> Text -> GroupConfig -> Whitespace #
wsSpace :: Location -> Whitespace -> Bool #
wsLinebreak :: Location -> Whitespace -> Bool #