diff options
Diffstat (limited to 'haddock-library/test')
| -rw-r--r-- | haddock-library/test/Documentation/Haddock/ParserSpec.hs | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/haddock-library/test/Documentation/Haddock/ParserSpec.hs b/haddock-library/test/Documentation/Haddock/ParserSpec.hs index 4bcbbec7..6d05791b 100644 --- a/haddock-library/test/Documentation/Haddock/ParserSpec.hs +++ b/haddock-library/test/Documentation/Haddock/ParserSpec.hs @@ -808,16 +808,15 @@ spec = do      context "when parsing function documentation headers" $ do        it "can parse a simple header" $ do          "= Header 1\nHello." `shouldParseTo` -          DocParagraph (DocHeader (Header 1 "Header 1")) +          (DocHeader (Header 1 "Header 1"))            <> DocParagraph "Hello."        it "allow consecutive headers" $ do          "= Header 1\n== Header 2" `shouldParseTo` -          DocParagraph (DocHeader (Header 1 "Header 1")) -          <> DocParagraph (DocHeader (Header 2 "Header 2")) +          DocHeader (Header 1 "Header 1") +          <> DocHeader (Header 2 "Header 2")        it "accepts markup in the header" $ do          "= /Header/ __1__\nFoo" `shouldParseTo` -          DocParagraph (DocHeader -                        (Header 1 (DocEmphasis "Header" <> " " <> DocBold "1"))) +          DocHeader (Header 1 (DocEmphasis "Header" <> " " <> DocBold "1"))            <> DocParagraph "Foo"  | 
