haddock
haddock copied to clipboard
Constraints block doesn't wrap lines
Original reporter: justnika@
As a result you get a doc like in the attached file[[Image(screenshot.png)]]
I can't figure out what this was supposed too refer to?
Possibly referring to long lists of constraints in multi-line mode? E.g.
-- | 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 _ _ = ()
gives:

But if you add argument descriptions hence activating multi-line mode:
-- | 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
) =>
-- | An arg
c e a ->
-- | Another one
m a ->
()
constraintsOhMy _ _ = ()
You get:

The full list is actually there, but you either have to use the horizontal scrollbar or zoom out (this is 67% on my browser for this example):
