From a2a41c8b812cbc55d4541cec3285ee32f863a227 Mon Sep 17 00:00:00 2001 From: David Waern Date: Sat, 10 Apr 2010 10:46:14 +0000 Subject: 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. --- tests/tests/Ticket112.hs | 9 ++++ tests/tests/Ticket112.html.ref | 116 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 tests/tests/Ticket112.hs create mode 100644 tests/tests/Ticket112.html.ref (limited to 'tests') diff --git a/tests/tests/Ticket112.hs b/tests/tests/Ticket112.hs new file mode 100644 index 00000000..c9cd5117 --- /dev/null +++ b/tests/tests/Ticket112.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE MagicHash #-} + +module Ticket112 where + +import GHC.Prim + +-- | ...given a raw 'Addr#' to the string, and the length of the string. +f :: a +f = undefined diff --git a/tests/tests/Ticket112.html.ref b/tests/tests/Ticket112.html.ref new file mode 100644 index 00000000..9ff3a192 --- /dev/null +++ b/tests/tests/Ticket112.html.ref @@ -0,0 +1,116 @@ + + +Ticket112
 ContentsIndex
Ticket112
Synopsis
f :: a
Documentation
f :: a
...given a raw Addr# to the string, and the length of the string. +
Produced by Haddock version 2.7.2
-- cgit v1.2.3