unary "-" operator

John Meacham john at repetae.net
Thu Feb 2 18:34:43 EST 2006


On Thu, Feb 02, 2006 at 11:26:04PM +0000, Thomas Davie wrote:
> infixl 0 -->
> 
> (-->) x y = print x >> print y
> 
> f = do { -5 --> 5; return()}
> 
> Delete the space after the '{' and you have a problem.  This can't  
> happen if you don't have a unary minus.

Holy Moly, you came up with an example that hits every dogshed
discussion at once. now, just change the 'print's to something
polymorphic and we can hit the MR too! :)

        John

-- 
John Meacham - ⑆repetae.net⑆john⑈ 


More information about the Haskell-prime mailing list