Skip to content

Add getArgs :: IO [OsString] #338

Closed
@tbidne

Description

@tbidne

With the Abstract FilePath Proposal, we can now provide functions that work on the more appropriate OsPath/OsString, rather than legacy type FilePath = [String]. In particular, we really ought to have a version for System.Environment.getArgs :: IO [String].

For example, see this optparse-applicative issue.

Unfortunately, OsString cannot reside in base, hence this function has to live somewhere else. As this function is related to the current process, how about in process?

Luckily implementation should be simple, since the Win32/Posix functions already exist, so all that remains is an OsString shim.

This issue is not for full OsString compatibility, though it is related. See also this discussion.

Thanks!

CC @hasufell

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions