Skip to content

Expose getEnvironment :: IO [(String, String)] #6165

@japgolly

Description

@japgolly

Is your feature request related to a problem? Please describe.
lib.base.IO.getEnv : Text ->{IO, Exception} Text exists to retrieve a single environment variable but there isn't a means to get all environment variables.

Describe the solution you'd like
Seeing as getEnv is FFI to getEnv :: String -> IO String it would be good to similarly expose getEnvironment :: IO [(String, String)].

Describe alternatives you've considered
There are none as far as I can tell.

Additional context
I'm willing to try to contribute this 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions