the-sett / elm-syntax-dsl

A DSL for creating Elm syntax trees and pretty printing Elm source code.
BSD 3-Clause "New" or "Revised" License
20 stars 4 forks source link

Add possibility for a type annotation for `letFunction` #34

Open lue-bird opened 3 years ago

lue-bird commented 3 years ago

letVal and letFunction should allow an added type annotation like funDecl already does for example:

let
    svgAttributeToElm : ( String, String ) -> CodeGen.Expression
    svgAttributeToElm ( name, value ) =
        ...
in
...

On this note, I would rename letFunction to letFun to be more consistent.