Ticket #100 (closed defect: duplicate)

Opened 5 years ago

Last modified 2 years ago

Haddock dies with Maybe.fromJust: Nothing when using template haskell

Reported by: topi Owned by:
Priority: major Milestone:
Version: 2.4.1 Keywords:
Cc:

Description

Given the files:

A.hs

{-# LANGUAGE TemplateHaskell #-}

module A where

import Language.Haskell.TH

f :: String -> Q [Dec]
f = undefined

B.hs

{-# LANGUAGE TemplateHaskell #-}

module B where

import A

$(f "abc")

And haddock (fresh from hackage):

$ haddock --version
Haddock version 2.4.2, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008

My haddock dies with:

$ haddock --html -o temp A.hs B.hs haddock: internal Haddock or GHC error: Maybe.fromJust: Nothing

Is there no support for template haskell. :-(

Change History

Changed 5 years ago by topi

Forgot the code block:

$ haddock --html -o temp A.hs B.hs
haddock: internal Haddock or GHC error: Maybe.fromJust: Nothing

Changed 5 years ago by topi

The problem persists even with:

A.hs

{-# LANGUAGE TemplateHaskell #-}

module A where

import Language.Haskell.TH

f :: String -> Q [Dec]
f _ = return []

In case haddock is capable of executing template haskell code.

Changed 5 years ago by waern

  • status changed from new to closed
  • resolution set to duplicate

This bug has been fixed. You need Haddock 2.4.2 built with GHC 6.10.2.

Changed 3 years ago by dyzmillz80

I’m impressed, I have to say. Really not often do I encounter a blog that’s both educative and entertaining, and let me let you know, you may have hit the nail on the head. Your thought is excellent; the difficulty is something that not enough individuals are talking intelligently about levitra usa, acheter viagra, kamagra. I'm very pleased that I stumbled across this in my search for something referring to this.

Changed 3 years ago by dyzmillz80

Good post. I study something more challenging on completely different blogs everyday. It'll at all times be stimulating to learn content from different writers and apply slightly something from their store. I’d choose to make use of some with the content material on my blog whether you don’t mind. Natually I’ll provide you with a link on your internet blog. Thanks for sharing. viagra viagra kaufen Viagra

Changed 2 years ago by anonymous

  • milestone 2.4.2 deleted

Milestone 2.4.2 deleted

Note: See TracTickets for help on using tickets.