From 26a79443a78dce9a23cdd176311974c4757f5080 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Tue, 30 Apr 2024 19:14:30 -0500 Subject: [PATCH] Add Read instance to Rseed --- CHANGELOG.md | 6 ++++++ src/ZcashHaskell/Types.hs | 2 +- zcash-haskell.cabal | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f9e53b..bee207c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.6.1.1] + +### Changed + +- Add `Read` instance for `Rseed` + ## [0.6.1.0] ### Added diff --git a/src/ZcashHaskell/Types.hs b/src/ZcashHaskell/Types.hs index 91f01b5..259c080 100644 --- a/src/ZcashHaskell/Types.hs +++ b/src/ZcashHaskell/Types.hs @@ -648,7 +648,7 @@ data DecodedNote = DecodedNote data Rseed = Rseed { rs_kind :: !Word8 , rs_bytes :: !BS.ByteString - } deriving stock (Eq, Prelude.Show, GHC.Generic) + } deriving stock (Eq, Prelude.Show, GHC.Generic, Read) deriving anyclass (SOP.Generic, SOP.HasDatatypeInfo) deriving anyclass (Data.Structured.Show) deriving (BorshSize, ToBorsh, FromBorsh) via AsStruct Rseed diff --git a/zcash-haskell.cabal b/zcash-haskell.cabal index 4730957..361d33e 100644 --- a/zcash-haskell.cabal +++ b/zcash-haskell.cabal @@ -5,7 +5,7 @@ cabal-version: 3.0 -- see: https://github.com/sol/hpack name: zcash-haskell -version: 0.6.1.0 +version: 0.6.1.1 synopsis: Utilities to interact with the Zcash blockchain description: Please see the README on the repo at category: Blockchain -- 2.34.1