Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9342abeb7a | |||
| e8cbc632c9 | |||
| c556a3d3e4 | |||
| 3aee719130 |
@@ -1,3 +1,5 @@
|
|||||||
|
0.9.1
|
||||||
|
* fix build with ghc-7.8 and 7.10
|
||||||
0.9.0
|
0.9.0
|
||||||
* don't force "Path Abs" anymore in IO module, abstract more over Path types
|
* don't force "Path Abs" anymore in IO module, abstract more over Path types
|
||||||
* add 'toAbs'
|
* add 'toAbs'
|
||||||
|
|||||||
14
hpath.cabal
14
hpath.cabal
@@ -1,5 +1,5 @@
|
|||||||
name: hpath
|
name: hpath
|
||||||
version: 0.9.0
|
version: 0.9.1
|
||||||
synopsis: Support for well-typed paths
|
synopsis: Support for well-typed paths
|
||||||
description: Support for well-typed paths, utilizing ByteString under the hood.
|
description: Support for well-typed paths, utilizing ByteString under the hood.
|
||||||
license: BSD3
|
license: BSD3
|
||||||
@@ -17,6 +17,9 @@ extra-source-files: README.md
|
|||||||
doctests-posix.hs
|
doctests-posix.hs
|
||||||
|
|
||||||
library
|
library
|
||||||
|
if os(windows)
|
||||||
|
build-depends: unbuildable<0
|
||||||
|
buildable: False
|
||||||
hs-source-dirs: src/
|
hs-source-dirs: src/
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
if impl(ghc >= 8.0)
|
if impl(ghc >= 8.0)
|
||||||
@@ -46,6 +49,9 @@ library
|
|||||||
|
|
||||||
|
|
||||||
test-suite doctests-hpath
|
test-suite doctests-hpath
|
||||||
|
if os(windows)
|
||||||
|
build-depends: unbuildable<0
|
||||||
|
buildable: False
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
ghc-options: -threaded
|
ghc-options: -threaded
|
||||||
@@ -57,6 +63,9 @@ test-suite doctests-hpath
|
|||||||
, hpath
|
, hpath
|
||||||
|
|
||||||
test-suite doctests-posix
|
test-suite doctests-posix
|
||||||
|
if os(windows)
|
||||||
|
build-depends: unbuildable<0
|
||||||
|
buildable: False
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
ghc-options: -threaded
|
ghc-options: -threaded
|
||||||
@@ -70,6 +79,9 @@ test-suite doctests-posix
|
|||||||
QuickCheck
|
QuickCheck
|
||||||
|
|
||||||
test-suite spec
|
test-suite spec
|
||||||
|
if os(windows)
|
||||||
|
build-depends: unbuildable<0
|
||||||
|
buildable: False
|
||||||
Type: exitcode-stdio-1.0
|
Type: exitcode-stdio-1.0
|
||||||
Default-Language: Haskell2010
|
Default-Language: Haskell2010
|
||||||
Hs-Source-Dirs: test
|
Hs-Source-Dirs: test
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ import Data.Maybe
|
|||||||
import Data.Monoid
|
import Data.Monoid
|
||||||
(
|
(
|
||||||
(<>)
|
(<>)
|
||||||
|
, mempty
|
||||||
)
|
)
|
||||||
import Data.Word
|
import Data.Word
|
||||||
(
|
(
|
||||||
@@ -933,7 +934,7 @@ readFileEOF (MkPath fp) =
|
|||||||
else do
|
else do
|
||||||
readBS <- unsafePackCStringFinalizer buf
|
readBS <- unsafePackCStringFinalizer buf
|
||||||
(fromIntegral size)
|
(fromIntegral size)
|
||||||
mempty
|
(return ())
|
||||||
read' fd buf (builder <> byteString readBS)
|
read' fd buf (builder <> byteString readBS)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user