foundation
foundation copied to clipboard
rewrite a ghc 8.2 friendly array with unboxed sum type instead of 2 constructors
The end goal is to end up with something like this:
data UArray ty = UArray (Offset ty) (Size ty) (# ByteArray# | FinalPtr ty #)