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

Port modules do not import Json.Decode #703

Closed
evancz opened this Issue Aug 29, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@evancz
Member

evancz commented Aug 29, 2016

It appears that the presence of a port module alone doesn't inform the compiler of the need to import Json.Decode. Here's a succinct SSCCE for which you can examine the generated code and note the absence of Json.Decode

port module Main exposing (..)

port example : (String -> msg) -> Sub msg

value =
    1

Thanks to @RobertWalter83 and @lukewestby for sorting this out in #686.

@process-bot

This comment has been minimized.

Show comment
Hide comment
@process-bot

process-bot Aug 29, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot commented Aug 29, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz Jul 10, 2017

Member

I believe this will be resolved with 0.19. If not, we will get new issues about it.

Member

evancz commented Jul 10, 2017

I believe this will be resolved with 0.19. If not, we will get new issues about it.

@evancz evancz closed this Jul 10, 2017

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