[Haskell-cafe] Splitting off many/some from Alternative
Gregory Crosswhite
gcrosswhite at gmail.com
Wed Dec 14 07:08:22 CET 2011
On Dec 13, 2011, at 5:09 AM, Bryan O'Sullivan wrote:
> Correct. And your example of "some (Just 1)" inflooping was not a counterargument, but rather an illustration that perhaps some people (and I'm not trying to imply you here, don't worry) don't understand what some and many are supposed to do.
But if you can't determine whether you can use certain methods of a typeclass without first knowing more about what type you are working with, then that breaks the abstraction since you can no longer treat a typeclass as a promise that given set of methods can be applied to a type.
Cheers,
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111214/7b66855d/attachment.htm>
More information about the Haskell-Cafe
mailing list