Skip to content

Commit

Permalink
Support filepath >= 1.5.0.0 and os-string, fixes #164
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell authored and Rufflewind committed Dec 6, 2023
1 parent e6ec698 commit 27e41d9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions directory.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ source-repository head
type: git
location: https://github.com/haskell/directory

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

Library
default-language: Haskell2010
other-extensions: CApiFFI, CPP
Expand All @@ -54,13 +59,17 @@ Library

build-depends:
base >= 4.11.0 && < 4.20,
time >= 1.8.0 && < 1.13,
filepath >= 1.4.100 && < 1.5
time >= 1.8.0 && < 1.13
if os(windows)
build-depends: Win32 >= 2.13.3 && < 2.14
else
build-depends: unix >= 2.8.0 && < 2.9

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.4.200.0

ghc-options: -Wall

test-suite test
Expand Down

0 comments on commit 27e41d9

Please sign in to comment.