[Haskell-cafe] Debugging compile times (Template Haskell)

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Apr 9 09:45:12 EDT 2009

Hello Henning,

Thursday, April 9, 2009, 5:01:21 PM, you wrote:

i think that this case may be interesting for GHC developers

> Hi,

> as the author of the encoding package[1] I'm quite annoyed by the
> extreeme long time it takes to compile a certain module (JISX0208). This
> module uses template haskell to generate both a Map (Map Char
> (Word8,Word8)) and an Array (UArray (Word8,Word8) Int) for character
> conversion. The file has about 6000 entries and the generated array has
> 8649 entries. Generating the syntax for the array and map is very fast
> (under a second) but compiling the code seems to take forever.
> Is there any way to find out why that is the case? I've tried
> pinpointing the problem but couldn't...

> [1]
> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/encoding

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list