packages feed

file-io-0.1.4: file-io.cabal

cabal-version:      2.4
name:               file-io
version:            0.1.4
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
tested-with:    GHC==9.8.1,
                GHC==9.4.8,
                GHC==9.2.8,
                GHC==9.0.2,
                GHC==8.10.7,
                GHC==8.8.4

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.13.0.0 && <5
    , bytestring  >=0.11.3.0
    , deepseq

  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.OsPath.Internal
    System.File.PlatformPath
    System.File.PlatformPath.Internal

  other-modules: System.File.Platform

  ghc-options:      -Wall

test-suite T15
    hs-source-dirs: tests
    main-is: T15.hs
    type: exitcode-stdio-1.0
    default-language: Haskell2010
    build-depends: base >=4.13.0.0 && <5, tasty, tasty-hunit, file-io, filepath, temporary
    ghc-options: -Wall -threaded -rtsopts "-with-rtsopts=-N10"
    if os(windows)
      build-depends: Win32 >=2.13.3.0

test-suite T15Win
    hs-source-dirs: tests
    main-is: T15Win.hs
    type: exitcode-stdio-1.0
    default-language: Haskell2010
    if os(windows)
      build-depends: base >=4.13.0.0 && <5, tasty, tasty-hunit, file-io, filepath, temporary, Win32 >=2.13.3.0
    else
      build-depends: base >=4.13.0.0 && <5
    ghc-options: -Wall -threaded -rtsopts "-with-rtsopts=-N10"

test-suite T14
    hs-source-dirs: tests
    main-is: T14.hs
    type: exitcode-stdio-1.0
    default-language: Haskell2010
    build-depends: base >=4.13.0.0 && <5, file-io, filepath, temporary
    ghc-options: -Wall

test-suite T8
    hs-source-dirs: tests
    main-is: T8.hs
    type: exitcode-stdio-1.0
    default-language: Haskell2010
    build-depends: base >=4.13.0.0 && <5, bytestring, file-io, filepath, temporary
    ghc-options: -Wall -threaded

test-suite CLC237
    hs-source-dirs: tests
    main-is: CLC237.hs
    type: exitcode-stdio-1.0
    default-language: Haskell2010
    build-depends: base >=4.13.0.0 && <5, file-io, filepath, temporary
    ghc-options: -Wall

test-suite Properties
    hs-source-dirs: tests
    main-is: Properties.hs
    type: exitcode-stdio-1.0
    default-language: Haskell2010
    build-depends: base >=4.13.0.0 && <5, bytestring, tasty, tasty-hunit, file-io, filepath, temporary
    ghc-options: -Wall -threaded -rtsopts "-with-rtsopts=-N10"