packages feed

filepath-bytestring-1.4.2.1.2: filepath-bytestring.cabal

cabal-version:  >= 1.18
name:           filepath-bytestring
version:        1.4.2.1.2
-- NOTE: Don't forget to update CHANGELOG and the filepath version below
license:        BSD3
license-file:   LICENSE
author:         Neil Mitchell <ndmitchell@gmail.com>
maintainer:     Joey Hess <id@joeyh.name>
copyright:      Neil Mitchell 2005-2019
                Joey Hess 2019
category:       System
build-type:     Simple
synopsis:       Library for manipulating RawFilePaths in a cross platform way.
description:
    This package provides functionality for manipulating @RawFilePath@
    values. It can be used as a drop in replacement for the filepath library
    to get the benefits of using ByteStrings. It provides three modules:
    .
    * "System.FilePath.Posix.ByteString" manipulates POSIX\/Linux style @RawFilePath@ values (with @\/@ as the path separator).
    .
    * "System.FilePath.Windows.ByteString" manipulates Windows style @RawFilePath@ values (with either @\\@ or @\/@ as the path separator, and deals with drives).
    .
    * "System.FilePath.ByteString" is an alias for the module appropriate to your platform.
    .
    All three modules provide the same API, and the same documentation (calling out differences in the different variants).

extra-source-files:
    System/FilePath/Internal.hs
extra-doc-files:
    README.md
    CHANGELOG
    TODO

source-repository head
    type:     git
    location: git://git.joeyh.name/haskell-filepath-bytestring.git

library
    default-language: Haskell2010
    other-extensions:
        CPP
        PatternGuards
    if impl(GHC >= 7.2)
        other-extensions: Safe

    exposed-modules:
        System.FilePath.ByteString
        System.FilePath.Posix.ByteString
        System.FilePath.Windows.ByteString

    build-depends:
        base >= 4 && < 4.15,
        bytestring
    if os(Windows)
        build-depends: utf8-string
    else
        build-depends: unix

    ghc-options: -O2 -Wall -fno-warn-tabs

test-suite filepath-tests
    type: exitcode-stdio-1.0
    default-language: Haskell2010
    main-is: Test.hs
    ghc-options: -main-is Test -Wall -fno-warn-tabs
    hs-source-dirs: tests
    other-modules:
        TestEquiv
        TestGen
        TestUtil
    build-depends:
        filepath-bytestring,
        base,
        bytestring,
        QuickCheck >= 2.7 && < 2.14,
	-- filepath same version as this library, to test equivilance
        filepath == 1.4.2.1