diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/typecheck/TcRnExports.hs | 2 | ||||
-rw-r--r-- | compiler/utils/Dominators.hs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/typecheck/TcRnExports.hs b/compiler/typecheck/TcRnExports.hs index af8ba09a65..a4ef692c58 100644 --- a/compiler/typecheck/TcRnExports.hs +++ b/compiler/typecheck/TcRnExports.hs @@ -269,7 +269,7 @@ exports_from_avail (Just (dL->L _ rdr_items)) rdr_env imports this_mod -- See Note [Avails of associated data families] expand_tyty_gre :: GlobalRdrElt -> [GlobalRdrElt] - expand_tyty_gre (gre @ GRE { gre_name = me, gre_par = ParentIs p }) + expand_tyty_gre (gre@GRE { gre_name = me, gre_par = ParentIs p }) | isTyConName p, isTyConName me = [gre, gre{ gre_par = NoParent }] expand_tyty_gre gre = [gre] diff --git a/compiler/utils/Dominators.hs b/compiler/utils/Dominators.hs index d6d8404564..485cc75995 100644 --- a/compiler/utils/Dominators.hs +++ b/compiler/utils/Dominators.hs @@ -364,11 +364,11 @@ domM = fetch domE rootM :: Dom s Node
rootM = gets rootE
succsM :: Node -> Dom s [Node]
-succsM i = gets (IS.toList . (!i) . succE)
+succsM i = gets (IS.toList . (! i) . succE)
predsM :: Node -> Dom s [Node]
-predsM i = gets (IS.toList . (!i) . predE)
+predsM i = gets (IS.toList . (! i) . predE)
bucketM :: Node -> Dom s [Node]
-bucketM i = gets (IS.toList . (!i) . bucketE)
+bucketM i = gets (IS.toList . (! i) . bucketE)
sizeM :: Node -> Dom s Int
sizeM = fetch sizeE
sdnoM :: Node -> Dom s Int
|