Skip to content

Commit 6bb544d

Browse files
Rephrase description of case-expression-in-do-block for clarity
Authored-By: @david-christiansen Co-authored-by: David Thrane Christiansen <[email protected]>
1 parent a4864e9 commit 6bb544d

File tree

1 file changed

+3
-1
lines changed
  • message-index/messages/GHC-53786/case-expr-in-do-block

1 file changed

+3
-1
lines changed

message-index/messages/GHC-53786/case-expr-in-do-block/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
title: Case expression in do-block
33
---
44

5-
The expression in one branch of the case expression is a do-block that's missing a `do`; the whole case-expression is interpreted as LHS of a bind in the top-level do-block. See also: https://gitlab.haskell.org/ghc/ghc/-/issues/984
5+
The expression in one branch of the case expression is a `do`-block that's missing a `do`. This triggers a corner case in the grammar of Haskell, and the `case`-expression is interpreted as the pattern part of a bind statement in the top-level `do`-block.
6+
7+
More details are available at https://gitlab.haskell.org/ghc/ghc/-/issues/984
68

79
## Error Message
810

0 commit comments

Comments
 (0)