Proposal: System.Environment.getEnv should return Maybe

Herbert Valerio Riedel hvr at gnu.org
Fri Feb 24 09:17:37 CET 2012


Evan Laforge <qdunkan at gmail.com> writes:

> So I propose a function: lookupEnv :: String -> IO (Maybe String)

+1

(and +1 in general for preferring Either/Maybe over exceptions for
"non-exceptional" results)

-- 



More information about the Libraries mailing list