| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Haskell.Brittany.Internal.Types
Documentation
data InlineConfig #
Constructors
| InlineConfig | |
Fields
| |
Instances
| Data InlineConfig # | |
Defined in Language.Haskell.Brittany.Internal.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InlineConfig -> c InlineConfig # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InlineConfig # toConstr :: InlineConfig -> Constr # dataTypeOf :: InlineConfig -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c InlineConfig) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InlineConfig) # gmapT :: (forall b. Data b => b -> b) -> InlineConfig -> InlineConfig # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InlineConfig -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InlineConfig -> r # gmapQ :: (forall d. Data d => d -> u) -> InlineConfig -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> InlineConfig -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> InlineConfig -> m InlineConfig # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InlineConfig -> m InlineConfig # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InlineConfig -> m InlineConfig # | |
type PPM = MultiRWS '[Map AnnKey Anns, InlineConfig, Config, Anns] '[Builder, [BrittanyError], Seq String] '[] #
newtype TopLevelDeclNameMap #
Constructors
| TopLevelDeclNameMap (Map AnnKey String) |
data LayoutState #
Constructors
| LayoutState | |
Fields
| |
Instances
| Show LayoutState # | |
Defined in Language.Haskell.Brittany.Internal.Types Methods showsPrec :: Int -> LayoutState -> ShowS # show :: LayoutState -> String # showList :: [LayoutState] -> ShowS # | |
lstate_baseY :: LayoutState -> Int #
lstate_indLevel :: LayoutState -> Int #
data BrittanyError #
Constructors
| ErrorInput String | parsing failed |
| ErrorUnusedComment String | internal error: some comment went missing |
| ErrorMacroConfig String String | in-source config string parsing error; first argument is the parser output and second the corresponding, ill-formed input. |
| LayoutWarning String | some warning |
| Data ast => ErrorUnknownNode String ast | internal error: pretty-printing is not implemented for type of node in the syntax-tree |
| ErrorOutputCheck | checking the output for syntactic validity failed |
data BriSpacing #
Constructors
| BriSpacing | |
Fields | |
Constructors
Instances
| Eq ColSig # | |
| Data ColSig # | |
Defined in Language.Haskell.Brittany.Internal.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ColSig -> c ColSig # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ColSig # toConstr :: ColSig -> Constr # dataTypeOf :: ColSig -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ColSig) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ColSig) # gmapT :: (forall b. Data b => b -> b) -> ColSig -> ColSig # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ColSig -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ColSig -> r # gmapQ :: (forall d. Data d => d -> u) -> ColSig -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ColSig -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ColSig -> m ColSig # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ColSig -> m ColSig # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ColSig -> m ColSig # | |
| Ord ColSig # | |
Defined in Language.Haskell.Brittany.Internal.Types | |
| Show ColSig # | |
Constructors
| BrIndentNone | |
| BrIndentRegular | |
| BrIndentSpecial Int |
Instances
| Eq BrIndent # | |
| Data BrIndent # | |
Defined in Language.Haskell.Brittany.Internal.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BrIndent -> c BrIndent # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BrIndent # toConstr :: BrIndent -> Constr # dataTypeOf :: BrIndent -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BrIndent) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BrIndent) # gmapT :: (forall b. Data b => b -> b) -> BrIndent -> BrIndent # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BrIndent -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BrIndent -> r # gmapQ :: (forall d. Data d => d -> u) -> BrIndent -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> BrIndent -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> BrIndent -> m BrIndent # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BrIndent -> m BrIndent # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BrIndent -> m BrIndent # | |
| Ord BrIndent # | |
Defined in Language.Haskell.Brittany.Internal.Types | |
| Show BrIndent # | |
type ToBriDocM = MultiRWS '[Config, Anns] '[[BrittanyError], Seq String] '[NodeAllocIndex] #
type ToBriDoc' sym = Located sym -> ToBriDocM BriDocNumbered #
data DocMultiLine #
Constructors
| MultiLineNo | |
| MultiLinePossible |
Instances
| Eq DocMultiLine # | |
Defined in Language.Haskell.Brittany.Internal.Types | |
Constructors
Instances
| Eq BriDoc # | |
| Data BriDoc # | |
Defined in Language.Haskell.Brittany.Internal.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BriDoc -> c BriDoc # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BriDoc # toConstr :: BriDoc -> Constr # dataTypeOf :: BriDoc -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BriDoc) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BriDoc) # gmapT :: (forall b. Data b => b -> b) -> BriDoc -> BriDoc # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BriDoc -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BriDoc -> r # gmapQ :: (forall d. Data d => d -> u) -> BriDoc -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> BriDoc -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> BriDoc -> m BriDoc # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BriDoc -> m BriDoc # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BriDoc -> m BriDoc # | |
| Ord BriDoc # | |
Defined in Language.Haskell.Brittany.Internal.Types | |
| Uniplate BriDoc # | |
Constructors
| BDFEmpty | |
| BDFLit !Text | |
| BDFSeq [f (BriDocF f)] | |
| BDFCols ColSig [f (BriDocF f)] | |
| BDFSeparator | |
| BDFAddBaseY BrIndent (f (BriDocF f)) | |
| BDFBaseYPushCur (f (BriDocF f)) | |
| BDFBaseYPop (f (BriDocF f)) | |
| BDFIndentLevelPushCur (f (BriDocF f)) | |
| BDFIndentLevelPop (f (BriDocF f)) | |
| BDFPar | |
Fields
| |
| BDFAlt [f (BriDocF f)] | BDAddIndent BrIndent (BriDocF f) | BDNewline |
| BDFForwardLineMode (f (BriDocF f)) | |
| BDFExternal AnnKey (Set AnnKey) Bool Text | |
| BDFAnnotationPrior AnnKey (f (BriDocF f)) | |
| BDFAnnotationKW AnnKey (Maybe AnnKeywordId) (f (BriDocF f)) | |
| BDFAnnotationRest AnnKey (f (BriDocF f)) | |
| BDFMoveToKWDP AnnKey AnnKeywordId (f (BriDocF f)) | |
| BDFLines [f (BriDocF f)] | |
| BDFEnsureIndent BrIndent (f (BriDocF f)) | |
| BDFForceMultiline (f (BriDocF f)) | |
| BDFForceSingleline (f (BriDocF f)) | |
| BDFNonBottomSpacing (f (BriDocF f)) | |
| BDFSetParSpacing (f (BriDocF f)) | |
| BDFForceParSpacing (f (BriDocF f)) | |
| BDFDebug String (f (BriDocF f)) | |
Instances
| Data (BriDocF ((,) Int)) # | |
Defined in Language.Haskell.Brittany.Internal.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BriDocF ((,) Int) -> c (BriDocF ((,) Int)) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (BriDocF ((,) Int)) # toConstr :: BriDocF ((,) Int) -> Constr # dataTypeOf :: BriDocF ((,) Int) -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (BriDocF ((,) Int))) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (BriDocF ((,) Int))) # gmapT :: (forall b. Data b => b -> b) -> BriDocF ((,) Int) -> BriDocF ((,) Int) # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BriDocF ((,) Int) -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BriDocF ((,) Int) -> r # gmapQ :: (forall d. Data d => d -> u) -> BriDocF ((,) Int) -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> BriDocF ((,) Int) -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> BriDocF ((,) Int) -> m (BriDocF ((,) Int)) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BriDocF ((,) Int) -> m (BriDocF ((,) Int)) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BriDocF ((,) Int) -> m (BriDocF ((,) Int)) # | |
type BriDocFInt = BriDocF ((,) Int) #
type BriDocNumbered = (Int, BriDocFInt) #
newtype NodeAllocIndex #
Constructors
| NodeAllocIndex Int |
isNotEmpty :: BriDoc -> Bool #
briDocSeqSpine :: BriDoc -> () #
briDocForceSpine :: BriDoc -> BriDoc #
data VerticalSpacingPar #
Instances
| Eq VerticalSpacingPar # | |
Defined in Language.Haskell.Brittany.Internal.Types Methods (==) :: VerticalSpacingPar -> VerticalSpacingPar -> Bool # (/=) :: VerticalSpacingPar -> VerticalSpacingPar -> Bool # | |
| Show VerticalSpacingPar # | |
Defined in Language.Haskell.Brittany.Internal.Types Methods showsPrec :: Int -> VerticalSpacingPar -> ShowS # show :: VerticalSpacingPar -> String # showList :: [VerticalSpacingPar] -> ShowS # | |
data VerticalSpacing #
Constructors
| VerticalSpacing | |
Fields
| |
Instances
| Eq VerticalSpacing # | |
Defined in Language.Haskell.Brittany.Internal.Types Methods (==) :: VerticalSpacing -> VerticalSpacing -> Bool # (/=) :: VerticalSpacing -> VerticalSpacing -> Bool # | |
| Show VerticalSpacing # | |
Defined in Language.Haskell.Brittany.Internal.Types Methods showsPrec :: Int -> VerticalSpacing -> ShowS # show :: VerticalSpacing -> String # showList :: [VerticalSpacing] -> ShowS # | |
newtype LineModeValidity a #
Constructors
| LineModeValidity (Maybe a) |
Instances
pattern LineModeValid :: forall t. t -> LineModeValidity t #
pattern LineModeInvalid :: forall t. LineModeValidity t #