Skip to content
This repository was archived by the owner on Apr 25, 2020. It is now read-only.

Add an ExplicitProject constructor, which reads options from a file#585

Open
alang9 wants to merge 5 commits intoDanielG:masterfrom
alang9:master
Open

Add an ExplicitProject constructor, which reads options from a file#585
alang9 wants to merge 5 commits intoDanielG:masterfrom
alang9:master

Conversation

@alang9
Copy link
Copy Markdown
Contributor

@alang9 alang9 commented Sep 9, 2015

In the absence of a cabal config, cabal sandbox, or stack config, a ghc-mod.options file allows us to define a project root, and options to pass to ghc. This is useful for projects with custom build systems.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you'll have to parse the options, filtering out the --package-db/--package-conf stuff to fill this in otherwise half of the autocompletetion related commands aren't going to work.

@DanielG
Copy link
Copy Markdown
Owner

DanielG commented Sep 9, 2015

Also some tests covering at least the check, type, modules, find and doc commands would be nice.

@alang9 alang9 force-pushed the master branch 3 times, most recently from 6c50c63 to 20ba0bf Compare September 18, 2015 05:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants