diff options
Diffstat (limited to 'docs/users_guide/exts')
-rw-r--r-- | docs/users_guide/exts/multiway_if.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/users_guide/exts/multiway_if.rst b/docs/users_guide/exts/multiway_if.rst index 0db010c000..3d9fa58ef7 100644 --- a/docs/users_guide/exts/multiway_if.rst +++ b/docs/users_guide/exts/multiway_if.rst @@ -51,3 +51,11 @@ except that the semi-colons between guards in a multi-way if are optional. So it is not necessary to line up all the guards at the same column; this is consistent with the way guards work in function definitions and case expressions. + +Note that multi-way if supports guards other than boolean conditions: :: + + if | parseNumbers settings + , Just (exponent, mantissa) <- decomposeNumber str + , let (integralPart, fractionPart) = parse mantissa + , integralPart >= 0 = ... + | otherwise = ... |