
11 Dec
2006
11 Dec
'06
10:14 p.m.
On 12/11/06, Henning Thielemann
On Mon, 11 Dec 2006, Jean-Philippe Bernardy wrote:
You can try Data.Set.minView. http://www.haskell.org/ghc/docs/latest/html/libraries/base/Data-Set.html
Seems to be new in GHC-6.6 over GHC-6.4.
True, though "base 2.0" is more accurate, in light of the recent fuss on the subject.
I suspect that not really monadic behaviour is needed in minView, but only the fail method, isn't it? Confusing.
Indeed. This is standard style in many modules however. (And an argument for the resurrection of MonadZero.) Cheers, JP.