elm-json icon indicating copy to clipboard operation
elm-json copied to clipboard

Compilation fails with Elm 0.13

Open RocketPuppy opened this issue 10 years ago • 3 comments

After doing elm-get install lambdatoast/elm-json 0.3.4 an elm --make --only-json Main.elm fails when compiling Json.Decoder. The specific output is as follows:

$ elm --make --only-js Main.elm 
[1 of 12] Compiling Json.Output         ( elm_dependencies/lambdatoast-elm-json/0.3.4/Json/Output.elm )
[2 of 12] Compiling Json.Process        ( elm_dependencies/lambdatoast-elm-json/0.3.4/Json/Process.elm )
[3 of 12] Compiling Json.Accessor       ( elm_dependencies/lambdatoast-elm-json/0.3.4/Json/Accessor.elm )
[4 of 12] Compiling Json.Decoder        ( elm_dependencies/lambdatoast-elm-json/0.3.4/Json/Decoder.elm )
Import Error: Could not import value 'Json.Output.Error'.
    It is not exported by module Json.Output

I took a look at the failing files, it doesn't look like anything's wrong with it to me. I'm wondering if elm is getting confused about the modules it's importing.

RocketPuppy avatar Nov 30 '14 16:11 RocketPuppy

Alright I'll take a look. Thanks for reporting.

lambdatoast avatar Dec 02 '14 11:12 lambdatoast

This is probably fixed by my pull request : https://github.com/lambdatoast/elm-json/pull/2

jonathanfrawley avatar Dec 02 '14 13:12 jonathanfrawley

Hey folks, sorry I haven't had the time to review this issue.

Note that this library is now pretty much obsolete. Elm 0.14 was just released, with a very similar (and improved) JSON library. So if it's feasible, you should definitely upgrade to Elm 0.14 and use that instead.

lambdatoast avatar Dec 14 '14 14:12 lambdatoast