From f6e5d57bee5a7bf5d74d26982db64fa8a56f17bd Mon Sep 17 00:00:00 2001 From: Sebastian Meric de Bellefon Date: Sun, 15 May 2016 01:12:28 -0400 Subject: Fix #280. Parsing of module header The initial newlines were counted as indentation spaces, thus disturbing the parsing of next lines --- html-test/ref/Bug280.html | 81 +++++++++++++++++++++++++++++++++++++++++++++++ html-test/src/Bug280.hs | 11 +++++++ 2 files changed, 92 insertions(+) create mode 100644 html-test/ref/Bug280.html create mode 100644 html-test/src/Bug280.hs (limited to 'html-test') diff --git a/html-test/ref/Bug280.html b/html-test/ref/Bug280.html new file mode 100644 index 00000000..f154f300 --- /dev/null +++ b/html-test/ref/Bug280.html @@ -0,0 +1,81 @@ + +Bug280

 

CopyrightFoo, + Bar, + Baz
Safe HaskellSafe

Bug280

Description

The module description

Documentation

x :: [Char] #

diff --git a/html-test/src/Bug280.hs b/html-test/src/Bug280.hs new file mode 100644 index 00000000..ac27e2e5 --- /dev/null +++ b/html-test/src/Bug280.hs @@ -0,0 +1,11 @@ +{-| +Copyright: Foo, + Bar, + Baz + +The module description +-} +-- The module header can start with newlines. They are not taken into account for the indentation level +module Bug280 where + +x = "" -- cgit v1.2.3