mirror of
https://github.com/i-am-tom/higgledy.git
synced 2024-10-05 20:49:29 +03:00
Fix GHC 9.2 build and add GitHub Actions support.
It turns out that GHC got a little cleverer at spotting a missing `FlexibleContexts` extension. This adds fixes for that, widens bounds as necessary, and adds a yml file to pull in GitHub Actions CI.
This commit is contained in:
parent
a00b826fa0
commit
8d0d87e639
45
.github/workflows/ci.yml
vendored
Normal file
45
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
name: CI
|
||||
|
||||
# Trigger the workflow on push or pull request, but only for the master branch
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- "**"
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ghc ${{ matrix.ghc }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
ghc:
|
||||
- "8.10.7"
|
||||
- "9.2.2"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
|
||||
|
||||
- uses: haskell/actions/setup@v1
|
||||
name: Setup Haskell
|
||||
with:
|
||||
ghc-version: ${{ matrix.ghc }}
|
||||
cabal-version: ${{ matrix.cabal }}
|
||||
|
||||
- uses: actions/cache@v1
|
||||
name: Cache ~/.cabal/store
|
||||
with:
|
||||
path: ~/.cabal/store
|
||||
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cabal v2-update
|
||||
cabal v2-build --enable-tests --enable-benchmarks
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
cabal v2-test --enable-tests
|
@ -1,5 +1,7 @@
|
||||
# Higgledy 📚
|
||||
|
||||
[![GitHub CI](https://github.com/i-am-tom/higgledy/workflows/CI/badge.svg)](https://github.com/i-am-tom/higgledy/actions)
|
||||
|
||||
Higher-kinded data via generics: all\* the benefits, but none\* of the
|
||||
boilerplate.
|
||||
|
||||
|
@ -1,3 +1 @@
|
||||
packages: .
|
||||
|
||||
with-compiler: ghc-8.8.3
|
||||
|
@ -37,8 +37,8 @@ library
|
||||
|
||||
test-suite doctests
|
||||
build-depends: base
|
||||
, base-compat ^>= 0.11
|
||||
, doctest ^>= 0.17
|
||||
, base-compat >= 0.11 && < 0.13
|
||||
, doctest >= 0.17 && < 0.20
|
||||
, higgledy
|
||||
, lens
|
||||
, QuickCheck
|
||||
@ -54,7 +54,7 @@ test-suite test
|
||||
, barbies
|
||||
, higgledy
|
||||
, hspec >= 2.6.1 && < 2.8
|
||||
, lens >= 4.17 && < 5
|
||||
, lens >= 4.17 && < 5.2
|
||||
, QuickCheck
|
||||
main-is: Main.hs
|
||||
type: exitcode-stdio-1.0
|
||||
@ -64,7 +64,7 @@ test-suite test
|
||||
test-suite readme
|
||||
build-depends: base
|
||||
, barbies
|
||||
, lens >= 4.17 && < 5
|
||||
, lens >= 4.17 && < 5.2
|
||||
, higgledy
|
||||
, named ^>= 0.3.0.0
|
||||
main-is: README.lhs
|
||||
|
@ -3,6 +3,7 @@
|
||||
{-# LANGUAGE AllowAmbiguousTypes #-}
|
||||
{-# LANGUAGE BlockArguments #-}
|
||||
{-# LANGUAGE DataKinds #-}
|
||||
{-# LANGUAGE FlexibleContexts #-}
|
||||
{-# LANGUAGE FlexibleInstances #-}
|
||||
{-# LANGUAGE FunctionalDependencies #-}
|
||||
{-# LANGUAGE GADTs #-}
|
||||
|
@ -3,6 +3,7 @@
|
||||
{-# LANGUAGE AllowAmbiguousTypes #-}
|
||||
{-# LANGUAGE ConstraintKinds #-}
|
||||
{-# LANGUAGE DataKinds #-}
|
||||
{-# LANGUAGE FlexibleContexts #-}
|
||||
{-# LANGUAGE FlexibleInstances #-}
|
||||
{-# LANGUAGE FunctionalDependencies #-}
|
||||
{-# LANGUAGE InstanceSigs #-}
|
||||
|
Loading…
Reference in New Issue
Block a user