MIT licensed by Daniel Taskoff
Maintained by [email protected]
This version can be pinned in stack with:system-info-0.5.2@sha256:b95f39e28cc98add56a8ef93a83c8233579e60da940482518269dec848c1f338,1354

Module documentation for 0.5.2

Depends on 1 package(full list with versions):



A small library for getting the name of the OS.

NOTE: the library used to give information about CPUs, as well. However, it wasn’t reliable enough. If you need such functionality, I’d recommend trying hlibcpuid.



  • replace the Show OS instance with the newtype’s field unOS

  • drop the functionality for getting the name and number of available CPUs
  • fix the problem with getting the name of the operating system multiple times

* fix the threading problems with getting the OS's name (on Windows)

* make os returning an IO OS, since it caused problems on Windows

* make os returning an OS instead of a String

* rename getOS to os and make it a pure function
* use wmi queries for getting OS' names on Windows
* use system calls for getting OS' names on Unixes

* remove trailing newlines from OS' names

* fix the library to build on Windows

* fallback to uname on non-Windows OSes, if the other tools fail

* use attoparsec instead of regexes for matching strings

* get OS name and cpu information on macOS
* build system-info with lts-9.11

* build system-info with lts-9.0

* provide a custom Show OS instance
* relax build-depends constraints

* get a more concrete OS name (e.g. Arch Linux and Windows 7 Professional
instead of just Linux and Windows)

Unreleased changes