Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 26 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,38 @@ jobs:
matrix:
include:
# Linux
- { cabal: "3.14", os: ubuntu-24.04, ghc: "8.8.4" }
- { cabal: "3.14", os: ubuntu-24.04, ghc: "8.10.7" }
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.0.2" }
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.2.8" }
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.4.8" }
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.6.7" }
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.6.7",
- { cabal: "3.16", os: ubuntu-24.04, ghc: "8.8.4" }
- { cabal: "3.16", os: ubuntu-24.04, ghc: "8.10.7" }
- { cabal: "3.16", os: ubuntu-24.04, ghc: "9.0.2" }
- { cabal: "3.16", os: ubuntu-24.04, ghc: "9.2.8" }
- { cabal: "3.16", os: ubuntu-24.04, ghc: "9.4.8" }
- { cabal: "3.16", os: ubuntu-24.04, ghc: "9.6.7" }
- { cabal: "3.16", os: ubuntu-24.04, ghc: "9.6.7",
flags: "-fUnsafeChecks -fInternalChecks" }
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.8.4" }
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.10.2" }
- { cabal: "3.14", os: ubuntu-24.04, ghc: "9.12.2" }
- { cabal: "3.16", os: ubuntu-24.04, ghc: "9.8.4" }
- { cabal: "3.16", os: ubuntu-24.04, ghc: "9.10.2" }
- { cabal: "3.16", os: ubuntu-24.04, ghc: "9.12.2" }
- { cabal: "3.16", os: ubuntu-24.04, ghc: "9.14.1" }
# Win
- { cabal: "3.14", os: windows-latest, ghc: "9.6.7" }
- { cabal: "3.14", os: windows-latest, ghc: "9.8.4" }
- { cabal: "3.14", os: windows-latest, ghc: "9.10.2" }
- { cabal: "3.14", os: windows-latest, ghc: "9.12.2" }
- { cabal: "3.16", os: windows-latest, ghc: "9.6.7" }
- { cabal: "3.16", os: windows-latest, ghc: "9.8.4" }
- { cabal: "3.16", os: windows-latest, ghc: "9.10.2" }
- { cabal: "3.16", os: windows-latest, ghc: "9.12.2" }
- { cabal: "3.16", os: windows-latest, ghc: "9.14.1" }
# MacOS
#
# Fails with:
# > <command line>: can't load framework: Security (not found)
# - { cabal: "3.14", os: macOS-15-intel, ghc: "8.8.4" }
- { cabal: "3.14", os: macOS-15-intel, ghc: "8.10.7" }
- { cabal: "3.14", os: macOS-15-intel, ghc: "9.0.2" }
- { cabal: "3.14", os: macOS-latest, ghc: "9.2.8" }
- { cabal: "3.14", os: macOS-latest, ghc: "9.4.8" }
- { cabal: "3.14", os: macOS-latest, ghc: "9.6.7" }
- { cabal: "3.14", os: macOS-latest, ghc: "9.8.4" }
- { cabal: "3.14", os: macOS-latest, ghc: "9.10.2" }
- { cabal: "3.14", os: macOS-latest, ghc: "9.12.2" }
# - { cabal: "3.16", os: macOS-15-intel, ghc: "8.8.4" }
- { cabal: "3.16", os: macOS-15-intel, ghc: "8.10.7" }
- { cabal: "3.16", os: macOS-15-intel, ghc: "9.0.2" }
- { cabal: "3.16", os: macOS-latest, ghc: "9.2.8" }
- { cabal: "3.16", os: macOS-latest, ghc: "9.4.8" }
- { cabal: "3.16", os: macOS-latest, ghc: "9.6.7" }
- { cabal: "3.16", os: macOS-latest, ghc: "9.8.4" }
- { cabal: "3.16", os: macOS-latest, ghc: "9.10.2" }
- { cabal: "3.16", os: macOS-latest, ghc: "9.12.2" }
- { cabal: "3.16", os: macOS-latest, ghc: "9.14.1" }
fail-fast: false

steps:
Expand Down
9 changes: 5 additions & 4 deletions vector/tests-inspect/Inspect/DerivingVia.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import qualified Data.Vector.Generic.Mutable as VGM
import qualified Data.Vector.Unboxed as VU
import GHC.Generics (Generic)

import Test.InspectExtra
import Inspect.DerivingVia.OtherFoo


Expand Down Expand Up @@ -64,12 +65,12 @@ pipeline_OtherFoo n
-- and even mentions of Foo data type.
tests :: TestTree
tests = testGroup "iso-deriving"
[ $(inspectObligations [(`doesNotUse` 'Foo), hasNoGenerics, hasNoTypeClasses]
[ $(inspectObligations [(`doesNotUse` 'Foo), hasNoGenerics, hasNoTypeClasses']
'map_Foo)
, $(inspectObligations [(`doesNotUse` 'OtherFoo), hasNoGenerics, hasNoTypeClasses]
, $(inspectObligations [(`doesNotUse` 'OtherFoo), hasNoGenerics, hasNoTypeClasses']
'pipeline_Foo)
, $(inspectObligations [(`doesNotUse` 'OtherFoo), hasNoGenerics, hasNoTypeClasses]
, $(inspectObligations [(`doesNotUse` 'OtherFoo), hasNoGenerics, hasNoTypeClasses']
'map_OtherFoo)
, $(inspectObligations [(`doesNotUse` 'OtherFoo), hasNoGenerics, hasNoTypeClasses]
, $(inspectObligations [(`doesNotUse` 'OtherFoo), hasNoGenerics, hasNoTypeClasses']
'pipeline_OtherFoo)
]
7 changes: 6 additions & 1 deletion vector/tests-inspect/Test/InspectExtra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ module Test.InspectExtra
( noStream
, inspectFusion
, inspectClassyFusion
, hasNoTypeClasses'
, module Test.Tasty.Inspection
) where

import Language.Haskell.TH (Name,Q,Exp)
import Test.Tasty.Inspection
import GHC.Base (IP)

import qualified Data.Stream.Monadic as S

Expand All @@ -19,8 +21,11 @@ noStream = (`doesNotUseAnyOf` ['S.Yield, 'S.Skip, 'S.Done])

inspectFusion :: Name -> Q Exp
inspectFusion = inspectObligations [ noStream
, hasNoTypeClasses
, hasNoTypeClasses'
]

inspectClassyFusion :: Name -> Q Exp
inspectClassyFusion = inspectObligations [ noStream ]

hasNoTypeClasses' :: Name -> Obligation
hasNoTypeClasses' e = hasNoTypeClassesExcept e [''IP]
1 change: 1 addition & 0 deletions vector/vector.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Tested-With:
GHC == 9.8.4
GHC == 9.10.2
GHC == 9.12.2
GHC == 9.14.1

Extra-doc-files:
changelog.md
Expand Down
Loading