Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
Instances
Eq Indent Source # | |
Ord Indent Source # | |
Show Indent Source # | |
Generic Indent Source # | |
ToJSON Indent Source # | |
Defined in Floskell.Config | |
FromJSON Indent Source # | |
type Rep Indent Source # | |
Defined in Floskell.Config type Rep Indent = D1 (MetaData "Indent" "Floskell.Config" "floskell-0.10.0-80IOxP9iKCgpN1x1iUKU" False) (C1 (MetaCons "Align" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "IndentBy" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) :+: C1 (MetaCons "AlignOrIndentBy" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))) |
data LayoutContext Source #
Instances
Instances
Bounded Location Source # | |
Enum Location Source # | |
Eq Location Source # | |
Ord Location Source # | |
Defined in Floskell.Config | |
Show Location Source # | |
Generic Location Source # | |
type Rep Location Source # | |
Instances
Bounded WsLoc Source # | |
Enum WsLoc Source # | |
Eq WsLoc Source # | |
Ord WsLoc Source # | |
Show WsLoc Source # | |
Generic WsLoc Source # | |
ToJSON WsLoc Source # | |
Defined in Floskell.Config | |
FromJSON WsLoc Source # | |
type Rep WsLoc Source # | |
Defined in Floskell.Config type Rep WsLoc = D1 (MetaData "WsLoc" "Floskell.Config" "floskell-0.10.0-80IOxP9iKCgpN1x1iUKU" 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 Source #
Whitespace | |
|
Instances
data ConfigMapKey Source #
Instances
Eq ConfigMapKey Source # | |
Defined in Floskell.Config (==) :: ConfigMapKey -> ConfigMapKey -> Bool # (/=) :: ConfigMapKey -> ConfigMapKey -> Bool # | |
Ord ConfigMapKey Source # | |
Defined in Floskell.Config compare :: ConfigMapKey -> ConfigMapKey -> Ordering # (<) :: ConfigMapKey -> ConfigMapKey -> Bool # (<=) :: ConfigMapKey -> ConfigMapKey -> Bool # (>) :: ConfigMapKey -> ConfigMapKey -> Bool # (>=) :: ConfigMapKey -> ConfigMapKey -> Bool # max :: ConfigMapKey -> ConfigMapKey -> ConfigMapKey # min :: ConfigMapKey -> ConfigMapKey -> ConfigMapKey # | |
Show ConfigMapKey Source # | |
Defined in Floskell.Config showsPrec :: Int -> ConfigMapKey -> ShowS # show :: ConfigMapKey -> String # showList :: [ConfigMapKey] -> ShowS # |
ConfigMap | |
|
Instances
Generic (ConfigMap a) Source # | |
ToJSON a => ToJSON (ConfigMap a) Source # | |
Defined in Floskell.Config | |
FromJSON a => FromJSON (ConfigMap a) Source # | |
type Rep (ConfigMap a) Source # | |
Defined in Floskell.Config type Rep (ConfigMap a) = D1 (MetaData "ConfigMap" "Floskell.Config" "floskell-0.10.0-80IOxP9iKCgpN1x1iUKU" 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 Source #
PenaltyConfig | |
|
Instances
data AlignConfig Source #
AlignConfig | |
|
Instances
data IndentConfig Source #
IndentConfig | |
|
Instances
data LayoutConfig Source #
LayoutConfig | |
|
Instances
Instances
Generic OpConfig Source # | |
ToJSON OpConfig Source # | |
Defined in Floskell.Config | |
FromJSON OpConfig Source # | |
Default OpConfig Source # | |
Defined in Floskell.Config | |
type Rep OpConfig Source # | |
Defined in Floskell.Config type Rep OpConfig = D1 (MetaData "OpConfig" "Floskell.Config" "floskell-0.10.0-80IOxP9iKCgpN1x1iUKU" True) (C1 (MetaCons "OpConfig" PrefixI True) (S1 (MetaSel (Just "unOpConfig") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (ConfigMap Whitespace)))) |
newtype GroupConfig Source #
Instances
Generic GroupConfig Source # | |
Defined in Floskell.Config type Rep GroupConfig :: Type -> Type # from :: GroupConfig -> Rep GroupConfig x # to :: Rep GroupConfig x -> GroupConfig # | |
ToJSON GroupConfig Source # | |
Defined in Floskell.Config toJSON :: GroupConfig -> Value # toEncoding :: GroupConfig -> Encoding # toJSONList :: [GroupConfig] -> Value # toEncodingList :: [GroupConfig] -> Encoding # | |
FromJSON GroupConfig Source # | |
Defined in Floskell.Config parseJSON :: Value -> Parser GroupConfig # parseJSONList :: Value -> Parser [GroupConfig] # | |
Default GroupConfig Source # | |
Defined in Floskell.Config def :: GroupConfig # | |
type Rep GroupConfig Source # | |
Defined in Floskell.Config type Rep GroupConfig = D1 (MetaData "GroupConfig" "Floskell.Config" "floskell-0.10.0-80IOxP9iKCgpN1x1iUKU" True) (C1 (MetaCons "GroupConfig" PrefixI True) (S1 (MetaSel (Just "unGroupConfig") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (ConfigMap Whitespace)))) |
data ImportsGroupOrder Source #
Instances
data ImportsGroup Source #
Instances
Generic ImportsGroup Source # | |
Defined in Floskell.Config type Rep ImportsGroup :: Type -> Type # from :: ImportsGroup -> Rep ImportsGroup x # to :: Rep ImportsGroup x -> ImportsGroup # | |
ToJSON ImportsGroup Source # | |
Defined in Floskell.Config toJSON :: ImportsGroup -> Value # toEncoding :: ImportsGroup -> Encoding # toJSONList :: [ImportsGroup] -> Value # toEncodingList :: [ImportsGroup] -> Encoding # | |
FromJSON ImportsGroup Source # | |
Defined in Floskell.Config parseJSON :: Value -> Parser ImportsGroup # parseJSONList :: Value -> Parser [ImportsGroup] # | |
type Rep ImportsGroup Source # | |
Defined in Floskell.Config type Rep ImportsGroup = D1 (MetaData "ImportsGroup" "Floskell.Config" "floskell-0.10.0-80IOxP9iKCgpN1x1iUKU" 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 Source #
Instances
ToJSON SortImportsRule Source # | |
Defined in Floskell.Config toJSON :: SortImportsRule -> Value # toEncoding :: SortImportsRule -> Encoding # toJSONList :: [SortImportsRule] -> Value # toEncodingList :: [SortImportsRule] -> Encoding # | |
FromJSON SortImportsRule Source # | |
Defined in Floskell.Config parseJSON :: Value -> Parser SortImportsRule # parseJSONList :: Value -> Parser [SortImportsRule] # |
data DeclarationConstruct Source #
Instances
data OptionConfig Source #
Instances
Config | |
|
Instances
safeConfig :: Config -> Config Source #
cfgMapFind :: LayoutContext -> ByteString -> ConfigMap a -> a Source #
cfgOpWs :: LayoutContext -> ByteString -> OpConfig -> Whitespace Source #
cfgGroupWs :: LayoutContext -> ByteString -> GroupConfig -> Whitespace Source #
wsLinebreak :: Location -> Whitespace -> Bool Source #