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.Internal.Utils

  • 3 values
  • Packagevulkan-3.27
  • Exports3
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceUtils.hs
valueenumReadPrec
  1. :: Read i
  2. => String

    The common constructor prefix

  3. -> [(a, String)]

    The table of values to constructor suffixes

  4. -> String

    The newtype constructor name

  5. -> (i -> a)

    The newtype constructor

  6. -> ReadPrec a
#

The common bits of enumeration and bitmask read instances

valueenumShowsPrec
  1. :: Eq a
  2. => String

    The common constructor prefix

  3. -> [(a, String)]

    A table of values to constructor suffixes

  4. -> String

    The newtype constructor name

  5. -> (a -> i)

    Unpack the newtype

  6. -> (i -> ShowS)

    Show the underlying value

  7. -> Int
  8. -> a
  9. -> ShowS
#

The common bits of enumeration and bitmask show instances