[Haskell-cafe] function unique

Stefan O'Rear stefanor at cox.net
Wed Jul 11 17:06:47 EDT 2007


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

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/11d31f13/attachment.bin


More information about the Haskell-Cafe mailing list