Skip to content

Commit

Permalink
Remove List.singleton for GHC8
Browse files Browse the repository at this point in the history
  • Loading branch information
xsebek committed Aug 3, 2023
1 parent abd488e commit 6694171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Data/Text/Markdown.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ mapP :: (Node c -> Node c) -> Paragraph c -> Paragraph c
mapP f (Paragraph ns) = Paragraph (map f ns)

pureP :: Node c -> Paragraph c
pureP = Paragraph . List.singleton
pureP = Paragraph . (: [])

-- | Inline leaf nodes.
--
Expand Down Expand Up @@ -115,7 +115,7 @@ instance Mark.IsInline (Paragraph Text) where
rawInline (Mark.Format f) = pureP . LeafRaw (T.unpack f)

instance Mark.IsBlock (Paragraph Text) (Document Text) where
paragraph = Document . List.singleton
paragraph = Document . (: [])
plain = Mark.paragraph
thematicBreak = mempty
blockQuote (Document ns) = Document $ map Mark.emph ns
Expand Down

0 comments on commit 6694171

Please sign in to comment.