4 Commits
0.9.0 ... 0.9.1

Author SHA1 Message Date
9342abeb7a Release 0.9.1 2018-04-11 23:03:35 +02:00
e8cbc632c9 Fix build with ghc-7.8 2018-04-11 22:36:40 +02:00
c556a3d3e4 Fix build with ghc-7.10 2018-04-11 22:22:03 +02:00
3aee719130 Make "unbuildable on windows" explicit 2018-04-11 12:31:11 +02:00
3 changed files with 17 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
0.9.1
* fix build with ghc-7.8 and 7.10
0.9.0
* don't force "Path Abs" anymore in IO module, abstract more over Path types
* add 'toAbs'

View File

@@ -1,5 +1,5 @@
name: hpath
version: 0.9.0
version: 0.9.1
synopsis: Support for well-typed paths
description: Support for well-typed paths, utilizing ByteString under the hood.
license: BSD3
@@ -17,6 +17,9 @@ extra-source-files: README.md
doctests-posix.hs
library
if os(windows)
build-depends: unbuildable<0
buildable: False
hs-source-dirs: src/
default-language: Haskell2010
if impl(ghc >= 8.0)
@@ -46,6 +49,9 @@ library
test-suite doctests-hpath
if os(windows)
build-depends: unbuildable<0
buildable: False
default-language: Haskell2010
type: exitcode-stdio-1.0
ghc-options: -threaded
@@ -57,6 +63,9 @@ test-suite doctests-hpath
, hpath
test-suite doctests-posix
if os(windows)
build-depends: unbuildable<0
buildable: False
default-language: Haskell2010
type: exitcode-stdio-1.0
ghc-options: -threaded
@@ -70,6 +79,9 @@ test-suite doctests-posix
QuickCheck
test-suite spec
if os(windows)
build-depends: unbuildable<0
buildable: False
Type: exitcode-stdio-1.0
Default-Language: Haskell2010
Hs-Source-Dirs: test

View File

@@ -136,6 +136,7 @@ import Data.Maybe
import Data.Monoid
(
(<>)
, mempty
)
import Data.Word
(
@@ -933,7 +934,7 @@ readFileEOF (MkPath fp) =
else do
readBS <- unsafePackCStringFinalizer buf
(fromIntegral size)
mempty
(return ())
read' fd buf (builder <> byteString readBS)