X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=VHDLTypes.hs;fp=VHDLTypes.hs;h=fe739da7149545bd4bc3d58f7a04c239ae89cf57;hb=6e874e80511177529f7d4506d78f69002ba69e68;hp=b3eaa9201f9c7bfc1b2147caba773395ee31cbc7;hpb=597f1b6823417f2c4cc54549f2a9d1b9f131893c;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/VHDLTypes.hs b/VHDLTypes.hs index b3eaa92..fe739da 100644 --- a/VHDLTypes.hs +++ b/VHDLTypes.hs @@ -59,7 +59,7 @@ type Builder = Either ([AST.Expr] -> AST.Expr) (Entity -> [CoreSyn.CoreBndr] -> -- A map of a builtin function to VHDL function builder type NameTable = Map.Map String (Int, Builder ) -data VHDLSession = VHDLSession { +data VHDLState = VHDLState { -- | A map of Core type -> VHDL Type vsTypes_ :: TypeMap, -- | A map of Elem types -> VHDL Vector Id @@ -74,10 +74,10 @@ data VHDLSession = VHDLSession { } -- Derive accessors -$( Data.Accessor.Template.deriveAccessors ''VHDLSession ) +$( Data.Accessor.Template.deriveAccessors ''VHDLState ) -- | The state containing a VHDL Session -type VHDLState = State.State VHDLSession +type VHDLSession = State.State VHDLState -- | A substate containing just the types type TypeState = State.State TypeMap