Skip to content

Commit

Permalink
Switch use of <$!!> to force
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketd committed Aug 30, 2024
1 parent 56887db commit 962c852
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions eras/byron/ledger/impl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Revision history for `cardano-ledger-byron`

## 1.0.1.1
## 1.0.2.0

*
* `force` `startTime` in the evaluation of genesis-data. #4574

## 1.0.1.0

Expand Down
3 changes: 1 addition & 2 deletions eras/byron/ledger/impl/cardano-ledger-byron.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.0
name: cardano-ledger-byron
version: 1.0.1.0
version: 1.0.2.0
license: Apache-2.0
maintainer: [email protected]
author: IOHK
Expand Down Expand Up @@ -243,7 +243,6 @@ library
contra-tracer,
cryptonite,
Cabal-syntax,
deepseq,
digest,
directory,
filepath,
Expand Down
4 changes: 1 addition & 3 deletions eras/byron/ledger/impl/src/Cardano/Chain/Genesis/Data.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import Cardano.Crypto (
)
import Cardano.Ledger.Binary
import Cardano.Prelude
import Control.DeepSeq ((<$!!>))
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as BSL
import Data.List (lookup)
Expand All @@ -49,7 +48,6 @@ import Text.JSON.Canonical (
parseCanonicalJSON,
renderCanonicalJSON,
)
import Prelude (id)

-- | Genesis data contains all data which determines consensus rules. It must be
-- same for all nodes. It's used to initialize global state, slotting, etc.
Expand Down Expand Up @@ -95,7 +93,7 @@ instance MonadError SchemaError m => FromJSON m GenesisData where
GenesisData
<$> fromJSField obj "bootStakeholders"
<*> fromJSField obj "heavyDelegation"
<*> (id <$!!> fromJSField obj "startTime")
<*> (force <$> fromJSField obj "startTime")
<*> fromJSField obj "nonAvvmBalances"
<*> fromJSField obj "blockVersionData"
-- The above is called blockVersionData for backwards compatibility with
Expand Down

0 comments on commit 962c852

Please sign in to comment.