Skip to content

Commit

Permalink
make variant 8 compile, bit of cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
atzedijkstra committed Jan 1, 2016
1 parent b0b996f commit b2789c7
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 28 deletions.
8 changes: 4 additions & 4 deletions EHC/src/ehc/Base/Common.chs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
%%[1 import(UHC.Util.Hashable) export (module UHC.Util.Hashable)
%%]

%%[8 import(GHC.Generics(Generic))
%%[1 import(Data.Typeable(Typeable)) export(module Data.Typeable)
%%]

%%[1 import(GHC.Generics(Generic)) export(module GHC.Generics)
%%]

%%[1 import({%{EH}Base.HsName},{%{EH}Base.HsName.Builtin}) export(module {%{EH}Base.HsName})
Expand All @@ -35,9 +38,6 @@
%%[1 import(UHC.Util.AssocL) export(module UHC.Util.AssocL)
%%]

%%[1 import(Data.Typeable(Typeable), Data.Generics(Data)) export(module Data.Typeable, module Data.Generics)
%%]

%%[1 import(UHC.Util.Pretty, Data.List)
%%]

Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/Base/FileSearchLocation.chs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ In principle such files reside in directories or packages.
%%[99 import(UHC.Util.Hashable)
%%]

%%[99 import(GHC.Generics)
%%[9999 import(GHC.Generics)
%%]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down
5 changes: 1 addition & 4 deletions EHC/src/ehc/Base/HsName.chs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ HsNameUniqifier to guarantee such an invariant.
%%[1 module {%{EH}Base.HsName} import(UHC.Util.Utils,UHC.Util.Pretty, Data.List)
%%]

%%[1 import(Data.Typeable(Typeable), Data.Generics(Data))
%%]

%%[1 import(GHC.Generics)
%%[1 import(Data.Typeable(Typeable), GHC.Generics(Generic))
%%]

%%[1 import({%{EH}Base.UID})
Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/Base/Optimize.chs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
%%[8 module {%{EH}Base.Optimize}
%%]

%%[8 import(GHC.Generics)
%%[8888 import(GHC.Generics)
%%]

%%[8 import({%{EH}Base.Common})
Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/Base/Trace.chs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%%[1 import(UHC.Util.Pretty, UHC.Util.Utils)
%%]

%%[1 import(GHC.Generics(Generic), Data.Typeable)
%%[1111 import(GHC.Generics(Generic), Data.Typeable)
%%]

%%[1 import(Control.Monad, Control.Monad.IO.Class)
Expand Down
5 changes: 1 addition & 4 deletions EHC/src/ehc/Base/UID.chs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@
%%[7 export(mkNewLevUIDL,mkInfNewLevUIDL)
%%]

%%[1 import(Data.Typeable(Typeable), Data.Generics(Data))
%%[1 import(Data.Typeable(Typeable), GHC.Generics(Generic))
%%]

%%[50 import(Control.Monad, UHC.Util.Binary as B, UHC.Util.Serialize)
%%]

%%[1 import(GHC.Generics)
%%]

%%[9999 import({%{EH}Base.ForceEval})
%%]

Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/Base/UnderDev.chs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%%[1 import(UHC.Util.Utils)
%%]

%%[1 import(GHC.Generics(Generic), Data.Typeable)
%%[1111 import(GHC.Generics(Generic), Data.Typeable)
%%]

%%[8888 import(Control.Monad, Control.Monad.IO.Class)
Expand Down
3 changes: 3 additions & 0 deletions EHC/src/ehc/CodeGen/BasicAnnot.chs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
%%[(8 codegen) hs module {%{EH}CodeGen.BasicAnnot}
%%]

%%[(8 codegen) hs import({%{EH}Base.Common})
%%]

%%[(8 codegen) hs import(qualified Data.Map as Map,Data.Bits, Data.List)
%%]

Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/CodeGen/CEnv.chs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Environmental info required during code generation
%%[8 hs module {%{EH}CodeGen.CEnv}
%%]

%%[8 hs import(Data.Typeable)
%%[8 hs import({%{EH}Base.Common})
%%]
%%[8 hs import(UHC.Util.Lens)
%%]
Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/EHC/ASTHandler.chs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Abstraction for dealing with AST formats
%%[8 import ({%{EH}EHC.Common}, {%{EH}EHC.CompileUnit}, {%{EH}EHC.CompileRun.Base})
%%]

%%[8 import (Data.Typeable, GHC.Generics)
%%[8888 import (Data.Typeable, GHC.Generics)
%%]

%%[8 import (qualified Data.Map as Map)
Expand Down
5 changes: 4 additions & 1 deletion EHC/src/ehc/EHC/ASTHandler/Instances.chs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
%%[8 import (qualified UHC.Util.RelMap as Rel)
%%]

%%[8 import (Data.Typeable, GHC.Generics)
%%[8 import (Data.Typeable)
%%]

%%[8888 import (GHC.Generics)
%%]

%%[8 import({%{EH}Base.ParseUtils})
Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/EHC/ASTPipeline.chs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Used by all compiler driver code
%%[8 import(Data.Monoid)
%%]

%%[8 import(GHC.Generics)
%%[8888 import(GHC.Generics)
%%]

%%[8 import(UHC.Util.Pretty, UHC.Util.FPath, UHC.Util.Utils)
Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/EHC/ASTTypes.chs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
%%[8 import ({%{EH}Base.Common})
%%]

%%[8 import (Data.Typeable, GHC.Generics)
%%[8888 import (Data.Typeable, GHC.Generics)
%%]

-- Language syntax: HS, EH, Core, TyCore, Grin, ...
Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/EHC/Common.chs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Used by all compiler driver code
%%]
%%[1 import({%{EH}Error},{%{EH}Error.Pretty}) export(module {%{EH}Error},module {%{EH}Error.Pretty})
%%]
%%[8 import(GHC.Generics)
%%[8888 import(GHC.Generics)
%%]

%%[8 import({%{EH}EHC.ASTPipeline}) export(module {%{EH}EHC.ASTPipeline})
Expand Down
4 changes: 2 additions & 2 deletions EHC/src/ehc/EHC/CompileRun/Base.chs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ An EHC compile run maintains info for one compilation invocation
-- general imports
%%[8 import(qualified Data.Map as Map,qualified Data.Set as Set, qualified Data.IntMap as IMap, Data.Maybe)
%%]
%%[8 import (Data.Typeable)
%%[8888 import (Data.Typeable)
%%]
%%[8 import(GHC.Generics(Generic))
%%[8888 import(GHC.Generics(Generic))
%%]
%%[8 import(qualified UHC.Util.RelMap as Rel, UHC.Util.Hashable)
%%]
Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/EHC/CompileUnit.chs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ An EHC compile unit maintains info for one unit of compilation, a Haskell (HS) m
%%[8 import(UHC.Util.Lens)
%%]

%%[8 import(Data.Typeable)
%%[8888 import(Data.Typeable)
%%]

-- Language syntax: HS, EH
Expand Down
7 changes: 5 additions & 2 deletions EHC/src/ehc/Opts/Base.chs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
%%[1 import(UHC.Util.Utils)
%%]

%%[1 import(Data.Typeable, Data.Maybe, qualified Data.Map as Map)
%%[1111 import(Data.Typeable)
%%]

%%[1 import(Data.Maybe, qualified Data.Map as Map)
%%]

%%[1 import({%{EH}Base.UnderDev})
Expand All @@ -29,7 +32,7 @@
%%[7 import(qualified Data.Set as Set)
%%]

%%[8 import(GHC.Generics(Generic))
%%[8888 import(GHC.Generics(Generic))
%%]

%%[8 import(Data.List,Data.Char,{%{EH}Base.HsName.Builtin})
Expand Down
2 changes: 1 addition & 1 deletion EHC/src/ehc/Opts/CommandLine.chs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
%%[8 import(Data.List)
%%]

%%[8 import(Data.Typeable(Typeable), Data.Generics(Data))
%%[8 import(Data.Typeable(Typeable))
%%]

%%[50 import(UHC.Util.Binary, UHC.Util.Serialize)
Expand Down

0 comments on commit b2789c7

Please sign in to comment.