Skip to content

Conversation

@artemisSystem
Copy link

@artemisSystem artemisSystem commented Jun 13, 2025

Description of the change

Allow tabs as indentation in purescript source files. Implemented as suggested by @rhendric in this comment. Only difference is that i didn't add HDelta|VDelta, i added PosDelta, which is as VDelta was described. I found it redundant to have a HDelta when that could instead be represented as a "VDelta" with 0 lines and 0 tabs.

I was unsure about the usage of ! and UNPACK pragmas in data declarations, so let me know if any of those should be done differently.

Marked as draft because i have not implemented tests yet, but the code itself is ready for review.

Closes #3939


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)

@artemisSystem
Copy link
Author

For a quick test, i cloned purescript-lists and used vscode to change the indentation to tabs. After doing that for all the files, it still compiled just fine.

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.

Proposal: Allow U+0009 in source files

1 participant