Commit 426ae988 authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Ben Gamari

Split TrieMap into a general (TrieMap) and core specific (CoreTrieMap) module.

Splitting TrieMap into a general and core specific part allows us to
define instances for TrieMap without creating a transitive dependency on
CoreSyn.

Test Plan: ci

Reviewers: goldfire, bgamari, simonmar, simonpj

Reviewed By: bgamari, simonpj

Subscribers: simonpj, nomeata, thomie, carter

GHC Trac Issues: #15082

Differential Revision: https://phabricator.haskell.org/D4618
parent 49f59430
......@@ -290,6 +290,7 @@ Library
CoreTidy
CoreUnfold
CoreUtils
CoreMap
CoreSeq
CoreStats
MkCore
......
......@@ -28,7 +28,7 @@ import Outputable
import BasicTypes ( TopLevelFlag(..), isTopLevel
, isAlwaysActive, isAnyInlinePragma,
inlinePragmaSpec, noUserInlineSpec )
import TrieMap
import CoreMap
import Util ( filterOut )
import Data.List ( mapAccumL )
......
......@@ -80,7 +80,7 @@ import VarEnv
import CoreSyn (AltCon(..))
import Data.List (mapAccumL)
import Data.Maybe (fromMaybe)
import TrieMap
import CoreMap
import NameEnv
import Control.Monad( (>=>) )
......
......@@ -162,7 +162,7 @@ import UniqFM
import UniqDFM
import Maybes
import TrieMap
import CoreMap
import Control.Monad
import qualified Control.Monad.Fail as MonadFail
import MonadUtils
......
......@@ -37,7 +37,7 @@ import HsSyn
import DynFlags
import Bag
import Var ( TyVarBndr(..) )
import TrieMap
import CoreMap
import Constants
import Fingerprint(Fingerprint(..), fingerprintString, fingerprintFingerprints)
import Outputable
......
......@@ -53,7 +53,7 @@ import PrelNames ( eqPrimTyConKey )
import UniqDFM
import Outputable
import Maybes
import TrieMap
import CoreMap
import Unique
import Util
import Var
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment