elm-lang / elm-repl

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

Debug.log produces a strange output #151

Open jinjor opened 7 years ago

jinjor commented 7 years ago

It looks like an additional \n is inserted before type.

> add a b = (Debug.log "value of a" a) + b
<function> : number -> number -> number
> add 1 2
value of a: 1
3
    : number

Debug.crash seems fine, btw.

> f a = Debug.crash "not implemented yet"
<function> : a -> b
> f 1
Error: Ran into a `Debug.crash` in module `Repl` on line 5
The message provided by the code author is:

    not implemented yet

elm-repl: 0.18.0 OS: Mac

process-bot commented 7 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.