Commit Graph

18 Commits

Author SHA1 Message Date
Ondřej Šebek
244c882a80
Move top-level Github/VSCode configuration files (#2037)
* move Mergify, Restyled, Haskell-CI and Pull Request template to `.github`
  * regenerate Haskell-CI file with the new path and new Haskell CI version
* move CSpell from VSCode [Code Spell Checker](https://open-vsx.org/extension/streetsidesoftware/code-spell-checker) extension to `.vscode`

This is a complementary top-level cleanup to #2015.
2024-07-14 15:41:23 +02:00
Brent Yorgey
096816133f
Support GHC 9.8, bump upper bounds, and update CI (#1828)
Make sure Swarm builds with the most recent versions of dependencies. The only one that is still lagging is `filepath`, but `servant` doesn't support `filepath-1.5` so Swarm can't either.

The only real update needed was due to some breaking changes in `aeson-2.2`, but the necessary changes were very minor.  Also fixed a few places where GHC 9.8 is generating additional warnings.

Also update our CI: `haskell-ci` recently dropped support for `hlint`, in favor of projects defining their own standalone `hlint` workflows.
2024-05-10 14:43:41 -05:00
Brent Yorgey
c4a6e273c1
Update to depend on lsp-2.4.0.0 (#1762)
Update to use the `lsp-2.4` API.  Closes #1350.

Initially I hoped that any `lsp-2.x` would work.  However, the `SeverDefinition` record changed in `2.2` so I initially set that as a lower bound.  But then it turns out that `2.4` changed which module it is importing `Rope` from; since we work with ropes in the `Hover` module it matters since we have to import the matching module.  Updating to the new `Rope` type also required some changes as the API provided by the new `Rope.Mixed` module is a bit different than the old module, so we would not even be able to easily put in CPP to conditionally depend on the right rope module depending on the `lsp` version.  Finally, this means dropping support for GHC 9.0 since `lsp-2.4` does not support it.

Along the way I also fixed a minor issue related to showing type information returned by the LSP server, so that it uses `prettyTypeLine` to display the type on a single line (in my editor, when the type does not use a single line it gets cut off).  For comparison see also #1610. 

This refactoring was a big pain because a lot of things (names of types and constructors, locations of exports, etc...) changed from 1.x to 2.x, but there was not much in the way of documenting what had changed. =(   I am pretty sure that all functionality has been preserved but I would appreciate independent confirmation.

This is also a prerequisite for updating other dependencies such as the `base` version (I will open a follow-up PR soon) since the old `lsp-1.x` versions do not allow many newer versions of various dependencies.
2024-02-12 11:05:39 -06:00
Brent Yorgey
96d3062550
update to megaparsec-9.6.1 (#1609)
* Update to `megaparsec-9.6.1`.  This allows us to remove any annoying workaround. 
* Bump stack resolver to LTS-21.19.
* Drop support for GHC 8.10.
2023-11-08 12:26:23 -06:00
Brent Yorgey
7f53d9061d
Update to support GHC 9.6, mtl-2.3, and bump upper bounds (#1363)
Support GHC 9.6 / `base-4.18`, `mtl-2.3`, `megaparsec-9.4`, `servant-0.20`, `servant-docs-0.13`, `servant-server-0.20`, `template-haskell-2.20`, `optparse-applicative-0.18`, fix a bunch of new warnings, and update CI to test on GHC 9.6. 

---------

Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <commits@restyled.io>
2023-07-11 19:05:14 -05:00
Brent Yorgey
4ec9770d6f
mergify: forgo 'Enforce issue references' for non-.hs (#1265)
Closes #1264.
2023-05-16 13:12:24 -05:00
Brent Yorgey
29c931d4c9
add GHC 9.4.2 build and todo check to requirements for merging (#1177) 2023-03-25 13:12:24 -05:00
Brent Yorgey
e6defd44b1
update to brick-1.0 (#641)
* Update to `brick-1.0`
* Test with GHC 9.2.4
2022-08-17 12:35:10 -05:00
Ondřej Šebek
6fd7f4143b Allow non-Haskell PRs to be merged 2022-08-07 01:05:56 +02:00
Ondřej Šebek
94c876a01a Add GHC 9.2.3 to CI 2022-06-09 01:29:05 +02:00
Ondřej Šebek
7ad65ad00a
Update Github Actions and fix Doctest (#352)
* Fix doctests

* Regenerate haskell-ci with config

- use latest haskell-ci
- configure haskell-ci to use doctest

* Update tested with compiler

- update cabal tested-with field
- update .mergify.yaml to new compiler
  - restore note about mergify in haskell-ci
2022-06-04 15:04:26 -05:00
Brent Yorgey
242376d294 Fix Mergify config
Convert deprecated `commit_message` attribute to
`commit_message_template`.  See https://docs.mergify.com/actions/merge/#defining-the-commit-message
2022-03-01 21:02:58 -06:00
Brent Yorgey
b1f0e316fd
Challenge mode (#285)
Add a "challenge mode" where the player tries to achieve some specified goal from specific starting conditions.
2022-01-27 17:00:00 -06:00
Ondřej Šebek
89e613c678
Add the CI file check to mergify (#283)
I made a mistake in #279, for PRs that modify both .hs an .md the dummy would pass 🙄

Copying the logic to .mergify.yml should fix this. 🤞
2021-11-07 15:55:03 +01:00
Ondřej Šebek
95f2247657
Filter paths that run CI (#279)
* Filter paths that run CI
* Add dummy CI to check
2021-11-07 14:39:10 +01:00
Brent Yorgey
d8e3334cad
update CI and include the test suite (#165) 2021-10-03 21:29:08 -05:00
Tristan de Cacqueray
9c18edc4cf
Configure squash commit message to use title+body (#95) 2021-09-27 16:36:18 -05:00
Tristan Cacqueray
50e9558071 Add mergify configuration
This change configures the mergify bot so that:
- PR are validated with the tip of the project before merge
  to prevent incompatible PRs to be merged at once which could
  break the CI.
- PR maintainer uses a consistent smart squash workflow
2021-09-26 19:44:38 +00:00