system-info-0.1.0.12: 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 different OSes

Instances

Show OS Source # 

Methods

showsPrec :: Int -> OS -> ShowS #

show :: OS -> String #

showList :: [OS] -> ShowS #

getOS :: IO (Maybe OS) Source #

Get the current OS' name

CPU

data CPUName Source #

A wrapper for a CPU's name

cpuNames :: IO CPUNames Source #

Get the names of the available CPUs

numLogicalCores :: IO LogicalCores Source #

Get the number of logical CPU cores

data LogicalCores Source #

Number of logical cores

type CPUs = [CPU] Source #

cpus :: IO CPUs Source #

Get the names and number of logical cores of the available CPUs

showCPUs :: CPUs -> String Source #

Pretty show CPUs