MIT licensed by Daniel Taskoff
This version can be pinned in stack with:system-info-0.5.1@sha256:c0dc28771d94c4bf9689192416474d0f8c2b76b222dbaa14c55254e88272d6ac,1340

Module documentation for 0.5.1

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