patch applied (ghc-new-tc/haddock2): Fix #112

Simon Peyton Jones <[email protected]> Fri, 16 Jul 2010 08:06:19 -0700
Newsgroups gmane.comp.lang.haskell.cvs.other
Message-ID <[email protected]>
Sat Apr 10 03:46:14 PDT 2010  David Waern <[email protected]>
  * Fix #112
  
  No link was generated for 'Addr#' in a doc comment. The reason was simply that
  the identifier didn't parse. We were using parseIdentifier from the GHC API,
  with a parser state built from 'defaultDynFlags'. If we pass the dynflags of
  the module instead, the right options are turned on on while parsing the
  identifer (in this case -XMagicHash), and the parse succeeds.

    M ./src/Haddock/Interface.hs -1 +2
    M ./src/Haddock/Interface/Create.hs -20 +23
    M ./src/Haddock/Interface/LexParseRn.hs -12 +12
    M ./src/Haddock/Interface/ParseModuleHeader.hs -4 +5
    M ./src/Haddock/Lex.x -14 +14
    M ./src/Haddock/Types.hs -1 +2
    M ./src/Main.hs -1 +1
    A ./tests/golden-tests/tests/Ticket112.hs
    A ./tests/golden-tests/tests/Ticket112.html.ref

View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc-new-tc/haddock2;a=darcs_commitdiff;h=20100410104614-a762e-6f7023e27468339c49792318899f5920098aa7e4.gz