Skip to content

Commit

Permalink
Support newer filepath/os-string
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Dec 11, 2023
1 parent 0ec8335 commit 3177b42
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for file-io

## 0.1.0.2 -- 2023-12-11

* support `os-string` package and newer `filepath`

## 0.1.0.1 -- YYYY-mm-dd

* Don't use creat flag when only reading files
Expand Down
13 changes: 11 additions & 2 deletions file-io.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: file-io
version: 0.1.0.1
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
Expand All @@ -17,6 +17,11 @@ 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

Expand All @@ -32,7 +37,11 @@ library
build-depends:
, base >=4.10 && <5
, bytestring >=0.11.3.0
, filepath >=1.4.100.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
Expand Down

0 comments on commit 3177b42

Please sign in to comment.