Constraint block doesn't wrap lines in Haddock with an argument comment in the signature
Originally opened at https://github.com/haskell/haddock/issues/268
Here is a reproducer:
Main.hs
module Main where
import Control.Arrow
import Data.Bifunctor
import GHC.Stack
import Control.Monad.Fix
import Control.Exception
import Control.Category
-- | Do stuff
constraintsOhMy ::
( Arrow c,
Bifunctor c,
Bounded a,
Category c,
Enum a,
Eq a,
Exception e,
Foldable m,
HasCallStack,
Monad m,
MonadFix m,
Monoid a,
Ord a,
Show a,
Traversable m
) =>
c e a ->
m a ->
()
constraintsOhMy _ _ = ()
main :: IO ()
main = pure ()
For which the invocation of haddock -h -o Main Main.hs
gives:
But if one argument has a comment, the wrapping is disabled:
Constraints should keep their wrapping even in the presence of argument comments.