util/GenerateManpage.hs and latest pandoc

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

util/GenerateManpage.hs and latest pandoc

Joachim Breitner-2
Hi,

with the latest pandoc, shipped in LTS-3, util/GenerateManpage.hs is
broken:

ghc util/GenerateManpage.hs
[1 of 1] Compiling Main             ( util/GenerateManpage.hs, util/GenerateManpage.o )

util/GenerateManpage.hs:45:1:
    Non type-variable argument
      in the constraint: RegexContext Regex source1 [[[Char]]]
    (Use FlexibleContexts to permit this)
    When checking that `guessKeys' has the inferred type
      guessKeys :: forall source1.
                   (RegexContext Regex source1 [[[Char]]],
                    RegexContext Regex source1 (String, String, String, [String])) =>
                   source1 -> [Char]

util/GenerateManpage.hs:84:11:
    Couldn't match expected type `Pandoc'
                with actual type `Either Text.Pandoc.Error.PandocError Pandoc'
    In the second argument of `($)', namely `parsed'
    In a stmt of a 'do' block:
      writeFile "./man/xmonad.1"
      . (manHeader ++)
        . writeMan
            (writeOpts {writerStandalone = True, writerTemplate = template})
      $ parsed

util/GenerateManpage.hs:99:11:
    Couldn't match expected type `Pandoc'
                with actual type `Either Text.Pandoc.Error.PandocError Pandoc'
    In the second argument of `($)', namely `parsed'
    In a stmt of a 'do' block:
      writeFile "./man/xmonad.1.html"
      . writeHtmlString
          (writeOpts
             {writerVariables = [("include-before",
                                  "<h1>"
                                  ++
                                    releaseName
                                    ++
                                      "</h1>"
                                      ++
                                        "<p>Section: xmonad manual (1)<br/>"
                                        ++ "Updated: " ++ releaseDate ++ "</p>" ++ "<hr/>")],
              writerStandalone = True, writerTemplate = template,
              writerTableOfContents = True})
      $ parsed
make: *** [build/xmonad] Error 1

Greetings,
Joachim

--
Joachim “nomeata” Breitner
  [hidden email]http://www.joachim-breitner.de/
  Jabber: [hidden email]  • GPG-Key: 0xF0FBF51F
  Debian Developer: [hidden email]

_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

signature.asc (836 bytes) Download Attachment