FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow tabs as indentation by artemisSystem · Pull Request #4580 · purescript/purescript · GitHub

Allow tabs as indentation - #4580

Draft
artemisSystem wants to merge 2 commits into
purescript:masterfrom
artemisSystem:master
Draft

Allow tabs as indentation#4580
artemisSystem wants to merge 2 commits into
purescript:masterfrom
artemisSystem:master

Conversation

artemisSystem commented Jun 13, 2025
edited
Loading

Copy link
Copy Markdown

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)

Copy link
Copy Markdown
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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL