Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upOutgoing ports do not automatically convert Maybe anymore #606
Comments
CumpsD
changed the title from
Ports do not automatically convert Maybe anymore
to
Outgoing ports do not automatically convert Maybe anymore
May 16, 2016
referenced
this issue
in exira/admin
May 16, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
neoeinstein
May 16, 2016
Confirmed that the related behavior in 0.16 would have translated the callbackUrl = Nothing to null and the closable = Just False to false.
Format of the outgoing port in this instance:
port auth0showLock : Auth0.Options -> Cmd msg
neoeinstein
commented
May 16, 2016
|
Confirmed that the related behavior in 0.16 would have translated the Format of the outgoing port in this instance: port auth0showLock : Auth0.Options -> Cmd msg |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
neoeinstein
May 16, 2016
Just did my own review of this, and things seemed to work fine for me. I saw the appropriate generated code:
And the appropriate conversion happening:


Could this possibly be due to Elm not rebuilding a dirty module? You can try deleting elm-stuff/build-artifacts and that should trigger a rebuild of all modules.
neoeinstein
commented
May 16, 2016
•
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
CumpsD
May 17, 2016
I removed it all, and tried again but still have the same problem.
This is the code which causes it: https://github.com/exira/admin
git clone https://github.com/exira/admin.git
npm install
elm-package install -y
gulp
CumpsD
commented
May 17, 2016
|
I removed it all, and tried again but still have the same problem. This is the code which causes it: https://github.com/exira/admin
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Sep 22, 2016
Member
Can you open this on the elm-compiler repo instead? This is not related to core libraries.
Also, is there any way you can get an http://sscce.org/ that does not require cloning a ton of files? Getting it down to something small makes it much easier to resolve, and it'll be more clear why @neoeinstein could not replicate the problem.
|
Can you open this on the Also, is there any way you can get an http://sscce.org/ that does not require cloning a ton of files? Getting it down to something small makes it much easier to resolve, and it'll be more clear why @neoeinstein could not replicate the problem. |
evancz
added
the
no sscce
label
Sep 22, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Jul 10, 2017
Member
Given the state of this, I think it makes sense to close and wait for another report of the issue on elm-compiler.
|
Given the state of this, I think it makes sense to close and wait for another report of the issue on |
CumpsD commentedMay 16, 2016
As of 0.17, outgoing ports do not automatically convert Maybe anymore. According to the docs at http://guide.elm-lang.org/interop/javascript.html#customs-and-border-protection and the behaviour in 0.16 they should be.
For example:
and later
results in:

While it should result in a
callbackURLofnulland aclosableoffalse