-- Initial system-linux-proc.cabal generated by cabal init.  For further
-- documentation, see http://haskell.org/cabal/users-guide/

name:                system-linux-proc
version:             0.1.1
synopsis:            A library for accessing the /proc filesystem in Linux
-- description:
homepage:            https://github.com/erikd/system-linux-proc
license:             BSD3
license-file:        LICENSE
author:              Erik de Castro Lopo
maintainer:          erikd@mega-nerd.com
copyright:           Copyright (c) 2017 Erik de Castro Lopo
category:            System
build-type:          Simple
extra-source-files:  ChangeLog.md
stability:           provisional
cabal-version:       >=1.10

library
  default-language:   Haskell2010
  ghc-options:        -Wall -fwarn-tabs
  hs-source-dirs:    .

  exposed-modules:     System.Linux.Proc
                     , System.Linux.Proc.Errors
                     , System.Linux.Proc.IO
                     , System.Linux.Proc.MemInfo
                     , System.Linux.Proc.Process
                     , System.Linux.Proc.Tcp

  build-depends:       base                          >= 4.8         && < 5.0
                     , attoparsec                    >= 0.12        && < 0.14
                     , bytestring                    == 0.10.*
                     , containers                    == 0.5.*
                     , directory                     >= 1.2         && < 1.4
                     , errors                        == 2.3.*
                     , text                          == 1.2.*

test-suite test
  default-language:   Haskell2010
  ghc-options:        -Wall -fwarn-tabs -threaded -O2
  type:               exitcode-stdio-1.0

  hs-source-dirs:     test
  main-is:            test-io.hs

  other-modules:      Test.System.Linux.Proc
                      Test.System.Linux.Proc.Hedgehog

  build-depends:       base                          >= 4.8         && < 5.0
                     , directory                     == 1.3.*
                     , hedgehog                      == 1.0.*
                     , pretty-show                   == 1.10.*
                     , system-linux-proc