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.Driver.Phases

  • 2 types
  • 25 values
  • Packageghc-9.10.3
  • Exports27
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourcePhases.hs

When we are given files (modified by -x arguments) we need to determine if they are Haskellish or not to figure out how we should try to compile it. The rules are:

  1. If no -x flag was specified, we check to see if the file looks like a module name, has no extension, or has a Haskell source extension.

  2. If an -x flag was specified, we just make sure the specified suffix is a Haskell one.