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

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulevulkan-3.27GHC2021

Vulkan.Zero

  • 1 class
  • Packagevulkan-3.27
  • Exports1
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceZero.hs
classclass Zero a where
#

A class for initializing things with all zero data

Any instance should satisfy the following law:

new zero = calloc or with zero = withZeroCStruct

i.e. Marshaling zero to memory yeilds only zero-valued bytes, except for structs which require a "type" tag

Methods

Instances1685Zero, …