let
x = 1
in
case something of
x -> (...)
_ -> (...)
--
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 elm-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I expect that you are actually looking to do something like this:
let
x = 1
in
case
something of
Just x -> ...
Nothing -> ...
case something of
Just 1 -> ...
Nothing -> ...
orSomething : Maybe String -> String
orSomething str =
case str of
Just str -> str
Nothing -> "something"
--