clash-ghc 1.4.1 → 1.4.2
raw patch · 4 files changed
+23/−11 lines, 4 filesdep ~clash-libdep ~clash-preludePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: clash-lib, clash-prelude
API changes (from Hackage documentation)
Files
- CHANGELOG.md +10/−0
- clash-ghc.cabal +3/−3
- src-bin-9.0/Clash/Main.hs +6/−5
- src-ghc/Clash/GHC/LoadModules.hs +4/−3
CHANGELOG.md view
@@ -1,5 +1,15 @@ # Changelog for the Clash project +## 1.4.2 *May 18th 2021*+Fixed:++ * Erroneous examples in `Clash.Annotation.TopEntity` documentation [#646](https://github.com/clash-lang/clash-compiler/issues/646) and [#654](https://github.com/clash-lang/clash-compiler/issues/654)+ * `unconcat` cannot be used as initial/reset value for a `register` [#1756](https://github.com/clash-lang/clash-compiler/issues/1756)+ * `showX` now doesn't crash if a spine of a `Vec` is undefined+ * `~ISACTIVEENABLE` in blackboxes works again, and now acts on `Signal dom Bool` in addition to `Enable dom`. Since [#1368](https://github.com/clash-lang/clash-compiler/pull/1368), enable lines were always generated even if they were known to be always enabled. Fixes [#1786](https://github.com/clash-lang/clash-compiler/issues/1786).+ * clash --show-options now shows -fclash-* options in GHC 9.0 [#1787](https://github.com/clash-lang/clash-compiler/issues/1787)+ * `makeRecursiveGroups` now correctly identifies mutual recursion between global binders ([#1796](https://github.com/clash-lang/clash-compiler/issues/1796)).+ ## 1.4.1 *April 6th 2021* Fixed:
clash-ghc.cabal view
@@ -1,6 +1,6 @@ Cabal-version: 2.2 Name: clash-ghc-Version: 1.4.1+Version: 1.4.2 Synopsis: Clash: a functional hardware description language - GHC frontend Description: Clash is a functional hardware description language that borrows both its@@ -163,8 +163,8 @@ transformers >= 0.5.2.0 && < 0.6, unordered-containers >= 0.2.1.0 && < 0.3, - clash-lib == 1.4.1,- clash-prelude == 1.4.1,+ clash-lib == 1.4.2,+ clash-prelude == 1.4.2, concurrent-supply >= 0.1.7 && < 0.2, ghc-typelits-extra >= 0.3.2 && < 0.5, ghc-typelits-knownnat >= 0.6 && < 0.8,
src-bin-9.0/Clash/Main.hs view
@@ -160,7 +160,7 @@ ShowSupportedExtensions -> showSupportedExtensions (Just libDir) ShowVersion -> showVersion ShowNumVersion -> putStrLn cProjectVersion- ShowOptions isInteractive -> showOptions isInteractive+ ShowOptions isInteractive -> showOptions isInteractive r Right postStartupMode -> -- start our GHC session GHC.runGhc (Just libDir) $ do@@ -878,12 +878,13 @@ , ")" ] -showOptions :: Bool -> IO ()-showOptions isInteractive = putStr (unlines availableOptions)+showOptions :: Bool -> IORef ClashOpts -> IO ()+showOptions isInteractive = putStr . unlines . availableOptions where- availableOptions = concat [+ availableOptions opts = concat [ flagsForCompletion isInteractive,- map ('-':) (getFlagNames mode_flags)+ map ('-':) (getFlagNames mode_flags),+ map ('-':) (getFlagNames (flagsClash opts)) ] getFlagNames opts = map flagName opts
src-ghc/Clash/GHC/LoadModules.hs view
@@ -2,8 +2,9 @@ Copyright : (C) 2013-2016, University of Twente, 2016-2017, Myrtle Software Ltd, 2017 , Google Inc.+ 2021 , QBayLogic B.V. License : BSD2 (see the file LICENSE)- Maintainer : Christiaan Baaij <christiaan.baaij@gmail.com>+ Maintainer : QBayLogic B.V. <devops@qbaylogic.com> -} {-# LANGUAGE CPP #-}@@ -651,11 +652,11 @@ Digraph.DigraphNode (b,e) (Var.varUnique b)- (UniqSet.nonDetKeysUniqSet (CoreFVs.exprFreeIds e))+ (UniqSet.nonDetKeysUniqSet (CoreFVs.exprSomeFreeVars Var.isId e)) #else ((b,e) ,Var.varUnique b- ,UniqSet.nonDetKeysUniqSet (CoreFVs.exprFreeIds e))+ ,UniqSet.nonDetKeysUniqSet (CoreFVs.exprSomeFreeVars Var.isId e)) #endif makeBind