Commit 4ae512c
committed
fix(generate-release-changelog-links): replace turtle with plain IO
turtle ^>= 1.6.x requires optparse-applicative < 0.19, conflicting with
the rest of the project. allow-newer would satisfy the solver but turtle
1.6.x fails to compile against 0.19 because of the breaking Doc type
change (ansi-wl-pprint -> prettyprinter).
Replace turtle usage with standard IO:
- Shell monad -> plain list IO with mapM/concat
- options/optPath/argPath/argText -> execParser/strOption/argument directly
- Pattern URL parser -> Text.breakOn/stripPrefix in Maybe monad
- printf/format -> Text concatenation and hPutStrLn stderr
- die -> exitFailure helper
Also drops foldl and prettyprinter which were only needed via turtle.1 parent 45f3b0a commit 4ae512c
4 files changed
Lines changed: 230 additions & 520 deletions
File tree
- scripts
- generate-release-changelog-links
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
216 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
217 | 218 | | |
218 | | - | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
| 223 | + | |
| 224 | + | |
223 | 225 | | |
224 | 226 | | |
225 | | - | |
| 227 | + | |
| 228 | + | |
226 | 229 | | |
227 | | - | |
228 | | - | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | | - | |
| 233 | + | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | | - | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
238 | | - | |
239 | | - | |
240 | 241 | | |
This file was deleted.
0 commit comments