hasufell / hpath Goto Github PK
View Code? Open in Web Editor NEWTyped filepath in haskell
License: Other
Typed filepath in haskell
License: Other
In hpath-filepath/README.md
we can read There is also a similar library filepath-bytestring, but it doesn't follow an open development model and is cross-platform, which this library is not interested in.
What do you mean by "doesn't follow an open development model"? It seems to be open-source.
Yes, we want that now, but IMO this will depend on a sane AFPP implementation, which has been discussed https://discourse.haskell.org/t/reviving-the-abstract-filepath-proposal-afpp-in-user-space/2344
CLC approval is pending, WIP implementation is at https://github.com/hasufell/abstract-filepath
We probably need to use type families to resolve this.
not sure why this is not the case
According to the documentation of parseRel:
Note that filepath may contain any number of ./ but may not consist solely of ./.
but apparently isJust $ parseRel "./"
evaluates to True
. Am I missing something?
So we don't need to import unix-bytestring
.
Do we want to force trailing path separators off?
If not, how can we make sure that all functions make sense (e.g. basename
or maybe something like takeFileName
)?
Also see hasufell/tar-bytestring#1
Which is non-portable (e.g. on JFS).
https://hackage.haskell.org/package/word8-0.1.3/docs/Data-Word8.html#v:_period
If so, need to document at least, otherwise our splitExtension
functions etc will misbehave.
nope. in fact this is only true for some relatively small set of a
values.
https://hackage.haskell.org/package/filepath-bytestring could substitute our posix-paths fork
Not sure if this writes in chunks.
Instead of this https://github.com/hasufell/hpath/blob/master/src/HPath.hs#L129
For reasoning, see http://www.langsec.org/
could be achieved with https://hackage.haskell.org/package/btrfs
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.