HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleghc-source-gen-0.4.6.0Haskell2010

GHC.SourceGen.Pat

This module provides combinators for constructing Haskell patterns.

  • 1 type
  • 8 values
valuelazyP :: Pat' -> Pat'
#

A lazy pattern match.

~(A x)
=====
lazyP (conP "A" [bvar x])
valuesigP :: Pat' -> HsType' -> Pat'
#

A pattern type signature

x :: y
=====
sigPat (bvar "x") (var "y")