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

Fix typespecs for functions taking and returning functions #34

Closed
wende opened this issue Apr 27, 2017 · 1 comment
Closed

Fix typespecs for functions taking and returning functions #34

wende opened this issue Apr 27, 2017 · 1 comment

Comments

@wende
Copy link
Owner

wende commented Apr 27, 2017

Add:

Example:

fun : (a -> b) -> (a -> b)

->

@spec fun(any -> any) :: (any -> any)

instead of

@spec fun(any) :: anyany) :: any
@wende wende added the bug label Apr 27, 2017
@wende
Copy link
Owner Author

wende commented Apr 27, 2017

It's gonna be tricky, because in Elm

a -> b -> ( c -> d) 

equals

a -> b -> c -> d

but in elixir

spec a(b) :: (c -> d)

doesn't equal

spec a(b, c) :: d)

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

1 participant