Skip to content

Prelude documentation inadverently starts with scary data FUN

There seems to be a regression in the rendering of Prelude haddocks: somehow "Basic data types" section now starts with data FUN.

data Fun

I'd argue that presenting data FUN as the very first type in Prelude is outright scary for users. I assume this has something to do with changes to haddock submodule itself?..

This was not the case before: e. g., Prelude in base-4.18 starts with data Bool, as expected. And there was no change to Prelude's export list, which indeed starts from Bool as before:

module Prelude (

    -- * Standard types, classes and related functions

    -- ** Basic data types
    Bool(False, True),

There've been lots of recent effort to improve base documentation, so it's crucial not spoil this work by inadverent regression in presentation. It would be great to get it fixed for the upcoming GHC 9.8.

Edited by Bodigrim
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information