core icon indicating copy to clipboard operation
core copied to clipboard

No placeholder def for `List` type

Open klazuka opened this issue 6 years ago • 2 comments

Unlike all the other built-in types, List has no placeholder definition. I would expect that it would be handled similar to Int, String, etc.:

type Int = Int -- NOTE: The compiler provides the real implementation.

Without a placeholder...

  • IDE/editor go-to-definition has nowhere to navigate to when a user tries to see what List is.
  • IDEs/editors need to special-case List differently from all other types

klazuka avatar Aug 02 '19 13:08 klazuka

Previously addressed here: https://github.com/elm/core/issues/965

frou avatar Aug 06 '20 21:08 frou

Likely needs some changes in the compiler for this to work. If so, it would come as part of a compiler release.

evancz avatar Feb 09 '21 18:02 evancz