debois / elm-mdl

Elm-port of the Material Design Lite CSS/JS library
Apache License 2.0
963 stars 133 forks source link

Expose the Index type #342

Open DavidDTA opened 7 years ago

DavidDTA commented 7 years ago

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.