HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulesyb-0.7.3Haskell98

Data.Generics.Builders

This module provides generic builder functions. These functions construct values of a given type.

  • 2 values
  • Packagesyb-0.7.3
  • Exports2
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceBuilders.hs
valueempty :: Data a => a
#

Construct the empty value for a datatype. For algebraic datatypes, the leftmost constructor is chosen.

valueconstrs :: Data a => [a]
#

Return a list of values of a datatype. Each value is one of the possible constructors of the datatype, populated with empty values.