packages feed

cautious-file-1.0: cautious-file.cabal

name:                cautious-file
version:             1.0
Cabal-Version:	     >= 1.6
synopsis:            Ways to write a file cautiously, to reduce the chances of problems such as data loss due to crashes or power failures
description:         On non-Windows systems, posix-specific functions are used to reduce the chance of data loss further
category:            System
license:             BSD3
license-file:        LICENSE
copyright:	     Copyright (C) Robin Green 2009, 2011
author:              Robin Green
maintainer:          Robin Green <greenrd@greenrd.org>
build-type:	     Custom
stability:	     experimental
bug-reports:	     mailto:greenrd@greenrd.org
tested-with:	     GHC == 7.0.2
extra-source-files:      Test.hs

source-repository head
  type:     darcs
  location: http://patch-tag.com/r/greenrd/cautious-file

Flag posix
    description: Use POSIX-specific features
    default: True

Library
  hs-source-dirs:       src
  build-Depends:	base >= 4, base < 5, directory == 1.1.*, filepath == 1.2.*, bytestring == 0.9.*
  if flag(posix) && !os(Windows)
    cpp-options: -D_POSIX
    build-Depends: unix
    exposed-modules:    System.Posix.ByteLevel, System.Posix.Fsync
  exposed-modules:      System.IO.Cautious
  ghc-options:          -Wall