Updated DevGuide (markdown)

Vidar Holen
2020-02-22 09:20:39 -08:00
parent 8332b2ed57
commit b23204fab8

@@ -29,7 +29,7 @@ when (hasLeftSpace || hasRightSpace) $
parseNoteAt pos ErrorC 1068 "Don't put spaces around the = in assignments." parseNoteAt pos ErrorC 1068 "Don't put spaces around the = in assignments."
``` ```
On the other hand, problems are always emitted, even when parsing fails (they are stored in a StateT higher than Parsec in the transformer stack). For example, a problem is emitted for unicode quotes, because this issue is likely to cause parsing to fail: On the other hand, problems are always emitted, even when parsing fails (they are stored in a StateT higher than Parsec in the transformer stack). For example, a problem is emitted if there's an unescaped linefeed in a `[ .. ]` expression, because the statement is likely malformed or unterminated, and we want to show this warning even if we're unable to parse the whole thing:
```haskell ```haskell
when (single && '\n' `elem` space) $ when (single && '\n' `elem` space) $