-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some change to reduce cpp usage in the Main file.
- Made separate modules for each ghc version in the hopes that maintaining them would become easier than the many nested if, else we have in cpp right now.
- Loading branch information
1 parent
3c6535a
commit 3e986e1
Showing
10 changed files
with
1,009 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-- | | ||
-- Module : Fusion.Plugin.Ghc | ||
-- Copyright : (c) 2022 Composewell Technologies | ||
-- | ||
-- License : Apache-2.0 | ||
-- Maintainer : [email protected] | ||
-- Stability : experimental | ||
-- Portability : GHC | ||
|
||
{-# LANGUAGE CPP #-} | ||
|
||
module Fusion.Plugin.Ghc | ||
#if MIN_VERSION_ghc(8,6,0) | ||
( coreToDo | ||
, dumpCore | ||
, isPhase0MainTodo | ||
, defaultPurePlugin | ||
) | ||
where | ||
|
||
#if MIN_VERSION_ghc(9,5,0) | ||
import Fusion.Plugin.GhcHead | ||
#elif MIN_VERSION_ghc(9,4,0) | ||
import Fusion.Plugin.Ghc940 | ||
#elif MIN_VERSION_ghc(9,3,0) | ||
import Fusion.Plugin.Ghc930 | ||
#elif MIN_VERSION_ghc(9,2,2) | ||
import Fusion.Plugin.Ghc922 | ||
#elif MIN_VERSION_ghc(9,2,0) | ||
import Fusion.Plugin.Ghc920 | ||
#elif MIN_VERSION_ghc(9,0,0) | ||
import Fusion.Plugin.Ghc900 | ||
#elif MIN_VERSION_ghc(8,6,0) | ||
import Fusion.Plugin.Ghc860 | ||
#endif | ||
#endif |
Oops, something went wrong.