[xmonad] util/GenerateManpage.hs and latest pandoc

Joachim Breitner mail at joachim-breitner.de
Wed Aug 19 14:33:20 UTC 2015


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
  mail at joachim-breitner.dehttp://www.joachim-breitner.de/
  Jabber: nomeata at joachim-breitner.de  • GPG-Key: 0xF0FBF51F
  Debian Developer: nomeata at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20150819/0911f5c0/attachment.sig>


More information about the xmonad mailing list