Skip to content
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

Undocumented internal Length #42

Closed
mpizenberg opened this issue Jul 18, 2017 · 2 comments
Closed

Undocumented internal Length #42

mpizenberg opened this issue Jul 18, 2017 · 2 comments

Comments

@mpizenberg
Copy link

In contrast to other internal types that are represented by public alias, Length has none. So when searching for "Length" in the package doc, there is nothing returned which is quite a bad experience when starting tinkering with the package. This is also likely going to be prohibited in future elm versions (elm-lang/elm-package#277).

@ohanhi
Copy link

ohanhi commented Sep 11, 2017

This also prohibits type annotations, and thus results in warnings when creating helper functions such as:

rem n =
    px (n * 16)

The compiler infers it as Float -> Style.Internal.Model.Length, which can't be used.

@mdgriffith
Copy link
Owner

Thanks :) Length is exposed in 3.4.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants