[Haskell-cafe] function unique
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.
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:
More information about the Haskell-Cafe