elm-in-elm / compiler / Elm.AST.Frontend.Unwrapped

Version of Frontend AST without the location info.

Handy for parser tests, or when you don't need the location info.

Convert to it using the Elm.AST.Frontend.unwrap.


type Expr
    = Int Basics.Int
    | Float Basics.Float
    | Char Char
    | String String
    | Bool Basics.Bool
    | Var ({ module_ : Maybe Elm.Data.ModuleName.ModuleName, name : Elm.Data.VarName.VarName })
    | Argument Elm.Data.VarName.VarName
    | Plus Expr Expr
    | Cons Expr Expr
    | ListConcat Expr Expr
    | Lambda ({ arguments : List Elm.Data.VarName.VarName, body : Expr })
    | Call ({ fn : Expr, argument : Expr })
    | If ({ test : Expr, then_ : Expr, else_ : Expr })
    | Let ({ bindings : List (Elm.Data.Binding.Binding Expr), body : Expr })
    | List (List Expr)
    | Unit
    | Tuple Expr Expr
    | Tuple3 Expr Expr Expr