Skip to content

Adds Monoidal Functor instances for Bot and ListT #340

Adds Monoidal Functor instances for Bot and ListT

Adds Monoidal Functor instances for Bot and ListT #340

Workflow file for this run

# NOTE: This should be a good reference for github actions w.r.t haskell
# https://markkarpov.com/post/github-actions-for-haskell-ci.html
name: cabal:build
on:
push:
branches:
- main
pull_request:
#branches:
# - main
#types:
# - opened
# - synchronize
jobs:
check-format:
if: "!contains(github.event.pull_request.labels.*.name, 'ignore-server-format-checks')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check format
run: |
ORMOLU_VERSION="0.5.0.0"
ORMOLU_URL="https://github.com/tweag/ormolu/releases/download/${ORMOLU_VERSION}/ormolu-Linux.zip"
echo "Downloading from ${ORMOLU_URL}"
curl --fail --location --output ormolu.zip "${ORMOLU_URL}"
unzip ormolu.zip
./ormolu --mode check $(git ls-files '*.hs')
build-test:
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.6"]
ghc: ["8.10.7", "9.0.2", "9.2.4"]
env:
CONFIG: "--project-file=cabal.project"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: haskell/actions/setup@v1
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Freeze
run: |
cabal configure --enable-tests --test-show-details=direct
cabal freeze
- name: Cache
uses: actions/cache@v3
env:
cache-name: cache-cabal
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
- name: Build
run: cabal build all $CONFIG
- name: Test
run: cabal test all $CONFIG
- name: Haddock
run: cabal haddock all $CONFIG
- name: SDist
run: cabal sdist all $CONFIG