Skip to content

Commit

Permalink
Apply blacklist to generating ModuleInfo as well
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Feb 17, 2017
1 parent 8852336 commit 9571c19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Stack/Script.hs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ toModuleInfo bp = ModuleInfo
Map.fromList
$ map (\mn -> (ModuleName $ encodeUtf8 mn, Set.singleton pn))
$ Set.toList mns) . fmap (sdModules . ppDesc))
$ filter (\(_, pp) -> not $ pcHide $ ppConstraints pp)
$ filter (\(pn, pp) ->
not (pcHide $ ppConstraints pp) &&
pn `Set.notMember` blacklist)
$ Map.toList (bpPackages bp)
}

Expand Down

0 comments on commit 9571c19

Please sign in to comment.