HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleghc-10.0.0.20260917GHC2024

GHC.Core.Opt.Simplify.Env

  • 10 types
  • 80 values

The simplifier mode

3 declarations
datadata SimplMode
#

Constructors

Instances1Outputable

Environments

43 declarations
datadata SimplPhase
#

See Note [SimplPhase]

Constructors

  • SimplPhase CompilerPhase

    A simplifier phase: InitialPhase, Phase 2, Phase 1, Phase 0, FinalPhase NB: (SimplPhase p) is equivalent to (SimplPhaseRange p p)

  • SimplPhaseRange CompilerPhase CompilerPhase

    Simplifying the RHS of a rule or of a stable unfolding: the range of phases of the activation of the rule/stable unfolding.

    _Invariant:_ simplStartPhase is not a later phase than simplEndPhase. Equivalently, SimplPhaseRange is always a non-empty interval of phases.

    See Note [What is active in the RHS of a RULE or unfolding?] in GHC.Core.Opt.Simplify.Utils.

Instances2Eq, Outputable

Is this activation active in this simplifier phase?

For a phase range, isActive simpl_phase_range act is true if and only if act is active throughout the entire range, as per Note [What is active in the RHS of a RULE or unfolding?] in GHC.Core.Opt.Simplify.Utils.

See Note [SimplPhase].

Substitution results

4 declarations

Simplifying Id binders

12 declarations

Floats

14 declarations

LetFloats

7 declarations

JoinFloats

7 declarations