[Haskell-cafe] function unique
Stefan O'Rear
stefanor at cox.net
Wed Jul 11 17:39:15 EDT 2007
On Wed, Jul 11, 2007 at 04:33:19PM -0500, Jonathan Cast wrote:
> 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.
Indeed.
> 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
Uhm... that's a *successful* run. I think you meant to copy the
messages from a failed run?
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20070711/7d2fbf26/attachment-0001.bin
More information about the Haskell-Cafe
mailing list