Skip to content

Commit 6f45498

Browse files
committed
Migrate to filepath-1.4.99.5
1 parent 7bcff59 commit 6f45498

38 files changed

Lines changed: 402 additions & 387 deletions

cabal.project

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@ packages: ./hpath
22
./hpath-directory
33
./hpath-posix
44
./streamly-posix
5-
../../tmp/file-io
6-
https://hackage.haskell.org/package/filepath-2.0.0.0/candidate/filepath-2.0.0.0.tar.gz
5+
https://hackage.haskell.org/package/filepath-1.4.99.5/candidate/filepath-1.4.99.5.tar.gz
76

87
source-repository-package
98
type: git
109
location: https://github.com/hasufell/unix.git
11-
tag: 4d7bce9d85f077908f699532673e12ae66b178b0
10+
tag: f3b8ff89e1166df51ae02ce405fc1b3efe3c590f
1211

1312
source-repository-package
1413
type: git
1514
location: https://github.com/hasufell/Win32.git
16-
tag: a2ab9bc501614c48c62f9508488e87f0c2924b7b
15+
tag: 766234a476e9f7b88c72fe13b51e0012f95837e9
1716

18-
-- source-repository-package
19-
-- type: git
20-
-- location: https://github.com/hasufell/file-io.git
21-
-- tag: 6bea7270a224c3357f0866b5e9e3aa91fa39e431
17+
source-repository-package
18+
type: git
19+
location: https://github.com/hasufell/file-io.git
20+
tag: fbf71938823f98610c4d7f8e647bb4d26c5d0c20
2221

2322
package hpath-io
2423
ghc-options: -O2 -fspec-constr-recursive=16 -fmax-worker-args=16
@@ -27,4 +26,4 @@ package hpath-io
2726
package streamly
2827
ghc-options: -O2 -fspec-constr-recursive=16 -fmax-worker-args=16
2928

30-
allow-newer: filepath, Win32
29+
allow-newer: filepath, Win32, unix

hpath-directory/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ PACKAGE_STRING='Haskell directory package 1.0'
585585
PACKAGE_BUGREPORT='libraries@haskell.org'
586586
PACKAGE_URL=''
587587

588-
ac_unique_file="src/System/Directory/AbstractFilePath.hs"
588+
ac_unique_file="src/System/Directory/OsPath.hs"
589589
# Factoring default headers for most tests.
590590
ac_includes_default="\
591591
#include <stdio.h>

hpath-directory/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AC_INIT([Haskell directory package], [1.0], [libraries@haskell.org], [directory])
22

33
# Safety check: Ensure that we are in the correct source directory.
4-
AC_CONFIG_SRCDIR([src/System/Directory/AbstractFilePath.hs])
4+
AC_CONFIG_SRCDIR([src/System/Directory/OsPath.hs])
55

66
AC_CONFIG_HEADERS([src/HsDirectoryConfig.h])
77

hpath-directory/hpath-directory.cabal

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cabal-version: >=1.10
22
name: hpath-directory
33
version: 0.15.2.2
44
synopsis:
5-
Alternative to 'directory' package with AbstractFilePath based filepaths
5+
Alternative to 'directory' package with OsPath based filepaths
66

77
description:
88
This provides a safer alternative to the 'directory'
@@ -28,7 +28,7 @@ extra-tmp-files:
2828

2929
extra-source-files:
3030
./src/HsDirectoryConfig.h.in
31-
./src/System/Win32/WindowsFilePath/*.h
31+
./src/System/Win32/WindowsPath/*.h
3232
CHANGELOG.md
3333

3434
tested-with:
@@ -37,16 +37,16 @@ tested-with:
3737
library
3838
if os(windows)
3939
cpp-options: -DWINDOWS
40-
exposed-modules: System.Win32.WindowsFilePath.Directory
40+
exposed-modules: System.Win32.WindowsPath.Directory
4141
build-depends:
4242
Win32
4343

4444
include-dirs: src
4545

4646
else
4747
exposed-modules:
48-
System.Posix.PosixFilePath.Directory
49-
System.Posix.PosixFilePath.Directory.Errors
48+
System.Posix.PosixPath.Directory
49+
System.Posix.PosixPath.Directory.Errors
5050

5151
build-depends:
5252
hpath-posix >=0.14.0
@@ -55,7 +55,7 @@ library
5555
, unix-bytestring >=0.3
5656

5757
exposed-modules:
58-
System.Directory.AbstractFilePath
58+
System.Directory.OsPath
5959
System.Directory.HPath
6060
System.Directory.Errors
6161
System.Directory.Types
@@ -66,7 +66,7 @@ library
6666
base >=4.8 && <5
6767
, bytestring >=0.10
6868
, exceptions >=0.10
69-
, filepath >=2.0.0.0
69+
, filepath >=1.4.99.5
7070
, file-io
7171
, IfElse
7272
, hpath
@@ -138,7 +138,7 @@ test-suite spec
138138
, unix-bytestring
139139

140140
build-depends:
141-
filepath >=2.0.0.0
141+
filepath >=1.4.99.5
142142
, base
143143
, bytestring >=0.10.0.0
144144
, hpath-directory

hpath-directory/src/System/Directory/HPath.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ module System.Directory.HPath
8181
)
8282
where
8383

84-
import System.Directory.AbstractFilePath (Permissions)
85-
import qualified System.Directory.AbstractFilePath as AFP
86-
import System.File.AbstractFilePath
84+
import System.Directory.OsPath (Permissions)
85+
import qualified System.Directory.OsPath as AFP
86+
import System.File.OsPath
8787
import Prelude hiding ( appendFile
8888
, readFile
8989
, writeFile

0 commit comments

Comments
 (0)