haskell / haskell/text

Expose the I8 constructor

Open
#511 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
421
Forks
163
PR merge metrics
No merged PRs in 30d

Description

The `newtype I8` in `Data.Text.Foreign` does not expose its constructor. Is that intentional?

I would like to use `I8` as a semantic distinction to prevent mixing up byte-offsets and character-offsets, in code that ultimately passes the values to `takeWord8` and `dropWord8`.

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.