Copyright | (c) 2017 Michael Walker |
---|---|
License | MIT |
Maintainer | Michael Walker <[email protected]> |
Stability | experimental |
Portability | CPP |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Network.IRC.Client.Lens
Synopsis
- connectionConfig :: Getter (IRCState s) (ConnectionConfig s)
- userState :: Lens' (IRCState s) (TVar s)
- instanceConfig :: Lens' (IRCState s) (TVar (InstanceConfig s))
- connectionState :: Lens' (IRCState s) (TVar ConnectionState)
- server :: Getter (ConnectionConfig s) ByteString
- port :: Getter (ConnectionConfig s) Int
- username :: Lens' (ConnectionConfig s) Text
- realname :: Lens' (ConnectionConfig s) Text
- password :: Lens' (ConnectionConfig s) (Maybe Text)
- flood :: Lens' (ConnectionConfig s) NominalDiffTime
- timeout :: Lens' (ConnectionConfig s) NominalDiffTime
- onconnect :: Lens' (ConnectionConfig s) (IRC s ())
- ondisconnect :: Lens' (ConnectionConfig s) (Maybe SomeException -> IRC s ())
- logfunc :: Lens' (ConnectionConfig s) (Origin -> ByteString -> IO ())
- nick :: Lens' (InstanceConfig s) Text
- channels :: Lens' (InstanceConfig s) [Text]
- version :: Lens' (InstanceConfig s) Text
- handlers :: Lens' (InstanceConfig s) [EventHandler s]
- ignore :: Lens' (InstanceConfig s) [(Text, Maybe Text)]
- _Connected :: Prism' ConnectionState ()
- _Disconnecting :: Prism' ConnectionState ()
- _Disconnected :: Prism' ConnectionState ()
- _FromServer :: Prism' Origin ()
- _FromClient :: Prism' Origin ()
Lenses for IRCState
connectionConfig :: Getter (IRCState s) (ConnectionConfig s) Source #
Getter
for _connectionConfig
.
instanceConfig :: Lens' (IRCState s) (TVar (InstanceConfig s)) Source #
Lens
for _instanceConfig
.
connectionState :: Lens' (IRCState s) (TVar ConnectionState) Source #
Lens
for _connectionState
.
Lenses for ConnectionConfig
server :: Getter (ConnectionConfig s) ByteString Source #
flood :: Lens' (ConnectionConfig s) NominalDiffTime Source #
onconnect :: Lens' (ConnectionConfig s) (IRC s ()) Source #
Lens
for _onconnect
.
ondisconnect :: Lens' (ConnectionConfig s) (Maybe SomeException -> IRC s ()) Source #
Lens
for _ondisconnect
.
logfunc :: Lens' (ConnectionConfig s) (Origin -> ByteString -> IO ()) Source #
Lenses for InstanceConfig
handlers :: Lens' (InstanceConfig s) [EventHandler s] Source #
Prisms for ConnectionState
_Connected :: Prism' ConnectionState () Source #
_Disconnecting :: Prism' ConnectionState () Source #
Prism
for Disconnecting
.
_Disconnected :: Prism' ConnectionState () Source #
Prism
for Disconnected
.
Prisms for Origin
_FromServer :: Prism' Origin () Source #
Prism
for FromServer
.
_FromClient :: Prism' Origin () Source #
Prism
for FromClient
.