tvl-depot/users/grfn
sterni 2f750e4a14 refactor(grfn/xanthous): avoid unnecessary recompilation
hpack is a bit dumb when generating the list of modules for a cabal
file's component if multiple of them live in the same directory.
Specifically it seems to assume that all modules in the source-dirs
of a particular component are also necessary for its compilation.

This is quite bad in the case of xanthous since both library and
executable have source-dirs: src, so all modules will be compiled
twice: Once for the library and then again for the executable
despite it depending on the library (actually 4 times in total
since we need to build a unprofiled and profiled object for each
module…).

To fix this we just move Main.hs into its own directory and change
the executable's source-dirs, so hpack doesn't get confused anymore.
Since all components now have their own source-dirs, unnecessary
redundant compilation should be down to 0. The diff of the cabal
file shows quite nicely how many module recompilation we've gotten
rid of.

Change-Id: I2df4fab9b0299b3a2b5d3005508c79b2d9796039
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3533
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Reviewed-by: grfn <grfn@gws.fyi>
2021-09-11 16:00:12 +00:00
..
achilles chore(3p/overlays): Remove LLVM11 bump from overlay 2021-05-24 18:15:05 +00:00
emacs.d feat(gs/emacs): Use notmuch tree 2021-09-02 17:05:21 +00:00
gws.fyi refactor(users/grfn/gws.fyi): implement isDirectory in pure nix 2021-08-24 12:13:06 +00:00
keyboard chore(grfn): Fix remaining references to glittershark 2021-04-12 15:22:48 +00:00
org-clubhouse refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
resume refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
system fix(gs/home): Hardcode home directory 2021-09-07 18:57:51 +00:00
wigglydonke.rs refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
xanthous refactor(grfn/xanthous): avoid unnecessary recompilation 2021-09-11 16:00:12 +00:00
keys.nix refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
OWNERS refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00