From 0964c11037c9576b07c41bbb771e471cac388205 Mon Sep 17 00:00:00 2001 From: Mitchell Rosen Date: Mon, 27 Nov 2023 00:35:33 -0500 Subject: [PATCH] cabal file tweaks --- CHANGELOG.md | 2 +- stm-fsifo.cabal | 86 ++++++++++++++++++++++++++----------------------- 2 files changed, 46 insertions(+), 42 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9db80df..baf33f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ -# 0.1.0.0 - Unreleased +# 0.1.0 - Unreleased - Initial release diff --git a/stm-fsifo.cabal b/stm-fsifo.cabal index 2c7314f..750998a 100644 --- a/stm-fsifo.cabal +++ b/stm-fsifo.cabal @@ -1,61 +1,65 @@ -cabal-version: 2.4 -name: stm-fsifo -version: 0.1.0.0 +cabal-version: 2.4 author: Travis Staton -category: Data, Database, Network -copyright: 2022, Travis Staton -extra-source-files: CHANGELOG.md +category: Concurrency, Data +copyright: 2021-2023 Travis Staton, Mitchell Rosen homepage: https://github.com/awkward-squad/demeter license-file: LICENSE license: BSD-3-Clause maintainer: Travis Staton , Mitchell Rosen +name: stm-fsifo synopsis: A FIFO queue that supports deleting an enqueued element +version: 0.1.0 + description: + @stm-fsifo@ (first still in first out) is a FIFO queue that + supports /O(1)/ push, pop, and removing any element from the + queue. - @stm-fsifo@ (first still in first out) is a FIFO queue that - supports /O(1)/ push, pop, and removing any element from the - queue. +extra-doc-files: + CHANGELOG.md -library - exposed-modules: Control.Concurrent.STM.Fsifo - build-depends: - base >= 4.14 && < 5, - stm ^>= 2.5, - hs-source-dirs: lib - default-language: Haskell2010 +common component + default-language: Haskell2010 + ghc-options: + -Weverything + -Wno-all-missed-specialisations + -Wno-implicit-prelude + -Wno-missing-import-lists + -Wno-missing-local-signatures + -Wno-missing-safe-haskell-mode + -Wno-monomorphism-restriction + -Wno-prepositive-qualified-module + -Wno-safe + -Wno-unsafe + if impl(ghc >= 9.2) + ghc-options: + -Wno-missing-kind-signatures + if impl(ghc >= 9.8) ghc-options: - -Wall - -Wcompat - -Widentities - -Wincomplete-record-updates - -Wincomplete-uni-patterns - -Wredundant-constraints - -Wpartial-fields - -O2 + -Wno-missing-role-annotations + +library + import: component + build-depends: + base ^>= 4.14 || ^>= 4.15 || ^>= 4.16 || ^>= 4.17 || ^>= 4.18 || ^>= 4.19, + -- Manually skipping buggy 2.5.2.* + stm == 2.5.1.* || ^>= 2.5.3.0, + exposed-modules: Control.Concurrent.STM.Fsifo + hs-source-dirs: lib test-suite test - type: exitcode-stdio-1.0 - main-is: Main.hs + import: component build-depends: base, - stm-fsifo, + containers ^>= 0.6, + hedgehog ^>= 1.2, stm, + stm-fsifo, tasty ^>= 1.4, tasty-hedgehog ^>= 1.4, transformers ^>= 0.5 || ^>= 0.6, - containers ^>= 0.6, - hedgehog ^>= 1.2, + ghc-options: -rtsopts -threaded hs-source-dirs: test - default-language: Haskell2010 - ghc-options: - -Wall - -Wcompat - -Widentities - -Wincomplete-record-updates - -Wincomplete-uni-patterns - -Wredundant-constraints - -Wpartial-fields - -O1 - -rtsopts - -threaded + main-is: Main.hs + type: exitcode-stdio-1.0