Skip to content

Add hls-cabal-project-plugin for cabal.project file support #4548

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 1 commit into
base: master
Choose a base branch
from

Conversation

GirishDewangan06
Copy link

Description

This PR adds a new plugin hls-cabal-project-plugin that provides language server support for cabal.project files. The plugin is designed to enhance the Haskell Language Server's capabilities by providing specialized support for project configuration files.

Features

  • Basic plugin structure and configuration
  • Support for parsing and validating cabal.project files
  • Integration with the main HLS plugin system

Future Enhancements

The plugin is structured to support future additions of:

  • Completions for keywords, file paths, and enum values
  • Diagnostics for syntax errors and invalid configurations
  • Syntax highlighting for cabal.project files

Testing

  • Basic plugin structure has been tested
  • Integration with HLS plugin system verified

Related Issues

This implementation addresses the need for better support of cabal.project files in HLS, similar to the existing support for .cabal files.

@GirishDewangan06 GirishDewangan06 requested a review from fendor as a code owner April 6, 2025 19:39
@fendor fendor requested a review from VeryMilkyJoe April 7, 2025 07:11
@fendor
Copy link
Collaborator

fendor commented Apr 8, 2025

Hi, thank you for your PR!

I presume this is a Draft PR, and you should mark it as such :)

@fendor fendor marked this pull request as draft April 8, 2025 14:28
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.

2 participants