darcs patch: add Data.Set.notMember and Data.Map.notMember

Christian Maeder maeder at tzi.de
Mon Mar 13 05:06:45 EST 2006


Bulat Ziganshin wrote:
> Hello Christian,
> 
> Friday, March 10, 2006, 2:32:02 PM, you wrote:
> 
>>> f x | not (x `Set.member` map) && foo = ...
>>> is hard to read.
> 
> btw, (x `not.Set.member` map), as proposed by Doaitse Swierstra, will
> look better in this case

This does not type check, try:

  (not . elem) 1 [1..2]

C.


More information about the Libraries mailing list