haskell / haddock

Haskell Documentation Tool
www.haskell.org/haddock/
BSD 2-Clause "Simplified" License
361 stars 243 forks source link

LaTeX: fix printing of type variable bindings #1545

Closed int-index closed 1 year ago

int-index commented 1 year ago

Consider this type signature:

kindOf :: forall {k} (a :: k). Proxy a -> Proxy k

Prior to this fix, the LaTeX backend rendered it like this:

kindOf :: forall k a. Proxy a -> Proxy k

Now we preserve explicit specificity and kind annotations.