haskell / haskell/bytestring

Store a `State# RealWorld` in the ByteString

Open
#684 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
301
Forks
144
Avg merge
7d 22h
Merged PRs (30d)
1

Description

This allows passing the state thread used to initialize the ByteString’s pointer to the functions that access that pointer. As a result, `deferForeignPtrAvailability` can be removed, and most or all uses of `accursedUnutterablePerformIO` can be replaced with a safer function that takes a `State# RealWorld` argument.

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.