module Network.Ipfs.Api.Pin where
import Control.Monad.IO.Class (MonadIO)
import Data.Text (Text)
import Network.Ipfs.Api.Internal (_pinAdd, _pinRemove)
import Network.Ipfs.Api.Internal.Call (call)
import Network.Ipfs.Api.Types (PinObj)
import Network.Ipfs.Client (IpfsT)
add :: MonadIO m => Text -> IpfsT m PinObj
add :: Text -> IpfsT m PinObj
add = ClientM PinObj -> IpfsT m PinObj
forall (m :: * -> *) a. MonadIO m => ClientM a -> IpfsT m a
call (ClientM PinObj -> IpfsT m PinObj)
-> (Text -> ClientM PinObj) -> Text -> IpfsT m PinObj
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> ClientM PinObj
_pinAdd
remove :: MonadIO m => Text -> IpfsT m PinObj
remove :: Text -> IpfsT m PinObj
remove = ClientM PinObj -> IpfsT m PinObj
forall (m :: * -> *) a. MonadIO m => ClientM a -> IpfsT m a
call (ClientM PinObj -> IpfsT m PinObj)
-> (Text -> ClientM PinObj) -> Text -> IpfsT m PinObj
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> ClientM PinObj
_pinRemove