Refactor PackageFlags so that ExposePackage is a single constructor.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Fri, 1 Aug 2014 18:07:03 +0000 (19:07 +0100)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Tue, 5 Aug 2014 10:13:40 +0000 (03:13 -0700)
commit4accf60184dba550ef0cbdf70fa8e708a4007370
tree7972ea1dd9cf571140aab3c0e69120768a064a47
parent00b8f8c5b378fc679639ebe81238cf42d92aa607
Refactor PackageFlags so that ExposePackage is a single constructor.

You can parametrize over the different selection by using a
different PackageArg.  This helps reduce code duplication.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
compiler/main/DynFlags.hs
compiler/main/Packages.lhs
ghc/InteractiveUI.hs