setenv-0.1.1: setenv.cabal
name: setenv
version: 0.1.1
license: MIT
license-file: LICENSE
copyright: (c) 2012, 2013 Simon Hengel
author: Simon Hengel <sol@typeful.net>
maintainer: Simon Hengel <sol@typeful.net>
category: System
synopsis: A cross-platform library for setting environment variables
description: A cross-platform library for setting environment variables
build-type: Simple
cabal-version: >= 1.8
source-repository head
type: git
location: https://github.com/sol/setenv
library
ghc-options:
-Wall
hs-source-dirs:
src
exposed-modules:
System.SetEnv
build-depends:
base == 4.*
if !os(windows)
build-depends: unix
test-suite spec
type:
exitcode-stdio-1.0
ghc-options:
-Wall -Werror
hs-source-dirs:
test
main-is:
-- NOTE: We can not use Spec.hs here, because hspec depends on setenv.
-- So we can not depend on our inplace version of setenv here. Just
-- including src in hs-source-dirs does also not work, because this would
-- require a condition for unix in the test-suite section, and older
-- version of cabal-install failed if any package in the dependency chain
-- uses a condition in a test-suite section.
run.lhs
build-depends:
base
, process