Type aliases will get you the documentation benefit of types, but I think
they forego the type-checking benefit of types since a type alias to Float
doesn't actually produce a type that is different from Float.

Mark

On Saturday, September 24, 2016, Joaquín Oltra <[email protected]>
wrote:

> Your > seems to be shadowing core's > and thus not letting you compare the
> floats.
>
> It makes sense.
>
> Regarding the type wrapping better use a type alias for using the value
> directly as a float but having it be DropsPerSecond on the type signatures.
>
> type alias DropsPerSecond = Float
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:;>.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to