Skip to content

Move src, test, and app directories into a code directory #2015

Open
@kostmo

Description

@kostmo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-Moderate EffortShould take a moderate amount of time to address.Z-Developer ExperienceThis issue seeks to make life easier for developers writing Scenarios or other Swarm code.Z-RefactoringThis issue is about restructuring the code without changing the behaviour to improve code quality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions