{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
module Data.Solidity.Prim.Tuple where
import Data.Proxy (Proxy (..))
import Data.Tuple.OneTuple (OneTuple (..))
import Generics.SOP (Generic)
import qualified GHC.Generics as GHC (Generic)
import Data.Solidity.Abi (AbiGet, AbiPut, AbiType (..))
import Data.Solidity.Abi.Generic ()
import Data.Solidity.Prim.Tuple.TH (tupleDecs)
deriving instance GHC.Generic (OneTuple a)
instance Generic (OneTuple a)
instance AbiType a => AbiType (OneTuple a) where
isDynamic :: Proxy (OneTuple a) -> Bool
isDynamic Proxy (OneTuple a)
_ = Proxy a -> Bool
forall a. AbiType a => Proxy a -> Bool
isDynamic (Proxy a
forall k (t :: k). Proxy t
Proxy :: Proxy a)
instance AbiGet a => AbiGet (OneTuple a)
instance AbiPut a => AbiPut (OneTuple a)
$(