diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2023-04-20 16:18:15 +0200 |
---|---|---|
committer | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2023-04-20 16:35:04 +0200 |
commit | 83664b5aca556ad0433183958fee6b640fc5eb48 (patch) | |
tree | 41963ec0283164f364970e0d4b7d14a6157d24e3 /docs/users_guide/exts | |
parent | ab6c1d295cd9f492838dbd481ecc2a66bbd17393 (diff) | |
download | haskell-wip/minor-docs.tar.gz |
Minor doc fixeswip/minor-docs
- Add docs/index.html to .gitignore.
It is created by ./hadrian/build docs, and it was the only file
in Hadrian's templateRules not present in .gitignore.
- Mention that MultiWayIf supports non-boolean guards
- Remove documentation of optdll - removed in 2007, 763daed95
- Fix markdown syntax
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 = ... |