| Safe Haskell | None |
|---|
Language.Haskell.HBB.Internal.InternalTTreeCreation
Documentation
data ConversionInfo Source
Constructors
| ProduceLambda | |
| ProduceEqual |
class ConvertibleToTTree a whereSource
Methods
Instances
| ConvertibleToTTree [LStmt Name] | |
| ConvertibleToTTree (LHsExpr Name) | |
| ConvertibleToTTree (HsLocalBinds Name) | HsLocalBinds is for example use for where clauses TODO is this still needed? |
| ConvertibleToTTree (GRHSs Name, LambdaNotationStyle) | |
| ConvertibleToTTree (LHsBindLR Name Name) | |
| ConvertibleToTTree (HsValBindsLR Name Name) | |
| ConvertibleToTTree ([LPat Name], GRHSs Name, LambdaNotationStyle) | |
| ConvertibleToTTree (LambdaNotationStyle, LGRHS Name, Maybe (HsValBindsLR Name Name)) |
onDifferentLines :: RealSrcSpan -> RealSrcSpan -> BoolSource
data LambdaNotationStyle Source
Constructors
| FunShortNotation | may convert a where-expression to a let-expression |
| FunLongNotation | |
| Val2InlWithCase | Value bindings with guards or where expressions are replaced by a case expression case () of () |... which reflects these guards |
| Val2InlShort | Value bindings without guards and where expression are replaced by their left hand side surrounded by brackets. |
Instances
| ConvertibleToTTree (GRHSs Name, LambdaNotationStyle) | |
| ConvertibleToTTree ([LPat Name], GRHSs Name, LambdaNotationStyle) | |
| ConvertibleToTTree (LambdaNotationStyle, LGRHS Name, Maybe (HsValBindsLR Name Name)) |