Skip to content

Commit

Permalink
Constrain data-default version bounds
Browse files Browse the repository at this point in the history
data-default 0.8 introduced a breaking change: it doesn't export Default from data-default-class anymore. This is currently not compatible with clash-prelude, so we need to introduce version bounds. Once circuit-notation does not require Default anymore, we have the possibility to relax these bounds again (if we want).
  • Loading branch information
t-wallet committed Nov 14, 2024
1 parent e2e6f19 commit f071cf5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion clash-protocols-base/clash-protocols-base.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ library

build-depends:
, circuit-notation
, data-default-class
, deepseq
, extra
, ghc >= 8.7 && < 9.7
Expand Down
2 changes: 1 addition & 1 deletion clash-protocols/clash-protocols.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ library
, clash-protocols-base
, circuit-notation
, clash-prelude-hedgehog
, data-default-class
, data-default ^>= 0.7.1.1
, deepseq
, extra
, ghc >= 8.7 && < 9.7
Expand Down
2 changes: 1 addition & 1 deletion clash-protocols/src/Protocols.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ module Protocols (
TaggedBundle (..),
) where

import Data.Default.Class (def)
import Data.Default (def)
import Protocols.Df (Df)
import Protocols.Internal
2 changes: 1 addition & 1 deletion clash-protocols/src/Protocols/Df.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ For a generalized version of 'simulate', check out 'Protocols.simulateC'.
simulate ::
forall dom a b.
(C.KnownDomain dom) =>
-- | Simulation configuration. Use 'Data.Default.Class.def' for sensible defaults.
-- | Simulation configuration. Use 'Data.Default.def' for sensible defaults.
SimulationConfig ->
-- | Circuit to simulate.
( C.Clock dom ->
Expand Down
2 changes: 1 addition & 1 deletion clash-protocols/src/Protocols/DfConv.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ simulate ::
) =>
Proxy dfA ->
Proxy dfB ->
-- | Simulation configuration. Use 'Data.Default.Class.def' for sensible defaults.
-- | Simulation configuration. Use 'Data.Default.def' for sensible defaults.
SimulationConfig ->
-- | Circuit to simulate.
( Clock (Dom dfA) ->
Expand Down
2 changes: 1 addition & 1 deletion clash-protocols/src/Protocols/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import Protocols.Plugin.Units

import Control.Arrow ((***))
import Data.Coerce (coerce)
import Data.Default.Class (Default (def))
import Data.Default (Default (def))
import Data.Functor.Identity (Identity (..), runIdentity)
import Data.Kind (Type)
import Data.Tuple (swap)
Expand Down

0 comments on commit f071cf5

Please sign in to comment.