File tree Expand file tree Collapse file tree 6 files changed +16
-7
lines changed Expand file tree Collapse file tree 6 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -26,5 +26,5 @@ in pkgs.haskell-nix.project {
26
26
src = ./. ;
27
27
} ;
28
28
# Specify the GHC version to use.
29
- compiler-nix-name = "ghc928 " ; # Not required for `stack.yaml` based projects.
29
+ compiler-nix-name = "ghc92 " ; # Not required for `stack.yaml` based projects.
30
30
}
Original file line number Diff line number Diff line change 12
12
helloProject =
13
13
final . haskell-nix . project' {
14
14
src = ./. ;
15
- compiler-nix-name = "ghc928 " ;
15
+ compiler-nix-name = "ghc92 " ;
16
16
# This is used by `nix develop .` to open a shell for use with
17
17
# `cabal`, `hlint` and `haskell-language-server`
18
18
shell . tools = {
Original file line number Diff line number Diff line change @@ -26,5 +26,5 @@ in pkgs.haskell-nix.project {
26
26
src = ./. ;
27
27
} ;
28
28
# Specify the GHC version to use.
29
- compiler-nix-name = "ghc928 " ; # Not required for `stack.yaml` based projects.
29
+ compiler-nix-name = "ghc92 " ; # Not required for `stack.yaml` based projects.
30
30
}
Original file line number Diff line number Diff line change 1
1
{ pkgs , ...} : {
2
2
# name = "project-name";
3
- compiler-nix-name = "ghc8107 " ; # Version of GHC to use
3
+ compiler-nix-name = "ghc92 " ; # Version of GHC to use
4
4
5
5
# Cross compilation support:
6
6
# crossPlatforms = p: pkgs.lib.optionals pkgs.stdenv.hostPlatform.isx86_64 ([
Original file line number Diff line number Diff line change 14
14
compiler-nix-name = mkOption {
15
15
type = str ;
16
16
description = "The name of the ghc compiler to use eg. \" ghc884\" " ;
17
+ # Map short version names to the latest GHC version.
18
+ # TODO: perhaps combine this with the `latestVer` mapping in `overlays/boostrap.nix`.
19
+ apply = v : {
20
+ ghc810 = "ghc8107" ;
21
+ ghc90 = "ghc902" ;
22
+ ghc92 = "ghc928" ;
23
+ ghc94 = "ghc945" ;
24
+ ghc96 = "ghc962" ;
25
+ } . ${ v } or v ;
17
26
} ;
18
27
compilerSelection = mkOption {
19
28
type = unspecified ;
Original file line number Diff line number Diff line change 15
15
"8.8" = "8.8.4" ;
16
16
"8.10" = "8.10.7" ;
17
17
"9.0" = "9.0.2" ;
18
- "9.2" = "9.2.7 " ;
19
- "9.4" = "9.4.4 " ;
20
- "9.6" = "9.6.1 " ;
18
+ "9.2" = "9.2.8 " ;
19
+ "9.4" = "9.4.5 " ;
20
+ "9.6" = "9.6.2 " ;
21
21
} ;
22
22
traceWarnOld = v : x :
23
23
let
You can’t perform that action at this time.
0 commit comments