Is it good style to use a case expression on a Unit value just to use guards?

Viewed 659

What is the recommended way of testing several boolean expressions ?

I've been using this:

case () of () | test1 -> value1
              | test2 -> value2
              | otherwise -> value3

Is this good style ? is there a prettier way ?

3 Answers
Related