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

Pythia.Services.Memory.Free

Contents

Description

This module provides functionality for retrieving memory usage using Free.

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 FreeParseError Source #

Errors that can occur with acpi.

Examples

Expand
>>> displayException $ MkFreeParseError "parse error"
"Could not parse memory from: parse error"

Since: 0.1

Constructors

MkFreeParseError Text 

parseMemory :: Text -> Either FreeParseError SystemMemory Source #

Attempts to parse the output of free.

Since: 0.1