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
3 changes: 3 additions & 0 deletions .ghci
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:set -Wall
:set -isrc
:set -itest
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: build

concurrency:
# separate concurrency groups for pull requests (.head_ref) and pushes (.ref)
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

on:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
resolver:
- lts-22.44 # 9.6.7
- lts-23.28 # 9.8.4
- lts-24.39 # 9.10.3
include:
- resolver: nightly
allow-failure: true
continue-on-error: ${{ matrix.allow-failure || false }}

steps:
- uses: actions/checkout@v4

- uses: haskell-actions/setup@cd0d9bdd65b20557f41bea4dbe43d0b5fbbfe553 # @v2
with:
enable-stack: true

# GHC installation and dependencies should ideally change infrequently,
# so we cache them separately from ./.stack-work
- uses: actions/cache@v4
with:
path: |
~/.stack
key: ${{ runner.os }}-stack-global-${{ matrix.resolver }}-${{ hashFiles('stack.yaml.lock', 'package.yaml') }}
restore-keys: |
${{ runner.os }}-stack-global-${{ matrix.resolver }}-

- uses: actions/cache@v4
with:
path: |
.stack-work
key: ${{ runner.os }}-stack-work-${{ matrix.resolver }}-${{ hashFiles('stack.yaml.lock', 'package.yaml', 'src/**/*.hs', 'test/**/*.hs', 'driver/**/*.hs') }}
restore-keys: |
${{ runner.os }}-stack-work-${{ matrix.resolver }}-

- run: stack build --resolver ${{ matrix.resolver }} --test --only-dependencies --no-terminal

- run: stack build --resolver ${{ matrix.resolver }} --test --no-run-tests --no-terminal

- run: stack test --resolver ${{ matrix.resolver }} --no-terminal
19 changes: 0 additions & 19 deletions .github/workflows/ci.yml

This file was deleted.

5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
dist/
.stack-work/
stack.yaml.lock
codex.tags
.gitignore
.ghci_history
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .vim.custom

This file was deleted.

1 change: 0 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
envparse
========
[![Build status](https://github.com/supki/envparse/actions/workflows/ci.yml/badge.svg)](https://github.com/supki/envparse/actions/workflows/ci.yml)

[optparse-applicative][0], but for environment variables

Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ pkgs ? import <nixpkgs> {}
, ghc ? pkgs.haskell.compiler.ghc948
, ghc ? pkgs.haskell.compiler.ghc984
}:

pkgs.mkShell rec {
Expand Down
4 changes: 0 additions & 4 deletions stack-7.10.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions stack-8.0.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions stack-8.2.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-21.25
resolver: lts-23.28
packages:
- '.'
allow-newer: true
12 changes: 12 additions & 0 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/topics/lock_files

packages: []
snapshots:
- completed:
sha256: 7e724f347d5969cb5e8dde9f9aae30996e3231c29d1dafd45f21f1700d4c4fcb
size: 684460
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/23/28.yaml
original: lts-23.28
Loading