clash-lib-hedgehog 1.10.0 → 1.10.1
raw patch · 2 files changed
+7/−8 lines, 2 filesdep −data-binary-ieee754dep ~clash-libPVP ok
version bump matches the API change (PVP)
Dependencies removed: data-binary-ieee754
Dependency ranges changed: clash-lib
API changes (from Hackage documentation)
Files
clash-lib-hedgehog.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.2 name: clash-lib-hedgehog-version: 1.10.0+version: 1.10.1 synopsis: Hedgehog Generators for clash-lib description: Hedgehog Generators for clash-lib bug-reports: https://github.com/clash-lang/clash-compiler/issues@@ -9,7 +9,7 @@ license-file: LICENSE author: QBayLogic B.V. maintainer: devops@qbaylogic.com-copyright: Copyright © 2021-2025, QBayLogic B.V.+copyright: Copyright © 2021-2026, QBayLogic B.V. category: Hardware build-type: Simple tested-with: GHC == 9.6.7,@@ -34,7 +34,7 @@ build-depends: base >= 4.11 && < 5,- hedgehog >= 1.0.3 && < 1.6,+ hedgehog >= 1.0.3 && < 1.8, library import: basic-config@@ -54,7 +54,6 @@ build-depends: containers >= 0.5.0.0 && < 0.9,- data-binary-ieee754 >= 0.4.4 && < 0.6, fakedata >= 1.0.2 && < 1.1, ghc-typelits-knownnat >= 0.8.3 && < 0.9, ghc-typelits-natnormalise >= 0.9.5 && < 0.10,@@ -67,4 +66,4 @@ transformers >= 0.5.2.0 && < 0.7, ghc >= 9.6.0 && < 9.13, - clash-lib == 1.10.0,+ clash-lib == 1.10.1,
src/Clash/Hedgehog/Core/Literal.hs view
@@ -12,7 +12,7 @@ ( genLiteralFrom ) where -import Data.Binary.IEEE754 (doubleToWord, floatToWord)+import GHC.Float (castDoubleToWord64, castFloatToWord32) import qualified Data.Primitive.ByteArray as BA (byteArrayFromList) import Hedgehog (MonadGen) import qualified Hedgehog.Gen as Gen@@ -119,12 +119,12 @@ genFloatLiteral :: forall m. MonadGen m => m Literal genFloatLiteral = let range = Range.linearFrac 1.17549435e-38 3.40282347e+38- in FloatLiteral <$> (floatToWord <$> Gen.float range)+ in FloatLiteral <$> (castFloatToWord32 <$> Gen.float range) genDoubleLiteral :: forall m. MonadGen m => m Literal genDoubleLiteral = let range = Range.linearFrac 2.2250738585072014e-308 1.7976931348623157e+308- in DoubleLiteral <$> (doubleToWord <$> Gen.double range)+ in DoubleLiteral <$> (castDoubleToWord64 <$> Gen.double range) genCharLiteral :: forall m. MonadGen m => m Literal genCharLiteral =