diff options
Diffstat (limited to 'compiler/nativeGen/RegAlloc/Graph')
-rw-r--r-- | compiler/nativeGen/RegAlloc/Graph/ArchBase.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/nativeGen/RegAlloc/Graph/ArchBase.hs b/compiler/nativeGen/RegAlloc/Graph/ArchBase.hs index 634e61cb13..c38d998779 100644 --- a/compiler/nativeGen/RegAlloc/Graph/ArchBase.hs +++ b/compiler/nativeGen/RegAlloc/Graph/ArchBase.hs @@ -21,11 +21,13 @@ module RegAlloc.Graph.ArchBase ( bound, squeese ) where + import GhcPrelude import UniqSet import UniqFM import Unique +import MonadUtils (concatMapM) -- Some basic register classes. @@ -152,7 +154,7 @@ squeese regsOfClass regAlias classN countCs -- | powerset (for lists) powersetL :: [a] -> [[a]] -powersetL = map concat . mapM (\x -> [[],[x]]) +powersetL = concatMapM (\x -> [[],[x]]) -- | powersetLS (list of sets) |