Skip to content

Commit

Permalink
instance Eq AnyVenue
Browse files Browse the repository at this point in the history
  • Loading branch information
runeksvendsen committed Jan 8, 2024
1 parent fbcc273 commit ec5f232
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CryptoVenues/Fetch/MarketBook.hs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ data AnyVenue
MarketBook venue
=> AnyVenue (Proxy venue)

instance Eq AnyVenue where
AnyVenue p1 == AnyVenue p2 =
symbolVal p1 == symbolVal p2

instance Show AnyVenue where
show (AnyVenue p) = symbolVal p

Expand Down

0 comments on commit ec5f232

Please sign in to comment.