8000 Allow tabs as indentation by artemisSystem · Pull Request #4580 · purescript/purescript · GitHub
[go: up one dir, main page]

Skip to content

Allow tabs as indentation #4580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

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
0