packages feed

file-uri-0.1.0.0: file-uri.cabal

cabal-version:      2.2
name:               file-uri
version:            0.1.0.0
synopsis: File URI parsing
description: Parses file:///foo/bar URIs based on RFC 8089, including windows filepaths.
license:            BSD-3-Clause
license-file:       LICENSE
author:             Julian Ospald
maintainer:         hasufell@posteo.de
copyright:          Julian Ospald 2024
category:           System
build-type:         Simple
extra-doc-files:    CHANGELOG.md
                    README.md
-- extra-source-files:
--
source-repository head
  type:     git
  location: https://github.com/haskell/ghcup-hs.git

common warnings
    ghc-options: -Wall

library
    import:           warnings
    exposed-modules:  System.URI.File
                      System.URI.File.Internal
    -- other-modules:
    -- other-extensions:
    build-depends:    base >=4.12.0.0 && <4.20
                    , bytestring >=0.9.1
                    , attoparsec >=0.13.1.0
    hs-source-dirs:   lib
    default-language: Haskell2010

test-suite file-uri-test
    import:           warnings
    default-language: Haskell2010
    -- other-modules:
    -- other-extensions:
    type:             exitcode-stdio-1.0
    hs-source-dirs:   test
    main-is:          Main.hs
    build-depends:
          base
        , bytestring
        , file-uri
        , tasty
        , tasty-hunit

benchmark file-uri-benchmark
    import:           warnings
    default-language: Haskell2010
    -- other-modules:
    -- other-extensions:
    type:             exitcode-stdio-1.0
    hs-source-dirs:   bench
    ghc-options:      -O2 "-with-rtsopts=-A32m"
    if impl(ghc >= 8.6)
    ghc-options:    -fproc-alignment=64
    main-is:          Bench.hs
    build-depends:
          base
        , file-uri
        , tasty-bench