New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provenance of List type in Default Imports #965

Closed
frou opened this Issue Jun 20, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@frou

frou commented Jun 20, 2018

The Default Imports are documented as including:

import List exposing (List, (::))

But, in the List.elm file, there is no type List =

...so should the documentation instead say the following?

import List exposing ( (::) )

...or should a "dummy" type definition for List be added to List.elm, similar to these which already exist in their respective files:

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

@frou frou changed the title from Presence of List type in Default Imports to Provenance of List type in Default Imports Jun 20, 2018

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz Jun 20, 2018

Member

I would like to expose it from List, but for complicated reasons within the compiler, it is hard to do that. I don't think the current code can change, and I don't think the docs should be made more complex to account for a thing that is likely to go away in the future. So I think the current balance is best.

Member

evancz commented Jun 20, 2018

I would like to expose it from List, but for complicated reasons within the compiler, it is hard to do that. I don't think the current code can change, and I don't think the docs should be made more complex to account for a thing that is likely to go away in the future. So I think the current balance is best.

@evancz evancz closed this Jun 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment