[Haskell] signature of when, unless

2005-01-03 Thread Frederik Eaton
Wouldn't it be more useful if the type was when :: Monad m => Bool -> m a -> m () not when :: Monad m => Bool -> m () -> m () ...? Frederik ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] I try to thaw an array of unboxed arrays to the IO monad

2005-01-03 Thread Andreas Marth
Hallo everybody! A few years ago I wrote a program wich contained (among much else) the following: >import IOExts (thawIOArray,freezeIOArray) -- had to be replaced, because ghc doesn't find it anymore >import Data.Array.Unboxed as UA (UArray,listArray) >import Data.Array.I