elm-lang / elm-repl

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

Internal function names appear in type signatures #149

Closed rtfeldman closed 7 years ago

rtfeldman commented 7 years ago

It's lovely when elm-repl prints out a <function> signature for me:

> List.map
<function> : (a -> b) -> List a -> List b

It's less lovely when the <function> value includes the internal name of the JavaScript function:

> negate
<function:negate> : number -> number
> (\x -> x + 1)
<function:d_e_l_t_r_o_n_3_0_3_0> : number -> number
> import PhotoGroove exposing (Msg(..))
> SetHue
<function:_user$project$PhotoGroove$SetHue> : Int -> PhotoGroove.Msg

It really seems like it would be better if all function values displayed as <function> and that's it.

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.

rtfeldman commented 7 years ago

Realized this should be in core