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

Expose the Index type #342

Open
DavidDTA opened this issue Jul 22, 2017 · 0 comments
Open

Expose the Index type #342

DavidDTA opened this issue Jul 22, 2017 · 0 comments

Comments

@DavidDTA
Copy link
Contributor

DavidDTA commented Jul 22, 2017

Currently is is not possible to

import Material.Component

or to reference the type Material.Component.Index.

Since this is in the signature of many library methods (render, etc.), I would like to refer to this type in order to make my method signatures cleaner.

For example, I would like to say

renderSubcomponent : Material.Component.Index -> Html a
renderSubcomponent = ...

but instead must use

renderSubcomponent : List Int -> Html a
renderSubcomponent = ...

which is much less clear.

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

1 participant