Skip to content

Update to Elm 0.15.1 (from 0.12) #9

@dusky3

Description

@dusky3

I was playing with the online debugger and even the following simple example that works at http://elm-lang.org/try throws a bunch of errors:

import Graphics.Element exposing (show)
main = show (toString 42)


Parse error at (line 1, column 25):
unexpected "e"
expecting "{-", " ", newline, reserved word 'as' or "("

When I remove exposing it throws this:

import Graphics.Element (show)
main = show (toString 42)


Error on line 2, column 14 to 22:
Could not find variable 'toString'

because as I can see in the hint it tries to import toString from JSON.toString. If I click on the hint it points to http://library.elm-lang.org/catalog/evancz-Elm/0.12/Json#toString and I get Server not found message.

It does't work even when I try this:

import Basics
import Graphics.Element (show)
main = show (Basics.toString 42)


Error on line 3, column 14 to 29:
Could not find variable 'Basics.toString'.

I believe that http://elm-lang.org/try and http://debug.elm-lang.org/try should use the same (latest) version of Elm otherwise the debugger is not usable at all.

BTW: the Try it! buttons next to the examples at http://debug.elm-lang.org are are not clickable, but if you click on the Debug it takes you to http://debug.elm-lang.org/try where you can see the examples (written in Elm 0.12).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions