Hi
Is there a similar ticket for GHC to not export instances in the case that other instances are explicitly specified?
module Foo (
Foo(Monad)
)
instance Monad Foo where ...
instance MonadState (Foo Bar) where ...
i.e. the monad instance gets exported but the MonadState one does not? This helps in maintaining opacity with respect to the package user. I may not want the user to be able to call 'get' and 'put' when using my custom monad.
Cheers,
Vivian
2010/8/25 Alexander McPhail <haskell.vivian.mcphail@gmail.com>:
Yes, it should. BTW, we have a trac ticket for it:
> Perhaps Haddock could exclude class instance reporting when it cannot find a
> documentable link to a parameter?
http://trac.haskell.org/haddock/ticket/37
You can add yourself to the CC list to show that you want this feature.
Currently we don't have many people working on these types of tickets
in Haddock (I'm mostly fixing bugs, others are working on bigger
improvements), so if more people would volunteer to help out, that'd
be great. The mailing list haddock@projects.haskell.org can be used to
ask for directions and help.
David