packages feed

system-fileio-0.3.7: system-fileio.cabal

name: system-fileio
version: 0.3.7
license: MIT
license-file: license.txt
author: John Millikin <jmillikin@gmail.com>
maintainer: John Millikin <jmillikin@gmail.com>
build-type: Simple
cabal-version: >= 1.6
category: System
stability: experimental
homepage: https://john-millikin.com/software/haskell-filesystem/
bug-reports: mailto:jmillikin@gmail.com

synopsis: Consistent filesystem interaction across GHC versions
description:
  This is a small wrapper around the \"directory\", \"unix\", and \"Win32\"
  packages, for use with \"system-filepath\". It provides a consistent API
  to the various versions of these packages distributed with different
  versions of GHC.
  .
  In particular, this library supports working with POSIX files that have
  paths which can't be decoded in the current locale encoding.

extra-source-files:
  lib/hssystemfileio-unix.h
  lib/hssystemfileio-win32.h
  --
  scripts/common.bash
  scripts/run-coverage
  scripts/run-tests
  --
  tests/system-fileio-tests.cabal
  tests/FilesystemTests.hs
  tests/FilesystemTests/Posix.hs
  tests/FilesystemTests/Util.hs
  tests/FilesystemTests/Windows.hs

source-repository head
  type: bazaar
  location: https://john-millikin.com/branches/system-fileio/0.3/

source-repository this
  type: bazaar
  location: https://john-millikin.com/branches/system-fileio/0.3/
  tag: system-fileio_0.3.7

library
  ghc-options: -Wall -O2
  hs-source-dirs: lib

  build-depends:
      base >= 4.0 && < 5.0
    , bytestring >= 0.9 && < 0.10
    , system-filepath >= 0.3.1 && < 0.5
    , text >= 0.7.1 && < 0.12
    , time >= 1.0 && < 1.5

  if os(windows)
    cpp-options: -DCABAL_OS_WINDOWS
    build-depends:
        Win32 >= 2.2 && < 2.3
      , directory >= 1.0 && < 1.2
    c-sources: lib/hssystemfileio-win32.c
  else
    build-depends:
        unix >= 2.3 && < 2.6
    c-sources: lib/hssystemfileio-unix.c

  exposed-modules:
    Filesystem