-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Stack setup for GHC 9.2.8 (#2531)
* Bumped Stack snapshot to LTS 18.28 - dhall-lsp-server: Require lsp>=1.5.0.0. * Updated GitHub Actions * Added Stack configuration for GHC 9.2.8 * Added CI job for GHC 8.10 * Allow passing extra arguments to the doctest test suites * Cabal: Use hnix from Git repository * Use single quotes in GHA condition * GHA: Try nested os.runner * GHA: Include used stack.yaml file in job name * Updated mergify config * Also skip package preparation step if we are not using stack.yaml * Updated used actions * Added text-rope.nix * Added co-log-core.nix and lsp.nix * Added lsp-types.nix
- Loading branch information
Showing
20 changed files
with
277 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
packages: ./dhall ./dhall-bash ./dhall-json ./dhall-yaml ./dhall-nix ./dhall-docs ./dhall-openapi ./dhall-nixpkgs ./dhall-csv ./dhall-toml ./dhall-lsp-server | ||
packages: | ||
./dhall | ||
./dhall-bash | ||
./dhall-csv | ||
./dhall-docs | ||
./dhall-json | ||
./dhall-lsp-server | ||
./dhall-nix | ||
./dhall-nixpkgs | ||
./dhall-openapi | ||
./dhall-toml | ||
./dhall-yaml | ||
|
||
source-repository-package | ||
type: git | ||
location: https://github.com/haskell-nix/hnix.git | ||
tag: 2adbc502e62e755ca0372c913e6278ebe564d7d2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
module Main where | ||
module Main (main) where | ||
|
||
import System.FilePath ((</>)) | ||
|
||
import qualified GHC.IO.Encoding | ||
import qualified System.Directory | ||
import qualified System.Environment | ||
import qualified System.IO | ||
import qualified Test.DocTest | ||
|
||
main :: IO () | ||
main = do | ||
GHC.IO.Encoding.setLocaleEncoding System.IO.utf8 | ||
pwd <- System.Directory.getCurrentDirectory | ||
args <- System.Environment.getArgs | ||
pwd <- System.Directory.getCurrentDirectory | ||
prefix <- System.Directory.makeAbsolute pwd | ||
Test.DocTest.doctest | ||
let src = prefix </> "src" | ||
|
||
Test.DocTest.doctest $ | ||
[ "--fast" | ||
, prefix </> "src" | ||
] <> args <> | ||
[ src | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
module Main where | ||
module Main (main) where | ||
|
||
import System.FilePath ((</>)) | ||
|
||
import qualified GHC.IO.Encoding | ||
import qualified System.Directory | ||
import qualified System.Environment | ||
import qualified System.IO | ||
import qualified Test.DocTest | ||
|
||
main :: IO () | ||
main = do | ||
|
||
GHC.IO.Encoding.setLocaleEncoding System.IO.utf8 | ||
pwd <- System.Directory.getCurrentDirectory | ||
args <- System.Environment.getArgs | ||
pwd <- System.Directory.getCurrentDirectory | ||
prefix <- System.Directory.makeAbsolute pwd | ||
let src = prefix </> "src" | ||
|
||
Test.DocTest.doctest | ||
Test.DocTest.doctest $ | ||
[ "--fast" | ||
, "-XOverloadedStrings" | ||
, "-XRecordWildCards" | ||
, "-i" <> (prefix </> "src") | ||
, prefix </> "src/Dhall/LSP/Backend/Diagnostics.hs" | ||
] <> args <> | ||
[ "-i" <> src | ||
, src </> "Dhall/LSP/Backend/Diagnostics.hs" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
module Main where | ||
module Main (main) where | ||
|
||
import System.FilePath ((</>)) | ||
|
||
import qualified GHC.IO.Encoding | ||
import qualified System.Directory | ||
import qualified System.Environment | ||
import qualified System.IO | ||
import qualified Test.DocTest | ||
|
||
main :: IO () | ||
main = do | ||
GHC.IO.Encoding.setLocaleEncoding System.IO.utf8 | ||
args <- System.Environment.getArgs | ||
pwd <- System.Directory.getCurrentDirectory | ||
prefix <- System.Directory.makeAbsolute pwd | ||
let src = prefix </> "src" | ||
Test.DocTest.doctest [ "--fast", "-i" <> src, src ] | ||
|
||
Test.DocTest.doctest $ | ||
[ "--fast" | ||
] <> args <> | ||
[ "-i" <> src | ||
, src | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.