git.iko.soy/rowtype-yoga/psfp
on 3ef629a help sign in
rowtype-yoga/psfp/server/packages.dhall
159 lines 4.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-}
119let upstream =
120 https://github.com/purescript/package-sets/releases/download/psc-0.15.4-20220901/packages.dhall
121 sha256:f1531b29c21ac437ffe5666c1b6cc76f0a9c29d3c9d107ff047aa2567744994f
123in upstream
124 with foreign-generic =
125 { repo =
126 "https://github.com/working-group-purescript-es/purescript-foreign-generic.git"
127 , version = "v0.15.0-updates"
128 , dependencies =
129 [ "effect"
130 , "exceptions"
131 , "foreign"
132 , "foreign-object"
133 , "identity"
134 , "ordered-collections"
135 , "record"
136 ]
137 }
138 with express =
139 {dependencies =
140 [ "aff"
141 , "arrays"
142 , "effect"
143 , "either"
144 , "exceptions"
145 , "foreign"
146 , "foreign-generic"
147 , "foreign-object"
148 , "functions"
149 , "maybe"
150 , "node-http"
151 , "prelude"
152 , "strings"
153 , "test-unit"
154 , "transformers"
155 , "unsafe-coerce"
156 ]
157 , repo = "https://github.com/purescript-express/purescript-express.git"
158 , version = "86ec92f0adaa8b01ef49e01d27d1cb999b4cb4cb"
159 }