Skip to content

Conversation

@i-am-the-slime
Copy link
Contributor

@i-am-the-slime i-am-the-slime commented Jun 25, 2023

Adds the possibility to remove files from the globs passed to the compiler

Colocation means that we can keep related files close together in our file system.
So instead of recreating the whole module tree in a test folder it'd be possible to structure the project as such:

src/
  Foo/
    Bar.purs
    BarTest.purs

The motivation for supporting colocation can be followed here.

However, it's currently not possible to exclude globs from publishing. I've opened PRs to add this functionality to the new registry and spago.

Verity raised a good point, however, in that it should also be easy to pass only the files that shall be published to the compiler (for example to not include test dependencies).
This PR adds this possibility.

Note that this does not add a way to exclude globs from the IDE or PSCI, because I don't see the use case for it and wanted to keep the change small. It could also be added later.


Checklist:

  • Added a file to CHANGELOG.d for this PR (see CHANGELOG.d/README.md)
  • Added myself to CONTRIBUTORS.md (if this is my first contribution)
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

Copy link
Member

@rhendric rhendric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; I can certainly see the use for this.

@JordanMartinez
Copy link
Contributor

CI seems to be stalled due to the ARM64 CI.

@MonoidMusician
Copy link
Contributor

cc @f-f

@f-f
Copy link
Member

f-f commented Jun 28, 2023

Sorry I'm on holiday and I see this only now - fortunately I have a computer with me so I can ssh to the machine and see what's up..

@f-f
Copy link
Member

f-f commented Jul 3, 2023

The macos ARM64 runner disappeared from the configured runners so I had to reinstall it from scratch - not sure if anyone actively deleted it, but I'd ask to refrain from doing so if that was the case.

I restarted the build and everything is now back to green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants