elm-in-elm / compiler

Elm compiler written in Elm

Home Page:https://elm-in-elm.github.io/compiler/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add DesugarTests

Janiczek opened this issue · comments

For what should be in them: don't check that it "does nothing". Check the interesting stuff that happens in the desugarExpr function. Eg.:

  • Var: finds the module according to the surrounding context (imports and other top level definitions)
  • Lambda: gets curried, ie. \a b -> c becomes \a -> \b -> c
  • List: keeps the original order