Skip to content
Snippets Groups Projects
Commit ef0993f8 authored by Helkafen's avatar Helkafen
Browse files

Merge pull request #504 from Helkafen/issue-280

Fix #280. Parsing of module header
parents b0b23711 f6e5d57b
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ parseKey :: String -> String -> Maybe (String,String)
parseKey key toParse0 =
do
let
(spaces0,toParse1) = extractLeadingSpaces toParse0
(spaces0,toParse1) = extractLeadingSpaces (dropWhile (`elem` ['\r', '\n']) toParse0)
indentation = spaces0
afterKey0 <- extractPrefix key toParse1
......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
><head
><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
/><title
>Bug280</title
><link href="#" rel="stylesheet" type="text/css" title="Ocean"
/><script src="haddock-util.js" type="text/javascript"
></script
><script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"
></script
><script type="text/javascript"
>//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Bug280.html");};
//]]>
</script
></head
><body
><div id="package-header"
><ul class="links" id="page-menu"
><li
><a href="#"
>Contents</a
></li
><li
><a href="#"
>Index</a
></li
></ul
><p class="caption empty"
>&nbsp;</p
></div
><div id="content"
><div id="module-header"
><table class="info"
><tr
><th
>Copyright</th
><td
>Foo,
Bar,
Baz</td
></tr
><tr
><th
>Safe Haskell</th
><td
>Safe</td
></tr
></table
><p class="caption"
>Bug280</p
></div
><div id="description"
><p class="caption"
>Description</p
><div class="doc"
><p
>The module description</p
></div
></div
><div id="interface"
><h1
>Documentation</h1
><div class="top"
><p class="src"
><a id="v:x" class="def"
>x</a
> :: [<a href="#"
>Char</a
>] <a href="#" class="selflink"
>#</a
></p
></div
></div
></div
><div id="footer"
></div
></body
></html
>
{-|
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 = ""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment