Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Pythia.Services.Memory.Free
Description
This module provides functionality for retrieving memory usage using Free.
Since: 0.1
Synopsis
- memoryShellApp :: (MonadPathReader m, MonadThrow m, MonadTypedProcess m) => m SystemMemory
- supported :: MonadPathReader m => m Bool
- newtype FreeParseError = MkFreeParseError Text
- parseMemory :: Text -> Either FreeParseError SystemMemory
Query
memoryShellApp :: (MonadPathReader m, MonadThrow m, MonadTypedProcess m) => m SystemMemory Source #
Free query for Memory
.
Since: 0.1
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
>>>
displayException $ MkFreeParseError "parse error"
"Could not parse memory from: parse error"
Since: 0.1
Constructors
MkFreeParseError Text |
Instances
Exception FreeParseError Source # | Since: 0.1 |
Defined in Pythia.Services.Memory.Free Methods toException :: FreeParseError -> SomeException # | |
Show FreeParseError Source # | Since: 0.1 |
Defined in Pythia.Services.Memory.Free Methods showsPrec :: Int -> FreeParseError -> ShowS # show :: FreeParseError -> String # showList :: [FreeParseError] -> ShowS # | |
Eq FreeParseError Source # | Since: 0.1 |
Defined in Pythia.Services.Memory.Free Methods (==) :: FreeParseError -> FreeParseError -> Bool # (/=) :: FreeParseError -> FreeParseError -> Bool # |
parseMemory :: Text -> Either FreeParseError SystemMemory Source #
Attempts to parse the output of free.
Since: 0.1