system-info-0.1.0.2: Get information about CPUs, memory, etc.

Copyright2016 ChaosGroup
LicenseMIT
Maintainerdaniel.taskoff@chaosgroup.com
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe
LanguageHaskell2010

System.Information

Contents

Description

 

Synopsis

OS

data OS Source #

A datatype representing the different OSes

Currenty, only Linux and Windows OSes are recognised

Constructors

Linux 
Windows 
Other 

Instances

Eq OS Source # 

Methods

(==) :: OS -> OS -> Bool #

(/=) :: OS -> OS -> Bool #

Show OS Source # 

Methods

showsPrec :: Int -> OS -> ShowS #

show :: OS -> String #

showList :: [OS] -> ShowS #

os :: OS Source #

Get the current OS

CPU

data CPUName Source #

A wrapper for a CPU's name

cpuNames :: IO CPUNames Source #

Get the names of the available CPUs

numCPUs :: IO Int Source #

Get the number of available CPUs

type Count = Int Source #

Number of CPUs having the same name

type CPUs = [CPU] Source #

cpus :: IO CPUs Source #

Get the names and counts of the available CPUs

showCPUs :: CPUs -> String Source #

Pretty show CPUs