Just like we can group conditionals in imperative languages :
if(condicion) then
if(condicion) then accion
else accion
else accion
can we group guards in Haskell? I've tried, but it returns a parser error on the symbol "|" from the second guard (line two of the pseudocode):
| condicion
| condicion accion
| condicion accion
| otherwise accion
I've tried writing "=" before the grouping (just in case):
| condicion =
| condicion accion
| condicion accion
| otherwise accion
But neither. Can you help me? Thanks.