#14886 closed defect (fixed)
pandoc fails to build
Reported by: | shreevatsa.public@… | Owned by: | danielluke (Daniel J. Luke) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | jgm@…, ryandesign (Ryan Carsten Schmidt), 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 (2)
Change History (11)
comment:1 Changed 17 years ago by jmroot (Joshua Root)
Cc: | jgm@… added |
---|
comment:2 Changed 17 years 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
comment:3 Changed 17 years ago by jgm@…
I'm attaching a patch file and a patch to the Portfile that should fix the problem.
Changed 17 years ago by jgm@…
Attachment: | patch-Text-Pandoc-Definition.hs added |
---|
patch file - for files subdirectory
Changed 17 years ago by jgm@…
Attachment: | Portfile-pandoc.diff added |
---|
comment:4 follow-up: 5 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
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. :(
comment:5 Changed 17 years 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.
comment:7 Changed 16 years ago by danielluke (Daniel J. Luke)
Owner: | changed from macports-tickets@… to dluke@… |
---|---|
Status: | new → assigned |
Looking at this now...
comment:8 Changed 16 years ago by danielluke (Daniel J. Luke)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
patch committed in r37362
Cc maintainer.