ghc-9.0.0.20201227: The GHC API
Safe HaskellNone
LanguageHaskell2010

GHC.Driver.Phases

Synopsis

Documentation

data HscSource Source #

Constructors

HsSrcFile 
HsBootFile 
HsigFile 

Instances

Instances details
Eq HscSource # 
Instance details

Defined in GHC.Driver.Phases

Ord HscSource # 
Instance details

Defined in GHC.Driver.Phases

Show HscSource # 
Instance details

Defined in GHC.Driver.Phases

Binary HscSource # 
Instance details

Defined in GHC.Driver.Phases

data Phase Source #

Instances

Instances details
Eq Phase # 
Instance details

Defined in GHC.Driver.Phases

Methods

(==) :: Phase -> Phase -> Bool #

(/=) :: Phase -> Phase -> Bool #

Show Phase # 
Instance details

Defined in GHC.Driver.Phases

Outputable Phase # 
Instance details

Defined in GHC.Driver.Phases

isHaskellishTarget :: (String, Maybe Phase) -> Bool Source #

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.