[Haskell-cafe] function unique

Jonathan Cast jcast at ou.edu
Wed Jul 11 17:33:19 EDT 2007


On Wednesday 11 July 2007, you wrote:
> On Wed, Jul 11, 2007 at 03:59:45PM -0500, Jonathan Cast wrote:
> > One could put up the Haddock doc-comment.  Or, say, one could extend
> > Haddock to support parameter names:
> >
> > testunique' :: Eq a
> > 	        => [a] -- ^ $list List of elements to test
> >             -> [a] -- ^ $elementssofar List of elements seen thus far
> >             -> [a] -- ^ List of unique elements in 'list'.
> >
> > No patch forthcoming from this corner, though.
>
> None necessary!  Haddock already supports that syntax.
>
> http://haskell.org/haddock/haddock-html-0.8/ch03s02.html#id289091

I think you missed my overloading of the section-label syntax to get argument 
names.  And it's not even quite supported; trying the example gets you

$ haddock -h Foo.hs
Warning: Foo: the following names could not be resolved:
    Eq list

Jonathan Cast
http://sourceforge.net/projects/fid-core
http://sourceforge.net/projects/fid-emacs


More information about the Haskell-Cafe mailing list