Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions file-io.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ flag long-paths
default: True
manual: True

common filepath-dependency
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

library
import: filepath-dependency

default-language: Haskell2010

if os(windows)
Expand All @@ -51,11 +59,6 @@ library
, bytestring >=0.11.3.0 && <1
, deepseq >=1 && <2

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

if flag(long-paths)
cpp-options: -DLONG_PATHS

Expand All @@ -70,6 +73,7 @@ library
ghc-options: -Wall

test-suite T15
import: filepath-dependency
hs-source-dirs: tests
main-is: T15.hs
type: exitcode-stdio-1.0
Expand All @@ -80,6 +84,7 @@ test-suite T15
build-depends: Win32 >=2.13.3.0

test-suite T15Win
import: filepath-dependency
hs-source-dirs: tests
main-is: T15Win.hs
type: exitcode-stdio-1.0
Expand All @@ -91,6 +96,7 @@ test-suite T15Win
ghc-options: -Wall -threaded -rtsopts "-with-rtsopts=-N10"

test-suite T14
import: filepath-dependency
hs-source-dirs: tests
main-is: T14.hs
type: exitcode-stdio-1.0
Expand All @@ -99,6 +105,7 @@ test-suite T14
ghc-options: -Wall

test-suite T8
import: filepath-dependency
hs-source-dirs: tests
main-is: T8.hs
type: exitcode-stdio-1.0
Expand All @@ -107,6 +114,7 @@ test-suite T8
ghc-options: -Wall -threaded

test-suite CLC237
import: filepath-dependency
hs-source-dirs: tests
main-is: CLC237.hs
type: exitcode-stdio-1.0
Expand All @@ -115,6 +123,7 @@ test-suite CLC237
ghc-options: -Wall

test-suite Properties
import: filepath-dependency
hs-source-dirs: tests
main-is: Properties.hs
type: exitcode-stdio-1.0
Expand Down
Loading