fixes ihaskell test nb

This commit is contained in:
Andrew Gibiansky 2014-06-11 21:27:17 -07:00
parent 0e6dc7e5a1
commit ead9198298
3 changed files with 64 additions and 22 deletions

View File

@ -63,7 +63,7 @@ library
bytestring,
directory,
-- Use diagrams wrapper package to ensure all same versions of subpackages
diagrams==1.1.*,
diagrams==1.2.*,
diagrams-lib,
diagrams-cairo,
ihaskell >= 0.4

File diff suppressed because one or more lines are too long

View File

@ -168,7 +168,8 @@ evalImport imports = do
-- Check whether an import is the same as another import (same module).
importOf :: ImportDecl RdrName -> InteractiveImport -> Bool
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.
implicitImportOf :: ImportDecl RdrName -> InteractiveImport -> Bool