Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #14886 (closed defect: fixed)

Opened 8 months ago

Last modified 6 months ago

pandoc fails to build

Reported by: shreevatsa.public@… Owned by: dluke@…
Priority: Normal Milestone: Port Bugs
Component: ports Version: 1.6.0
Keywords: Cc: jgm@…, ryandesign@…, mike@…
Port:

Description

The port pandoc fails with:

Text/Pandoc/Definition.hs:92:32:    parse error on input `-- ^ Link target (URL, title)'
haddock: Failed to check module: Text.Pandoc.Definition

Attachments

patch-Text-Pandoc-Definition.hs (448 bytes) - added by jgm@… 8 months ago.
patch file - for files subdirectory
Portfile-pandoc.diff (369 bytes) - added by jgm@… 8 months ago.

Change History

  Changed 8 months ago by jmr@…

  • cc jgm@… added

Cc maintainer.

  Changed 8 months ago by jgm@…

It seems that the very latest version of haddock in macports is stricter than previous versions. There was a minor haddock error in Text/Pandoc/Definition.hs, which can be fixed by the patch below. The problem will be fixed in 0.47, which I hope to release before long.

John

--- Definition.hs       2007-11-29 00:09:07.000000000 -0800
+++ Definition.new.hs   2008-03-31 13:21:55.000000000 -0700
@@ -89,7 +89,8 @@
 -- | Type of quotation marks to use in Quoted inline.
 data QuoteType = SingleQuote | DoubleQuote deriving (Show, Eq, Read)

-type Target = (String, String)  -- ^ Link target (URL, title)
+-- | Link target (URL, title).
+type Target = (String, String)

 -- | Inline elements.
 data Inline

  Changed 8 months ago by jgm@…

I'm attaching a patch file and a patch to the Portfile that should fix the problem.

Changed 8 months ago by jgm@…

patch file - for files subdirectory

Changed 8 months ago by jgm@…

follow-up: ↓ 5   Changed 7 months ago by ryandesign@…

  • cc ryandesign@… added

I was going to try to test this fix but I can't because build dependency ghc won't build for me. :(

in reply to: ↑ 4   Changed 7 months ago by mike@…

I had previously built and installed ghc. I can confirm that the patches work, having applied it to my local repository and successfully built and install pandoc. Suggest acceptance.

  Changed 7 months ago by mike@…

  • cc mike@… added

Cc Me!

  Changed 6 months ago by dluke@…

  • owner changed from macports-tickets@… to dluke@…
  • status changed from new to assigned

Looking at this now...

  Changed 6 months ago by dluke@…

  • status changed from assigned to closed
  • resolution set to fixed

patch committed in r37362

Note: See TracTickets for help on using tickets.