-
Notifications
You must be signed in to change notification settings - Fork 5
/
ghc.nix
81 lines (81 loc) · 1.58 KB
/
ghc.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
let
pkgs = (import ./default.nix).pkgs;
# Note: below would also work if called via Bazel/rules_nix. But to avoid
# chance of instantiating manually with the unpinned nixpkgs, we specify
# explicitly.
#
# pkgs = import <nixpkgs> {};
haskellPackages = pkgs.haskellPackages.override (old: {
overrides =
with pkgs;
lib.composeExtensions (old.overrides or (_: _: {})) (self: super: {
# Needs version override due to containers upper bound.
# foobar = haskell.lib.doJailbreak super.foobar;
});
});
in haskellPackages.ghcWithPackages (p: with p; [
# Note: contrary to the remarks here, see //treetide/thirdparty/haskell/BUILD
# for more specific remarks and pointers about these libs.
aeson
align
async
base64-bytestring
boxes
clock
conduit
containers
cookie
criterion
cryptonite
data-default
deriving-compat
directory
errors
exceptions # for dealing legacy code only
fast-logger # TODO(robinp): ditch?
free
groom
hedgehog
HTTP
html-conduit
http-api-data
http-client
http-types
lens
mtl
neat-interpolation
network
network-uri
optparse-applicative
postgresql-simple
protolude
prometheus-client
prometheus-metrics-ghc
recursion-schemes
resourcet
safe-exceptions
scotty # prefer servant
servant
servant-client
servant-server
split
stm-conduit
tagsoup
tasty
tasty-hedgehog
tasty-hunit
tasty-silver
text-format
text-icu
time
unix
unliftio-core
unliftio
unordered-containers
vector
wai
wai-middleware-prometheus
warp
wreq
xml-conduit
])