Comments (2)
canonicalizePath
used to have unpredictable behavior on non-existent paths in versions of directory
older than 1.2.3.0. Since 1.2.3.0, it was fixed to return a sensible result for any path, even non-existent ones. Hence, your test should expect no errors at all, but only if directory
is 1.2.3.0 or newer. Otherwise, all bets are off.
Keep in mind that the version of directory
is not tied to that of GHC or base
. Consider checking for directory
's version rather than base
:
#if MIN_VERSION_directory(1, 2, 3)
Your Travis tests for GHC 7.8 pulled in directory-1.2.5.0, but for GHC 7.10 it was using directory-1.2.2.0.
from directory.
Thanks for the explanation, I will update the tests accordingly.
from directory.
Related Issues (20)
- Updating the CI and the cabal file HOT 2
- makeAbsolute ~ gives wrong path HOT 2
- Release for GHC 9.6.1 HOT 3
- TMPDIR environment variable not honoured on windows HOT 2
- Feature request: createLink HOT 1
- FR: a variant of getModificationTime that works on symlinks HOT 1
- Cabal file doesn't list install-includes HOT 3
- [Feature request] A way to copy a directory with metadata (and/or recursively) HOT 5
- directory bundled with GHC-9.6 is not safe (inferred) anymore. HOT 5
- Support filepath >= 1.5.0.0 and os-string
- Support Win32 2.14 HOT 5
- canonicalizePath regressed on Windows between directory-1.3.7.1 and directory-1.3.8.0 HOT 2
- Please revise `time` dependency to `< 1.15` HOT 1
- Support filepath 1.4.300.1 HOT 4
- Builds with allow-newer unnecessarily fail HOT 1
- on Windows, copyFile makes empty source and destination files when the source file is absent HOT 8
- FR: findExecutable "" should return Nothing, like on linux HOT 4
- `directory-1.3.8.3`: relax upper bound of dependency on `base` HOT 2
- Resolve TODO regarding AFPP support for openBinaryTempFile HOT 2
- Refactor remaining code to use *at APIs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directory.