Skip to content
New issue

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

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

Already on GitHub? # to your account

helix: reenable haskell syntax highlighting support #152279

Closed
wants to merge 1 commit into from

Conversation

414owen
Copy link
Contributor

@414owen 414owen commented Dec 26, 2021

Haskell syntax highlighting is disabled in helix-editor by default.
This is because of an issue compiling tree-sitter-haskell on M1 macs,
as its default compilier doesn't support c++14.
As we're using a nix-derived toolchain, we shouldn't be subject to
this problem.

See this comment for more info.

Motivation for this change
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

Haskell syntax highlighting is disabled in `helix-editor` by default.
This is because of an issue compiling tree-sitter-haskell on M1 macs,
as its default compiler doesn't support c++14.
As we're using a nix-derived toolchain, we shouldn't be subject to
this problem.

See [this comment](helix-editor/helix#1384 (comment))
for more info.
@0x4A6F
Copy link
Member

0x4A6F commented Jan 2, 2022

Should the default language.toml be also patched to enable haskell-highlighting?
Otherwise everyone has to populate ~/.config/helix/language.toml with uncommented haskell block.
What about reverting helix-editor/helix@59f94d1 instead?

I'd like at least a successful test report from aarch64-darwin.

@414owen
Copy link
Contributor Author

414owen commented Jan 11, 2022

Closing in favour of reenabling Haskell support upstream: helix-editor/helix#1417

Unfortunately, the change didn't make it into 0.6.0, but maybe we'll get a minor release soon enough.

@414owen 414owen closed this Jan 11, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants