Put the Builders in the VHDLSession.
[matthijs/master-project/cλash.git] / VHDLTypes.hs
index 59da9c17341dfc1d63f70f89673159071848055a..3a8bce12f88e4fef661449443dd72a4d0c05e20a 100644 (file)
@@ -75,7 +75,7 @@ type VHDLSession = State.State VHDLState
 -- | A substate containing just the types
 type TypeState = State.State TypeMap
 
-type Builder = Either ([AST.Expr] -> AST.Expr) (Entity -> [CoreSyn.CoreBndr] -> AST.GenerateSm)
+type Builder = Either ([AST.Expr] -> VHDLSession AST.Expr) (Entity -> [CoreSyn.CoreBndr] -> VHDLSession AST.GenerateSm)
 
 -- A map of a builtin function to VHDL function builder 
 type NameTable = Map.Map String (Int, Builder )