diff --git a/.gitignore b/.gitignore index fc6c926..79d0602 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .stack-work/ *~ -*.mkv \ No newline at end of file +*.mkv +dist +.hkgr diff --git a/haskell-ffprobe.cabal b/haskell-ffprobe.cabal index df8ceda..bf28ad7 100644 --- a/haskell-ffprobe.cabal +++ b/haskell-ffprobe.cabal @@ -6,7 +6,8 @@ cabal-version: 2.2 name: haskell-ffprobe version: 0.1.0.0 -description: Please see the README on GitHub at +synopsis: Haskell bindings for ffprobe +category: Bindings homepage: https://github.com/Arthi-chaud/haskell-ffprobe#readme bug-reports: https://github.com/Arthi-chaud/haskell-ffprobe/issues author: Arthi-chaud @@ -15,7 +16,7 @@ copyright: 2024 Arthi-chaud license: BSD-3-Clause license-file: LICENSE build-type: Simple -extra-source-files: +extra-doc-files: README.md CHANGELOG.md @@ -47,12 +48,12 @@ library DeriveGeneric ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints build-depends: - aeson + aeson >=2.1.2.1 && <=2.2.3.0 , base >=4.7 && <5 - , bytestring - , process - , scientific - , text + , bytestring >=0.11.5 && <0.12 + , process >=1.6.18 && <1.7 + , scientific >=0.3.7 && <=0.3.8.0 + , text >=2.0.2 && <2.1 default-language: Haskell2010 test-suite haskell-ffprobe-test @@ -77,9 +78,9 @@ test-suite haskell-ffprobe-test DeriveGeneric ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N build-depends: - aeson + aeson >=2.1.2.1 && <=2.2.3.0 , base >=4.7 && <5 - , bytestring + , bytestring >=0.11.5 && <0.12 , haskell-ffprobe , hspec , hspec-expectations diff --git a/package.yaml b/package.yaml index ef6f822..34a177f 100644 --- a/package.yaml +++ b/package.yaml @@ -4,15 +4,17 @@ github: "Arthi-chaud/haskell-ffprobe" license: BSD-3-Clause author: "Arthi-chaud" copyright: "2024 Arthi-chaud" +synopsis: Haskell bindings for ffprobe +category: Bindings -extra-source-files: +extra-doc-files: - README.md - CHANGELOG.md -description: Please see the README on GitHub at - dependencies: - base >= 4.7 && < 5 +- aeson >= 2.1.2.1 && <= 2.2.3.0 +- bytestring >= 0.11.5 && < 0.12 default-extensions: - OverloadedStrings @@ -35,11 +37,9 @@ ghc-options: library: source-dirs: src dependencies: - - process - - aeson - - scientific - - text - - bytestring + - process >= 1.6.18 && < 1.7 + - scientific >= 0.3.7 && <= 0.3.8.0 + - text >= 2.0.2 && < 2.1 exposed-modules: - FFProbe - FFProbe.Data.Chapter @@ -58,6 +58,4 @@ tests: dependencies: - haskell-ffprobe - hspec - - aeson - - bytestring - hspec-expectations diff --git a/test/Utils.hs b/test/Utils.hs index 3fe58a8..c76a5e5 100644 --- a/test/Utils.hs +++ b/test/Utils.hs @@ -1,4 +1,4 @@ -module Utils where +module Utils (getAssetContent, shouldBeRight) where import Data.ByteString import Test.Hspec.Expectations