mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-16 03:16:20 +00:00
fixes ihaskell test nb
This commit is contained in:
parent
0e6dc7e5a1
commit
ead9198298
@ -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
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user