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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 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, …