newer ghc

This commit is contained in:
crumbtoo
2024-03-24 08:05:39 -06:00
parent 9678d3206a
commit 93ef870e56
7 changed files with 24 additions and 25 deletions

13
find-build.clj Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bb
(defn die [& msgs]
(binding [*out* *err*]
(run! println msgs))
(System/exit 1))
(let [paths (map str (fs/glob "." "dist-newstyle/build/*/*/rlp-*/build"))
n (count paths)]
(cond (< 1 n) (die ">1 build directories found. run `cabal clean`.")
(< n 1) (die "no build directories found. this shouldn't happen lol")
:else (-> (first paths) fs/real-path str println)))