Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload modules that were loaded as hidden when we explicitly load them. #4044

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Idris/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,9 @@ loadModule' f phase
ibcsd <- valIBCSubDir i
ids <- rankedImportDirs file
fp <- findImport ids ibcsd file
if file `elem` imported i
let noLoad = (file `elem` imported i)
&& (fromMaybe False (file `lookup` idris_imported i))
if noLoad
then do logParser 1 $ "Already read " ++ file
return Nothing
else do putIState (i { imported = file : imported i })
Expand Down