HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulesyb-0.7.4Haskell98

Data.Generics.Builders

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

Synopsis
  • Packagesyb-0.7.4
  • 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.