Skip to content

Commit bf63e38

Browse files
committed
Updates
1 parent beacf44 commit bf63e38

File tree

4 files changed

+28
-12
lines changed

4 files changed

+28
-12
lines changed

nix/sources.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
2525
},
2626
"nixpkgs": {
27-
"branch": "nixos-20.09",
27+
"branch": "nixos-23.05",
2828
"description": "Nix Packages collection",
2929
"homepage": null,
3030
"owner": "nixos",
3131
"repo": "nixpkgs",
32-
"rev": "1c1f5649bb9c1b0d98637c8c365228f57126f361",
33-
"sha256": "0f2nvdijyxfgl5kwyb4465pppd5vkhqxddx6v40k2s0z9jfhj0xl",
32+
"rev": "e11142026e2cef35ea52c9205703823df225c947",
33+
"sha256": "1w5bp7vv56878g4zzykgbcvqib40dwg4fn9mxrwlg6gc8gdjimfx",
3434
"type": "tarball",
35-
"url": "https://github.com/nixos/nixpkgs/archive/1c1f5649bb9c1b0d98637c8c365228f57126f361.tar.gz",
35+
"url": "https://github.com/nixos/nixpkgs/archive/e11142026e2cef35ea52c9205703823df225c947.tar.gz",
3636
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
3737
}
3838
}

rel8.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ library
2121
build-depends:
2222
aeson
2323
, base >=4.14 && <4.17 || ^>=4.17
24+
, base-compat
2425
, bifunctors
2526
, bytestring
2627
, case-insensitive

shell.nix

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
11
let
22
sources = import ./nix/sources.nix;
3-
pkgs = import sources.nixpkgs { overlays = [ ]; };
3+
44
hsPkgs = import ./default.nix;
5+
6+
haskellNix = import sources."haskell.nix" { };
7+
nixpkgsSrc = haskellNix.sources.nixpkgs-unstable;
8+
nixpkgsArgs = haskellNix.nixpkgsArgs;
9+
compiler-nix-name = "ghc943";
10+
11+
haskell-nix = (import nixpkgsSrc nixpkgsArgs).haskell-nix;
12+
13+
ch-hs-imports =
14+
let
15+
project = haskell-nix.project {
16+
src = sources.ch-hs-imports;
17+
inherit compiler-nix-name;
18+
};
19+
in
20+
project.hsPkgs.ch-hs-imports.components.exes.ch-hs-imports;
21+
22+
pkgs = import sources.nixpkgs { overlays = [ ]; };
523
in
624
hsPkgs.shellFor {
725
withHoogle = false;
8-
tools = { cabal = "latest"; };
26+
tools = { cabal = "latest"; fourmolu = "latest"; cabal-fmt = "latest"; };
927
exactDeps = false;
10-
buildInputs = [ pkgs.postgresql pkgs.pythonPackages.sphinx ];
28+
buildInputs = [ pkgs.nixpkgs-fmt pkgs.postgresql pkgs.treefmt ];
1129
}

src/Rel8/Table/Rel8able.hs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@
1313
module Rel8.Table.Rel8able (
1414
)
1515
where
16-
17-
18-
-- base
19-
#if __GLASGOW_HASKELL__ >= 904
16+
2017
-- base
21-
import Data.Type.Equality (type (~))
18+
import Data.Type.Equality.Compat
2219
import Prelude ()
2320

2421
-- rel8

0 commit comments

Comments
 (0)