Is there a shorter way to write the if-then-else part below?
       if (cmdType cmd) /= (CmdSitError Server)
          then return $ Just seat_num
          else return Nothing

return $ if cmdType cmd /= CmdSitError Serv
                then Just seat_num else Nothing

Arjan

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to