haskell / haskell/unix

Reduce String/ByteString/PosixString variants

Open
#240 12 comments 0 reactions 0 assignees View on GitHub
type: discussion
Dominant language
Haskell
Stars
124
Forks
99
PR merge metrics
No merged PRs in 30d

Description

We currently have three variants of many modules. I think we should reduce these.

My idea is:

1. String is questionable overall, maybe drop it completely in unix-3.x.x.x
2. merge ByteString and PosixString... use PosixString for filepaths and short data (e.g. `GroupEntry`/`UserEntry` maybe) and use ByteString for file contents, lazy IO and other things where we don't know anything about size limits. RawFilePath should be dropped... it's not right.

So, ideally... there would be only one API. String will probably have to live much longer, but it could be debated to move it to a compat package some time in the future.

@hs-viktor @Bodigrim

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.