packages feed

sysinfo-0.1.1: sysinfo.cabal

name:                sysinfo
version:             0.1.1
synopsis:            Haskell Interface for getting overall system statistics
description:         This package can be used to get system statistics like
                     uptime, free memory, system load etc. Note that
                     the package works *only* on Linux system with
                     kernel version >= 2.3.23 and uses FFI calls.
homepage:            https://github.com/psibi/sysinfo#readme
license:             BSD3
license-file:        LICENSE
author:              Sibi Prabakaran
maintainer:          sibi@psibi.in
copyright:           Copyright: (c) 2017 Sibi
category:            FFI, Linux, System
build-type:          Simple
extra-source-files:  README.md, CHANGELOG.md
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  exposed-modules:     System.SysInfo
  build-depends:       base >= 4.7 && < 5
  default-language:    Haskell2010
  if !os(linux)
    cpp-options: -DNO_SYSINFO

test-suite sysinfo-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , sysinfo
                     , hspec
                     , hspec-expectations
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/psibi/sysinfo