Commit ead91982 authored by Andrew Gibiansky's avatar Andrew Gibiansky

fixes ihaskell test nb

parent 0e6dc7e5
...@@ -63,7 +63,7 @@ library ...@@ -63,7 +63,7 @@ library
bytestring, bytestring,
directory, directory,
-- Use diagrams wrapper package to ensure all same versions of subpackages -- Use diagrams wrapper package to ensure all same versions of subpackages
diagrams==1.1.*, diagrams==1.2.*,
diagrams-lib, diagrams-lib,
diagrams-cairo, diagrams-cairo,
ihaskell >= 0.4 ihaskell >= 0.4
......
This diff is collapsed.
...@@ -168,7 +168,8 @@ evalImport imports = do ...@@ -168,7 +168,8 @@ evalImport imports = do
-- Check whether an import is the same as another import (same module). -- Check whether an import is the same as another import (same module).
importOf :: ImportDecl RdrName -> InteractiveImport -> Bool importOf :: ImportDecl RdrName -> InteractiveImport -> Bool
importOf _ (IIModule _) = False importOf _ (IIModule _) = False
importOf imp (IIDecl decl) = ((==) `on` (unLoc . ideclName)) decl imp importOf imp (IIDecl decl) =
((==) `on` (unLoc . ideclName)) decl imp && not (ideclQualified decl)
-- Check whether an import is an *implicit* import of something. -- Check whether an import is an *implicit* import of something.
implicitImportOf :: ImportDecl RdrName -> InteractiveImport -> Bool implicitImportOf :: ImportDecl RdrName -> InteractiveImport -> Bool
......
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