Op vrijdag 9 december 2016 16:57:48 UTC+1 schreef Nick H:
>
> This only works if your type values aren't storing any data.
>

The equality test can be done if you are *not trying to pattern match* on 
the data in the type.
So

-- will work
if someValue == Just 42 then
  doStuffWith 42


is fine, but you cannot do:

-- this will not work
if someValue == Just a then
  doStuffWith a 

-- 
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