Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class HasNetworkConfig env where
- data NetworkConfig
- data NetworkException
- networkConfigNetworkId :: NetworkConfig -> NetworkId
- networkConfigPreconfiguredPeers :: NetworkConfig -> Set Peer
Documentation
class HasNetworkConfig env where #
An environment which contains a NetworkConfig
.
:: Lens' env NetworkConfig | Lens to get or set the |
Instances
HasNetworkConfig NetworkConfig # | |
Defined in Gini.Network.Types.Internal |
data NetworkConfig #
Configuration value used by the entire gini-network package.
Instances
HasPeersState NetworkConfig # | |
Defined in Gini.Network.Types.Internal | |
HasNetworkConfig NetworkConfig # | |
Defined in Gini.Network.Types.Internal |
data NetworkException #
Things that can go wrong in gini-network.
Note: Many other exception types may be thrown from underlying libraries. Does not attempt to wrap these underlying exceptions.
Instances
Show NetworkException # | |
Defined in Gini.Network.Types showsPrec :: Int -> NetworkException -> ShowS # show :: NetworkException -> String # showList :: [NetworkException] -> ShowS # | |
Exception NetworkException # | |
Defined in Gini.Network.Types | |
Display NetworkException # | |
Defined in Gini.Network.Types display :: NetworkException -> Utf8Builder textDisplay :: NetworkException -> Text |
networkConfigNetworkId :: NetworkConfig -> NetworkId #
Access network ID from network configuration
networkConfigPreconfiguredPeers :: NetworkConfig -> Set Peer #
Access preconfigured peers from network configuration