os-release

/etc/os-release helpers https://github.com/yaccz/os-release

Latest on Hackage:0.2.2

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Jan Matějka
Maintained by <yac@blesmrt.net>
##########
os-release
##########

http://www.freedesktop.org/software/systemd/man/os-release.html

Usage
#####

.. code-block:: haskell

import System.OsRelease
main = readOs >>= print

.. code-block::

Right (fromList [(OsReleaseKey "ANSI_COLOR",OsReleaseValue "1;32"),(OsReleaseKey "BUG_REPORT_URL",OsReleaseValue "https://bugs.gentoo.org/"),(OsReleaseKey "HOME_URL",OsReleaseValue "http://www.gentoo.org/"),(OsReleaseKey "ID",OsReleaseValue "gentoo"),(OsReleaseKey "NAME",OsReleaseValue "Gentoo"),(OsReleaseKey "PRETTY_NAME",OsReleaseValue "Gentoo/Linux"),(OsReleaseKey "SUPPORT_URL",OsReleaseValue "http://www.gentoo.org/main/en/support.xml")])

Changes

0.2.2
=====

- Fixes builds failing just due to -Werror

- README.rst and ChangeLog.rst are distributed with cabal package

0.2.1
=====

- Initial release
Used by 1 package:
comments powered byDisqus