[Haskell-cafe] about openTempFile

Mitchell, Neil neil.mitchell.2 at credit-suisse.com
Wed Sep 17 11:51:07 EDT 2008


> > But since GHC does not implement such a function, I was curious to 
> > know why it don't even implement a function that make sure the 
> > temporary file is removed.
> > 
> 
> Because it is two lines to write, so no one has yet proposed 
> it for the base library. 

Map is 2 lines, but we have that as a library (1 line in Hugs).
Otherwise is a whole one lexeme long, but we still provide a library
function.

This one is tricky and has lots of edge cases! If its useful, it should
be in the libraries.

Thanks

Neil

==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================



More information about the Haskell-Cafe mailing list