packages feed

electrs-client-0.1.0.0: src/ElectrsClient/RpcResponse.hs

module ElectrsClient.RpcResponse
  ( RpcResponse (..),
  )
where

import ElectrsClient.Import.External

data RpcResponse a = RpcResponse
  { id :: Integer,
    jsonrpc :: Text,
    result :: a
  }
  deriving stock (Generic, Show)

instance FromJSON a => FromJSON (RpcResponse a)