[Haskell-cafe] Re: [Haskell] [ANN] Safe Lazy IO in Haskell

Ryan Ingram ryani.spam at gmail.com
Tue May 19 04:28:05 EDT 2009


Minor addition, optimize >>
(I couldn't help myself!)

  -- ryan

> instance Ord b => ConstrainedBind (S.Set a) (S.Set b) where
>    type BindElem (S.Set a) = a
>    m >>= f = S.unions $ map f $ S.toList m
>    m >> n  = if S.null m then S.empty else n


More information about the Haskell-Cafe mailing list