-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.dhall
More file actions
21 lines (19 loc) · 817 Bytes
/
test.dhall
File metadata and controls
21 lines (19 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
let config = ./spago.dhall
-- This hack only works because I know how spago@0.20.9 works.
-- When we run `spago -x test.dhall install`, the package(s) installed
-- will be added to the `spagoHack` dependencies array, but Spago
-- will say the config file was not updated. It's lying.
-- Then when we run `spago -x test.dhall build`,
-- the final expression in the `in` block will be used.
let spagoHack =
{ name = "node-event-emitters-test"
, dependencies =
[ "aff", "foldable-traversable", "maybe", "refs", "spec", "tuples" ]
, packages = ./packages.dhall
, sources = [ "test/**/*.purs" ]
}
in { name = spagoHack.name
, dependencies = spagoHack.dependencies # config.dependencies
, packages = ./packages.dhall
, sources = spagoHack.sources # config.sources
}