git.iko.soy/rowtype-yoga/psfp
on d78b06e help sign in
rowtype-yoga/psfp/packages.dhall
189 lines 5.4 kB history raw
1{-
2Welcome to your new Dhall package-set!
4Below are instructions for how to edit this file for most use
5cases, so that you don't need to know Dhall to use it.
7## Warning: Don't Move This Top-Level Comment!
9Due to how `dhall format` currently works, this comment's
10instructions cannot appear near corresponding sections below
11because `dhall format` will delete the comment. However,
12it will not delete a top-level comment like this one.
14## Use Cases
16Most will want to do one or both of these options:
171. Override/Patch a package's dependency
182. Add a package not already in the default package set
20This file will continue to work whether you use one or both options.
21Instructions for each option are explained below.
23### Overriding/Patching a package
25Purpose:
26- Change a package's dependency to a newer/older release than the
27 default package set's release
28- Use your own modified version of some dependency that may
29 include new API, changed API, removed API by
30 using your custom git repo of the library rather than
31 the package set's repo
33Syntax:
34Replace the overrides' "{=}" (an empty record) with the following idea
35The "//" or "⫽" means "merge these two records and
36 when they have the same value, use the one on the right:"
37-------------------------------
38let override =
39 { packageName =
40 upstream.packageName // { updateEntity1 = "new value", updateEntity2 = "new value" }
41 , packageName =
42 upstream.packageName // { version = "v4.0.0" }
43 , packageName =
44 upstream.packageName // { repo = "https://www.example.com/path/to/new/repo.git" }
45 }
46-------------------------------
48Example:
49-------------------------------
50let overrides =
51 { halogen =
52 upstream.halogen // { version = "master" }
53 , halogen-vdom =
54 upstream.halogen-vdom // { version = "v4.0.0" }
55 }
56-------------------------------
58### Additions
60Purpose:
61- Add packages that aren't already included in the default package set
63Syntax:
64Replace the additions' "{=}" (an empty record) with the following idea:
65-------------------------------
66let additions =
67 { "package-name" =
68 { dependencies =
69 [ "dependency1"
70 , "dependency2"
71 ]
72 , repo =
73 "https://example.com/path/to/git/repo.git"
74 , version =
75 "tag ('v4.0.0') or branch ('master')"
76 }
77 , "package-name" =
78 { dependencies =
79 [ "dependency1"
80 , "dependency2"
81 ]
82 , repo =
83 "https://example.com/path/to/git/repo.git"
84 , version =
85 "tag ('v4.0.0') or branch ('master')"
86 }
87 , etc.
88 }
89-------------------------------
91Example:
92-------------------------------
93let additions =
94 { benchotron =
95 { dependencies =
96 [ "arrays"
97 , "exists"
98 , "profunctor"
99 , "strings"
100 , "quickcheck"
101 , "lcg"
102 , "transformers"
103 , "foldable-traversable"
104 , "exceptions"
105 , "node-fs"
106 , "node-buffer"
107 , "node-readline"
108 , "datetime"
109 , "now"
110 ],
111 , repo =
112 "https://github.com/hdgarrood/purescript-benchotron.git"
113 , version =
114 "v7.0.0"
115 }
116 }
117-------------------------------
118-}
121let upstream =
122 https://github.com/purescript/package-sets/releases/download/psc-0.13.3-20190920/packages.dhall sha256:53873cf2fc4a343a41f335ee47c1706ecf755ac7c5a336e8eb03ad23165dfd28
124let overrides =
125 { react-basic-hooks =
126 upstream.react-basic-hooks // { version = "v2.0.1" }
127 , spec-discovery =
128 upstream.spec-discovery // { version = "1ca3416e6c0729eca8d5204f22cf0aa09c98df9d" }
129 , react-basic =
130 upstream.react-basic
131 // { repo =
132 "https://github.com/i-am-the-slime/purescript-react-basic"
133 , version =
134 "dda3f711d84cd5dc1817a71ff01f0426b04ed791"
135 }
136 }
138let additions =
139 { react-testing-library =
140 { dependencies =
141 [ "aff-promise"
142 , "console"
143 , "debug"
144 , "effect"
145 , "foreign"
146 , "foreign-object"
147 , "psci-support"
148 , "react-basic-hooks"
149 , "remotedata"
150 , "run"
151 , "simple-json"
152 , "spec"
153 , "spec-discovery"
154 ]
155 , repo =
156 "https://github.com/i-am-the-slime/purescript-react-testing-library.git"
157 , version =
158 "b872928414a887ccefbe857038af4e57227dad16"
159 }
160 , pseudo-random =
161 { dependencies =
162 [ "prelude"
163 , "console"
164 , "effect"
165 , "lcg"
166 , "arrays"
167 , "st"
168 ]
169 , repo =
170 "https://github.com/opyapeus/purescript-pseudo-random.git"
171 , version =
172 "7715e8a2c096c480a093a5e0a6df1ece4df5ed2a"
173 }
174 , matryoshka =
175 { dependencies =
176 [ "prelude"
177 , "fixed-points"
178 , "free"
179 , "transformers"
180 , "profunctor"
181 ]
182 , repo =
183 "https://github.com/slamdata/purescript-matryoshka.git"
184 , version =
185 "caaca2d836d52159ba7963333996286a00428394"
186 }
187 }
189in upstream // overrides // additions