diff options
Diffstat (limited to 'testsuite/tests/plugins/hole-fit-plugin/HoleFitPlugin.hs')
-rw-r--r-- | testsuite/tests/plugins/hole-fit-plugin/HoleFitPlugin.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/tests/plugins/hole-fit-plugin/HoleFitPlugin.hs b/testsuite/tests/plugins/hole-fit-plugin/HoleFitPlugin.hs index fe95cb6633..e9f504d92d 100644 --- a/testsuite/tests/plugins/hole-fit-plugin/HoleFitPlugin.hs +++ b/testsuite/tests/plugins/hole-fit-plugin/HoleFitPlugin.hs @@ -10,6 +10,7 @@ import GHC.Tc.Types.Constraint import GHC.Tc.Utils.Monad import Text.Read +import GHC.Data.Bag @@ -28,7 +29,7 @@ initPlugin _ = newTcRef $ HPS 0 Nothing fromModule :: HoleFitCandidate -> [String] fromModule (GreHFCand gre) = - map (moduleNameString . importSpecModule) $ gre_imp gre + map (moduleNameString . importSpecModule) $ (bagToList (gre_imp gre)) fromModule _ = [] toHoleFitCommand :: TypedHole -> String -> Maybe String |