copilot-c99 3.0.1 → 3.0.2
raw patch · 2 files changed
+3/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
copilot-c99.cabal view
@@ -1,6 +1,6 @@ cabal-version : >= 1.10 name : copilot-c99-version : 3.0.1+version : 3.0.2 synopsis : A compiler for Copilot targeting C99. description : This package is a back-end from Copilot to C.
src/Copilot/Compile/C99/External.hs view
@@ -21,8 +21,8 @@ -- | Collect all external variables from the streams and triggers. gatherexts :: [Stream] -> [Trigger] -> [External] gatherexts streams triggers = streamsexts `extunion` triggersexts where- streamsexts = concat $ map streamexts streams- triggersexts = concat $ map triggerexts triggers+ streamsexts = foldr extunion mempty $ map streamexts streams+ triggersexts = foldr extunion mempty $ map triggerexts triggers streamexts :: Stream -> [External] streamexts (Stream _ _ expr _) = exprexts expr