Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function type declaration in let expression #77

Closed
tunguski opened this issue Jul 16, 2017 · 1 comment
Closed

Function type declaration in let expression #77

tunguski opened this issue Jul 16, 2017 · 1 comment

Comments

@tunguski
Copy link

tunguski commented Jul 16, 2017

Removing hasImport : List String -> Bool helps, yet this is valid elm code:

compile name =
    let
        hasImport : List String -> Bool
        hasImport name = True
    in
      hasImport name
@wende
Copy link
Collaborator

wende commented Jul 16, 2017

Duplicate of #62

Actually that should be quite easy to fix, but it'd require yet another Major version bump.
In elchemy I omit them with an ugly Regexp:

Regex.replace All (regex "\n +\\w+ : .*") (always "")

@wende wende marked this as a duplicate of #62 Jul 16, 2017
@wende wende closed this as completed Jul 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants