Open
Description
This is to simplify queries for .hs
files, whether it be in IDEs or in the terminal, using find
.
As is, the simplest find
command includes unwanted build artifacts:
$ find . -name *.hs
./src/swarm-lang/Swarm/Language/Typed.hs
./src/swarm-lang/Swarm/Language/LSP/VarUsage.hs
[...]
./dist-newstyle/build/x86_64-linux/ghc-9.6.4/swarm-0.5.0.0/l/swarm-lang/noopt/build/swarm-lang/autogen/PackageInfo_swarm.hs
./dist-newstyle/build/x86_64-linux/ghc-9.6.4/swarm-0.5.0.0/l/swarm-lang/noopt/build/swarm-lang/autogen/Paths_swarm.hs
[...]
./app/doc/Main.hs
./app/tournament/Main.hs
[...]
./.stack-work/dist/x86_64-linux-tinfo6/ghc-9.6.4/build/swarm-tournament/autogen/PackageInfo_swarm.hs
./.stack-work/dist/x86_64-linux-tinfo6/ghc-9.6.4/build/swarm-tournament/autogen/Paths_swarm.hs
[...]
whereas these could be excluded easily if all of the code lived underneath a single code
directory:
$ find code -name *.hs