[Haddock] [haddock] #187: With TH, when doing "cabal haddock", GHCi "couldn't find symbol"

haddock haddock at projects.haskell.org
Sun Sep 8 02:18:18 BST 2013


#187: With TH, when doing "cabal haddock", GHCi "couldn't find symbol"
----------------------------+-----------------------------------------------
Reporter:  MikolajKonarski  |        Owner:     
    Type:  defect           |       Status:  new
Priority:  major            |    Milestone:     
 Version:  2.9.2            |   Resolution:     
Keywords:                   |  
----------------------------+-----------------------------------------------

Comment(by duplode):

 The same problem was met in [https://github.com/HeinrichApfelmus
 /threepenny-
 gui/blob/925c08a3cda7f24375fec3fbca37f195d6cfefa9/src/Graphics/UI/Threepenny/Internal/Include.hs
 this module of threepenny-gui], also triggered by a quasiquoter
 definition:

 {{{
 include = QuasiQuoter
         { quoteExp = f -- only used as an expression,
         , quotePat = undefined -- hence all other use cases undefined
         , quoteType = undefined
         , quoteDec = undefined
         }
     where
     f s = TH.LitE . TH.StringL <$> TH.runIO (readFile $ root ++ s)
 }}}

 As a workaround, adding an otherwise unnecessary {{{TemplateHaskell
 pragma}}} averted the issue. (Tested with GHC 7.6.3, Cabal 1.16.0.2 and
 Haddock 2.13.2.)

-- 
Ticket URL: <http://trac.haskell.org/haddock/ticket/187#comment:2>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool


More information about the Haddock mailing list