Skip to content

Failed to build with ghc-9.14 #74

Open

Description

@juhp

I tried building Stackage Nightly with ghc-9.14.2 RC2:

       Building library for fusion-plugin-0.2.8...
       [1 of 1] Compiling Fusion.Plugin
       /home/curators/work/unpack-dir/unpacked/fusion-plugin-0.2.8-5005f10c29bb918ebbdba9ccdf495a5709a9871f8505cd7612e6020851506fea/src/Fusion/Plugin.hs:338:30: error: [GHC-88464]
           Variable not in scope:
             isActive :: CompilerPhase -> Activation -> Bool
           Suggested fix:
             Add ‘isActive’ to the import list in the import of
             ‘GHC.Core.Opt.Simplify.Env’ (at src/Fusion/Plugin.hs:66:1-48).
           |
       338 |     in isInlinePragma inl && IS_ACTIVE (inlinePragmaActivation inl)
           |                              ^^^^^^^^

       /home/curators/work/unpack-dir/unpacked/fusion-plugin-0.2.8-5005f10c29bb918ebbdba9ccdf495a5709a9871f8505cd7612e6020851506fea/src/Fusion/Plugin.hs:1067:34: error: [GHC-83865]
           • Couldn't match expected type ‘GHC.Core.Opt.Simplify.Env.SimplPhase’
                         with actual type ‘CompilerPhase’
           • In the pattern: Phase 0
             In the pattern: SimplMode {sm_phase = Phase 0, sm_names = ["main"]}
             In the pattern:
               SimplifyOpts {so_mode = (SimplMode {sm_phase = Phase 0,
                                                   sm_names = ["main"]})}
            |
       1067 |                     { sm_phase = Phase 0
            |                                  ^^^^^^^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions