diff --git a/CHANGELOG b/CHANGELOG index 249fe60..47f813d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,11 @@ +0.7.0: + * use 'sendfile' from 'simple-sendfile' in _copyFile and do read/write as a fallback only + * add isFileName, hasParentDir, hiddenFile to System.Posix.FilePath + * add our own openFd version for more control + * small documentation improvements + * add a getDirectoryContents' version that works on Fd + * lift version constraints in benchmark + * remove fpToString and userStringToFP, use Data.ByteString.UTF8 directly instead 0.6.0: * fixes 'throwDestinationInSource' to be more reliable. * removes some unused HPathIOException constructors diff --git a/hpath.cabal b/hpath.cabal index 2084bb3..38b6104 100644 --- a/hpath.cabal +++ b/hpath.cabal @@ -1,5 +1,5 @@ name: hpath -version: 0.6.0 +version: 0.7.0 synopsis: Support for well-typed paths description: Support for well-typed paths, utilizing ByteString under the hood. license: GPL-2 diff --git a/src/System/Posix/Directory/Traversals.hs b/src/System/Posix/Directory/Traversals.hs index c72faff..a36717d 100644 --- a/src/System/Posix/Directory/Traversals.hs +++ b/src/System/Posix/Directory/Traversals.hs @@ -1,3 +1,14 @@ +-- Module : System.Posix.Directory.Traversals +-- Copyright : © 2016 Julian Ospald +-- License : BSD3 +-- +-- Maintainer : Julian Ospald +-- Stability : experimental +-- Portability : portable +-- +-- Traversal and read operations on directories. + + {-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PackageImports #-} @@ -5,6 +16,8 @@ {-# LANGUAGE ViewPatterns #-} {-# OPTIONS_GHC -Wall #-} + + module System.Posix.Directory.Traversals ( getDirectoryContents diff --git a/src/System/Posix/FD.hs b/src/System/Posix/FD.hs index b4b4659..4ad47e9 100644 --- a/src/System/Posix/FD.hs +++ b/src/System/Posix/FD.hs @@ -1,12 +1,23 @@ +-- Module : System.Posix.FD +-- Copyright : © 2016 Julian Ospald +-- License : BSD3 +-- +-- Maintainer : Julian Ospald +-- Stability : experimental +-- Portability : portable +-- +-- Provides an alternative for `System.Posix.IO.ByteString.openFd` +-- which gives us more control on what status flags to pass to the +-- low-level @open(2)@ call, in contrast to the unix package. + + {-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TupleSections #-} {-# OPTIONS_GHC -Wall #-} --- |Provides an alternative for `System.Posix.IO.ByteString.openFd` --- which gives us more control on what status flags to pass to the --- low-level @open(2)@ call, in contrast to the unix package. + module System.Posix.FD ( openFd ) where diff --git a/src/System/Posix/FilePath.hs b/src/System/Posix/FilePath.hs index 6b936c0..e89a6be 100644 --- a/src/System/Posix/FilePath.hs +++ b/src/System/Posix/FilePath.hs @@ -1,10 +1,21 @@ +-- Module : System.Posix.FilePath +-- Copyright : © 2016 Julian Ospald +-- License : BSD3 +-- +-- Maintainer : Julian Ospald +-- Stability : experimental +-- Portability : portable +-- +-- The equivalent of "System.FilePath" on raw (byte string) file paths. +-- +-- Not all functions of "System.FilePath" are implemented yet. Feel free to contribute! + + {-# LANGUAGE TupleSections #-} {-# OPTIONS_GHC -Wall #-} --- | The equivalent of "System.FilePath" on raw (byte string) file paths. --- --- Not all functions of "System.FilePath" are implemented yet. Feel free to contribute! + module System.Posix.FilePath ( -- * Separators