Proposal: System.Environment.getEnv should return Maybe

wren ng thornton wren at freegeek.org
Fri Feb 24 04:27:14 CET 2012


On 2/23/12 4:07 AM, Jon Fairbairn wrote:
> +1. And it’s always irritated me that read at EOF raises an
> exception. Files having ends is not exceptional! (This is partly
> addressed by iteratees, I imagine, but I haven’t found time to
> get my head round those yet.)

As John Lato mentioned, unix-bytestring gets around that (and a number 
of other ugly issues in the API).


[1] http://hackage.haskell.org/package/unix-bytestring

-- 
Live well,
~wren



More information about the Libraries mailing list