tilia-0.2.0.0: corpora/vendored/expression/block/multi-way-if-out.hs
{-# LANGUAGE MultiWayIf #-}
module Weather.Advice where
advice :: Int -> String
advice t =
if | t > 30 -> "stay inside" | t < 0 -> "wrap up" | otherwise -> "go out"
wind :: Int -> String
wind speed =
if
| speed > 60 -> "gale"
| speed > 20 ->
"breeze"
| otherwise -> "calm"