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

Moduleghc-9.10.3GHC2021

GHC.Tc.TyCl.Utils

Analysis functions over data types. Specifically, detecting recursive types.

This stuff is only used for source-code decls; it's recorded in interface files for imported data types.

  • 1 type
  • 8 values
  • Packageghc-9.10.3
  • Exports9
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceUtils.hs
valuecheckSynCycles :: Unit -> [TyCon] -> [LTyClDecl GhcRn] -> TcM ()
#

Checks if any of the passed in TyCons have cycles. Takes the Unit of the home package (as we can avoid checking those TyCons: cycles never go through foreign packages) and the corresponding LTyClDecl Name for each TyCon, so we can give better error messages.

Implicits

2 declarations

Record selectors

3 declarations