Skip to content
This repository was archived by the owner on May 5, 2020. It is now read-only.

Conversation

@ThomasWeiser
Copy link
Contributor

@ThomasWeiser ThomasWeiser commented May 5, 2016

The type is annotated as

closeWith : Int -> String -> WebSocket -> Task x (Maybe BadClose)
closeWith = Native.WebSocket.close

But the native code was written as if the type would have been:

closeWith : Int -> String -> WebSocket -> Task BadClose ()
closeWith = Native.WebSocket.close

The type is annotated as

    closeWith : Int -> String -> WebSocket -> Task x (Maybe BadClose)
    closeWith = Native.WebSocket.close

But the native code was written as when the type would have been:

    closeWith : Int -> String -> WebSocket -> Task BadClose ()
    closeWith = Native.WebSocket.close
@evancz
Copy link
Contributor

evancz commented May 19, 2016

The annotation is the intended way. Can we make the JS match that.

@evancz
Copy link
Contributor

evancz commented May 19, 2016

Oh, I think that was the intent! I'll take a look.

@evancz evancz closed this in 2be91f9 May 19, 2016
@evancz
Copy link
Contributor

evancz commented May 19, 2016

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants