You might find many of these on hackage in various forms already.. it
might be easier to just depend on some of those libraries.

On Sat, Jan 21, 2012 at 04:20:25PM -0400, Joey Hess wrote:
>
>   Some quite generic monadic control functions, few of them truely unique:
>
>   whenM :: Monad m => m Bool -> m () -> m ()   -- also >>?
>   unlessM :: Monad m => m Bool -> m () -> m () -- also >>!
>   firstM :: Monad m => (a -> m Bool) -> [a] -> m (Maybe a)

IfElse 
(http://hackage.haskell.org/packages/archive/IfElse/0.85/doc/html/Control-Monad-IfElse.html)
has a few of these.

>   Various path manipulation functions such as:
>   absPath :: FilePath -> IO FilePath

Is this different from canonicalizePath in directory?

>   Other stuff:
>
>   separate :: (a -> Bool) -> [a] -> ([a], [a])

Is this partition from Data.List?

>   format :: Format -> Variables -> String

This looks like it might be similar to HStringTemplate

>   withTempFile :: Template -> (FilePath -> Handle -> IO a) -> IO a

temporary 
(http://hackage.haskell.org/packages/archive/temporary/1.1.2.3/doc/html/System-IO-Temp.html)
has a few variants of this one

Attachment: pgpJEP0MrWorv.pgp
Description: PGP signature

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to