pythia-0.1: A utility program for retrieving system information.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pythia.Services.NetInterface.Ip

Contents

Description

This module provides functionality for retrieving network connection information using ip utility.

Since: 0.1

Synopsis

Query

supported :: MonadPathReader m => m Bool Source #

Returns a boolean determining if this program is supported on the current system.

Since: 0.1

Misc

newtype IpParseError Source #

Error parsing ip output.

Examples

Expand
>>> displayException $ MkIpParseError "parse error"
"Ip parse error: parse error"

Since: 0.1

Constructors

MkIpParseError Text 

parseInterfaces :: Text -> Either IpParseError NetInterfaces Source #

Attempts to parse the output of IP.

Since: 0.1