Skip to content

Commit

Permalink
Merge pull request #4875 from IntersectMBO/js/orphan-showproxy
Browse files Browse the repository at this point in the history
Move ShowProxy SlotNo to ShowProxy
  • Loading branch information
jasagredo committed May 8, 2024
2 parents c531409 + fa09d7d commit 431bb59
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ouroboros-network-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

### Non-Breaking changes

* Added `ShowProxy SlotNo` instance

## 0.7.2.0 -- 2024-05-07

### Breaking changes
Expand Down
2 changes: 2 additions & 0 deletions ouroboros-network-api/src/Ouroboros/Network/Util/ShowProxy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module Ouroboros.Network.Util.ShowProxy
, Proxy (..)
) where

import Cardano.Slotting.Slot (SlotNo)
import Data.Typeable

class ShowProxy p where
Expand All @@ -15,3 +16,4 @@ class ShowProxy p where
showProxy p = showsTypeRep (typeRep p) ""

instance ShowProxy Int where
instance ShowProxy SlotNo where
2 changes: 2 additions & 0 deletions ouroboros-network-protocols/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Breaking changes

* Un-orphan `ShowProxy SlotNo` instance.

### Non-Breaking changes

## 0.8.1.0 -- 2024-03-14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ instance ShowProxy TxId where
-- Orphans Plumbing
--

instance ShowProxy SlotNo where

instance (Arbitrary txid, Arbitrary tx, Arbitrary slot)
=> Arbitrary (AnyMessageAndAgency (LocalTxMonitor txid tx slot))
where
Expand Down

0 comments on commit 431bb59

Please sign in to comment.