libhbb-0.4.1.0: Backend for text editors to provide better Haskell editing support.

Safe HaskellNone

Language.Haskell.HBB.Internal.InternalTTreeCreation

Documentation

class ConvertibleToTTree a whereSource

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)) 

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))