Skip to content

Commit

Permalink
Hacky fix: restrict data-default < 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed Jan 7, 2025
1 parent 6f9bce2 commit 68f4c70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ if os(windows)

constraints: any.text source

constraints: data-default < 0.8

-- Depending on C++ for just so slightly faster utf8 parsing is a bit annoying
-- especially as it brings in all kinds of complications for GHC.
package text
Expand Down
1 change: 1 addition & 0 deletions cardano-cli/cardano-cli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ library
containers,
contra-tracer,
cryptonite,
data-default <0.8,
deepseq,
directory,
exceptions,
Expand Down
3 changes: 3 additions & 0 deletions cardano-cli/src/Cardano/CLI/Orphans.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import qualified Cardano.Api.Ledger as L
import Cardano.Api.Shelley (scriptDataToJsonDetailedSchema)

import Data.Aeson
import Data.Default ()

-- FIXME remove Data.Default () import. This is only to force usage of data-default < 0.8 and to work around unused pacakge warning.

-- TODO upstream this orphaned instance to the ledger
instance (L.EraTxOut ledgerera, L.EraGov ledgerera) => ToJSON (L.NewEpochState ledgerera) where
Expand Down

0 comments on commit 68f4c70

Please sign in to comment.