HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleram-0.22.1Haskell2010

Data.ByteArray.Sized

  • 1 type
  • 1 class
  • 27 values
  • Packageram-0.22.1
  • Exports29
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceSized.hs
newtypenewtype SizedByteArray (n :: Nat) ba
#

Wrapper around any collection type with the size as type parameter

Instances6ByteArrayN, Eq, Ord, Show, NFData, ByteArrayAccess

ByteArrayN operators

24 declarations
valuealloc :: (ByteArrayN n ba, KnownNat n) => (Ptr p -> IO ()) -> IO ba
#

Allocate a new bytearray of specific size, and run the initializer on this memory

valuecreate :: (ByteArrayN n ba, KnownNat n) => (Ptr p -> IO ()) -> IO ba
#

Allocate a new bytearray of specific size, and run the initializer on this memory