Skip to content

Commit

Permalink
update cabal + internal + ci
Browse files Browse the repository at this point in the history
  • Loading branch information
emilypi committed Dec 30, 2024
1 parent c521580 commit 1d45a35
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
ghc: ['8.10', '9.0', '9.2', '9.4', '9.6', '9.8', '9.10']
ghc: ['9.4', '9.6', '9.8', '9.10', '9.12']
include:
- os: macOS-latest
ghc: 'latest'
Expand Down
14 changes: 6 additions & 8 deletions nonempty-vector.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ extra-doc-files:
README.md

tested-with:
GHC ==8.10.7
|| ==9.0.2
|| ==9.2.6
|| ==9.4.4
|| ==9.6.4
|| ==9.8.1
GHC ==9.4.4
|| ==9.6.6
|| ==9.8.4
|| ==9.10.1
|| ==9.12.1

source-repository head
type: git
Expand All @@ -36,7 +34,7 @@ library
Data.Vector.NonEmpty.Mutable

build-depends:
base >=4.14 && <4.21
base >=4.16 && <4.22
, deepseq
, primitive >=0.6 && <0.10
, vector >=0.12 && <0.14
Expand All @@ -50,7 +48,7 @@ test-suite tasty
type: exitcode-stdio-1.0
main-is: Main.hs
build-depends:
base >=4.14 && <4.21
base >=4.16 && <4.22
, nonempty-vector
, QuickCheck
, tasty
Expand Down
9 changes: 8 additions & 1 deletion src/Data/Vector/NonEmpty/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ import qualified Data.Foldable1 as Foldable1
#endif
import Data.Functor.Classes (Eq1, Ord1, Show1, Read1(..))
import qualified Data.Vector as V
#if __GLASGOW_HASKELL__ < 912
import Data.Typeable (Typeable)
#endif
import Data.Vector.Mutable (MVector)

import qualified Text.Read as Read
Expand All @@ -67,7 +69,10 @@ newtype NonEmptyVector a = NonEmptyVector
} deriving
( Eq, Ord
, Eq1, Ord1, Show1
, Data, Typeable, NFData
, Data, NFData
#if __GLASGOW_HASKELL__ < 912
, Typeable
#endif
, Functor, Applicative, Monad
, MonadZip
, Semigroup
Expand Down Expand Up @@ -126,7 +131,9 @@ instance Traversable NonEmptyVector where
--
newtype NonEmptyMVector s a = NonEmptyMVector
{ _nemVec :: MVector s a }
#if __GLASGOW_HASKELL__ < 912
deriving (Typeable)
#endif

-- | 'NonEmptyMVector' parametrized by 'PrimState'
--
Expand Down

0 comments on commit 1d45a35

Please sign in to comment.