elm-lang / elm-repl

A REPL for Elm
BSD 3-Clause "New" or "Revised" License
170 stars 34 forks source link

Enhancement Request: Indicate which elm version is supported by Online Editor #137

Open kkruups opened 8 years ago

kkruups commented 8 years ago

Problem: Today I was working on some code in Online Editor which was working perfectly but it suddenly stopped working with following errors indicated below:

Details: Specifically the following functions from elm version 0.17 Json.Decode] stopped working

       Json.Decode.object2 
       (:=)

Error indicates not exposed. It appears the Online was updated to elm 0.18 but there was no clear indication it was updated, since the Core Packages on Elm website were stil a elm 0.17.

Ehancement: It would be great if the Online-Editor somewhere, menu or comment indicated the elm version it supports as well as a Online Editor version number. It would make more user friendly to know at clearly why code broke without having to dig in source code to see that there was a elm version change.

Errors

Detected errors in 1 module.

-- NAMING ERROR ----------------------------------------------------------------

Module Json.Decode does not expose :=

3| import Json.Decode as Json exposing ((:=), object2) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-- NAMING ERROR ----------------------------------------------------------------

Module Json.Decode does not expose object2

3| import Json.Decode as Json exposing ((:=), object2)

process-bot commented 8 years ago

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.