haskell / haskell/array

Missing NFData instances for unboxed arrays

Aperta
#8 7 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Haskell
Stelle
17
Fork
14
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

[NFData](https://hackage.haskell.org/package/deepseq-1.5.0.0/docs/Control-DeepSeq.html#g:1) instances for unboxed arrays (`UArray`, `STUArray`, `IOUArray`, `StorableArray`) are currently missing.

Ideally, they would be defined here, but we can't do that because `deepseq` (which defines `NFData`) depends on `array`.
However, `deepseq` has agreed to drop this dependency (see https://github.com/haskell/deepseq/issues/102), which makes this possible in the future.

For `array`, this would mean:

1. Wait for a new `deepseq` release which does not depend on `array`
2. Depend on `deepseq` and define the instances.

Does this sound ok to the maintainers here?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.