Store a use for each signal in a flattened function.
[matthijs/master-project/cλash.git] / Translator.hs
index cccac4c08047178ec368a5a992d3c0eac48f4a0d..9ce7206c9df9bd841bd0c5a4e7cccabe1d392b3f 100644 (file)
@@ -188,7 +188,7 @@ nameFlatFunction hsfunc fdata =
     -- Name the signals in all other functions
     Just flatfunc ->
       let s = flat_sigs flatfunc in
-      let s' = map (\(id, (SignalInfo Nothing ty)) -> (id, SignalInfo (Just $ "sig_" ++ (show id)) ty)) s in
+      let s' = map (\(id, (SignalInfo Nothing use ty)) -> (id, SignalInfo (Just $ "sig_" ++ (show id)) use ty)) s in
       let flatfunc' = flatfunc { flat_sigs = s' } in
       setFlatFunc hsfunc flatfunc'