[Haskell-cafe] Haddock bug for strict unpacked fields?

Stephan Friedrichs deduktionstheorem at web.de
Wed Jan 21 13:39:34 EST 2009


using haddock-2.4.1 and this file:

> module Test where
> data Test
>     = NonStrict Int
>     | Strict !Int
>     | UnpackedStrict {-# UNPACK #-} !Int

The generated documentation looks like this:

data Test
  NonStrict Int
  Strict !Int
  UnpackedStrict !!Int

Note the double '!' in the last constructor. This is not intended
behaviour, is it?



Früher hieß es ja: Ich denke, also bin ich.
Heute weiß man: Es geht auch so.

 - Dieter Nuhr

More information about the Haskell-Cafe mailing list