From 180cf1775f4d5fd97814ec87a1d2a8235f0a8152 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 6 Oct 2019 17:05:00 -0400 Subject: users-guide: Document NondecreasingIndentation --- docs/users_guide/bugs.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/users_guide/bugs.rst b/docs/users_guide/bugs.rst index 1106f161b9..c0cffa0ee8 100644 --- a/docs/users_guide/bugs.rst +++ b/docs/users_guide/bugs.rst @@ -68,9 +68,16 @@ Context-free syntax ps <- mapM process args mapM print ps - This behaviour is controlled by the ``NondecreasingIndentation`` + This behaviour is controlled by the :extension:`NondecreasingIndentation` extension. +.. extension:: NondecreasingIndentation + :shortdesc: Allow nested contexts to be at the same indentation level as + its enclosing context. + + Allow nested contexts to be at the same indentation level as + its enclosing context. + - GHC doesn't do the fixity resolution in expressions during parsing as required by HaskellĀ 98 (but not by HaskellĀ 2010). For example, according to the HaskellĀ 98 report, the following expression is -- cgit v1.2.1