packages feed

file-io-0.1.0.2: file-io.cabal

cabal-version:      2.4
name:               file-io
version:            0.1.0.2
synopsis:           Basic file IO operations via 'OsPath'
description:        Basic file IO operations like Prelude, but for 'OsPath'.
homepage:           https://github.com/hasufell/file-io
bug-reports:        https://github.com/hasufell/file-io/issues
license:            BSD-3-Clause
author:             Julian Ospald
maintainer:         hasufell@posteo.de
copyright:          Julian Ospald 2022
category:           System
extra-source-files:
  CHANGELOG.md

source-repository head
  type:     git
  location: https://github.com/hasufell/file-io.git

flag os-string
  description: Use the new os-string package
  default: False
  manual: False

library
  default-language: Haskell2010

  if os(windows)
    hs-source-dirs: windows
    build-depends: Win32 >=2.13.3.0

  else
    hs-source-dirs: posix
    build-depends: unix >=2.8.0.0

  hs-source-dirs: .
  build-depends:
    , base        >=4.10      && <5
    , bytestring  >=0.11.3.0

  if flag(os-string)
    build-depends: filepath >= 1.5.0.0, os-string >= 2.0.0
  else
    build-depends: filepath >= 1.4.100.0 && < 1.5.0.0

  exposed-modules:
    System.File.OsPath
    System.File.PlatformPath

  other-modules: System.File.Platform

  ghc-options:      -Wall