Support unaligned GC array accesses in `Prim`
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by inspecting the existing Prim class APIs for array accesses and the GHC-provided read/write/indexWord8ArrayAs[ty]# primops described in the issue. Determine the corresponding exposed operations and verify them with the project’s existing tests; the work is done when safe unaligned GC array access is available through Prim without addressing the separate Addr# primops planned for GHC 9.10.
Written by the indexing model from the issue text.
Description
GHC exposes a set of (read|write|index)Word8ArrayAs[ty]# primops for safe unaligned accesses to GC pointers. I think the Prim class could sensibly expose these.
Also note that similar primops for Addr# non-GC pointers will be coming in GHC 9.10 .
- Dominant language
- Haskell
- Stars
- 123
- Forks
- 60
- Avg merge
- 14d 14h
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from haskell/primitive
-
bump bound QuickCheck to <9.17Possibly taken @konsumlamm claimed this 14 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Drop support for GHCs older than 9.2?Possibly taken @konsumlamm claimed this 11 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
MicroHs supportOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
documentation
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in haskell/primitive
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
objectionary/phino#1858 ·
Maintainers usually reply within 1 day
-
status: needs triage type: enhancement
Difficulty 1/5 Under an hour Newbie friendliness 90/100
haskell/haskell-language-server#5128 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
alunduil/siren-json.hs#246 ·
Maintainers usually reply within 1 day
-
question
Difficulty 1/5 Under an hour Newbie friendliness 75/100
NixOS/SC-election-2026#44 · 1 reaction ·
Maintainers usually reply within 1 day