web3-ipfs-1.0.0.0: IPFS support for Haskell Web3 library.
CopyrightAleksandr Krupenkin 2016-2021
LicenseApache-2.0
Maintainermail@akru.me
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Network.Ipfs.Client

Description

IPFS daemon HTTP client.

Synopsis

Documentation

newtype IpfsT m a Source #

Constructors

IpfsT 

Instances

Instances details
MonadTrans IpfsT Source # 
Instance details

Defined in Network.Ipfs.Client

Methods

lift :: Monad m => m a -> IpfsT m a #

Monad m => MonadError ClientError (IpfsT m) Source # 
Instance details

Defined in Network.Ipfs.Client

Methods

throwError :: ClientError -> IpfsT m a #

catchError :: IpfsT m a -> (ClientError -> IpfsT m a) -> IpfsT m a #

Monad m => Monad (IpfsT m) Source # 
Instance details

Defined in Network.Ipfs.Client

Methods

(>>=) :: IpfsT m a -> (a -> IpfsT m b) -> IpfsT m b #

(>>) :: IpfsT m a -> IpfsT m b -> IpfsT m b #

return :: a -> IpfsT m a #

Functor m => Functor (IpfsT m) Source # 
Instance details

Defined in Network.Ipfs.Client

Methods

fmap :: (a -> b) -> IpfsT m a -> IpfsT m b #

(<$) :: a -> IpfsT m b -> IpfsT m a #

Monad m => Applicative (IpfsT m) Source # 
Instance details

Defined in Network.Ipfs.Client

Methods

pure :: a -> IpfsT m a #

(<*>) :: IpfsT m (a -> b) -> IpfsT m a -> IpfsT m b #

liftA2 :: (a -> b -> c) -> IpfsT m a -> IpfsT m b -> IpfsT m c #

(*>) :: IpfsT m a -> IpfsT m b -> IpfsT m b #

(<*) :: IpfsT m a -> IpfsT m b -> IpfsT m a #

MonadIO m => MonadIO (IpfsT m) Source # 
Instance details

Defined in Network.Ipfs.Client

Methods

liftIO :: IO a -> IpfsT m a #

Monad m => MonadReader (Manager, BaseUrl, String) (IpfsT m) Source # 
Instance details

Defined in Network.Ipfs.Client

Methods

ask :: IpfsT m (Manager, BaseUrl, String) #

local :: ((Manager, BaseUrl, String) -> (Manager, BaseUrl, String)) -> IpfsT m a -> IpfsT m a #

reader :: ((Manager, BaseUrl, String) -> a) -> IpfsT m a #

type Ipfs a = IpfsT IO a Source #

runIpfs' :: BaseUrl -> Ipfs a -> IO () Source #

IpfsT monad runner.

runIpfs :: Ipfs a -> IO () Source #

IpfsT monad runner with default arguments.