cabal-extras
cabal-extras copied to clipboard
cabal-docspec: gets confused by -- $setup in export list
trafficstars
I usually place -- $setup in the export list for the haddocks, which I think is valid haddock/doctest practice. It looks like cabal-docspec picks this one up and then ignores the main one.
I don't mind if this is a feature rather than a bug, but it's a variance when moving from doctest to cabal-docspec.
This is a bug. You are the first who actually shows users what is in $setup :)
I'll see how easy/hard is this to fix...
I put $setup in export lists, to display it in haddock docs, like below, and it seems to be working well with cabal-docspec:
module Streamly.Data.Fold
(
-- * Imports for Examples
-- $setup
-- * Running A Fold