opendht-hs-0.1.1.1: Haskell bindings for OpenDHT
Copyright(c) Simon Désaulniers 2025
LicenseGPL-3
Maintainersim.desaulniers@gmail.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenDHT.Types

Description

Global datatypes.

Synopsis

Documentation

newtype Dht a Source #

The Dht monad. This is essentially a wrapper around IO which is needed to interface with the C code.

Constructors

Dht 

Fields

Instances

Instances details
MonadIO Dht Source # 
Instance details

Defined in OpenDHT.Types

Methods

liftIO :: IO a -> Dht a #

Applicative Dht Source # 
Instance details

Defined in OpenDHT.Types

Methods

pure :: a -> Dht a #

(<*>) :: Dht (a -> b) -> Dht a -> Dht b #

liftA2 :: (a -> b -> c) -> Dht a -> Dht b -> Dht c #

(*>) :: Dht a -> Dht b -> Dht b #

(<*) :: Dht a -> Dht b -> Dht a #

Functor Dht Source # 
Instance details

Defined in OpenDHT.Types

Methods

fmap :: (a -> b) -> Dht a -> Dht b #

(<$) :: a -> Dht b -> Dht a #

Monad Dht Source # 
Instance details

Defined in OpenDHT.Types

Methods

(>>=) :: Dht a -> (a -> Dht b) -> Dht b #

(>>) :: Dht a -> Dht b -> Dht b #

return :: a -> Dht a #