Skip to content
This repository has been 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
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

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

@@ -87,6 +87,7 @@ getPackageDbStack = do
getCabalPackageDbStack
StackProject ->
getStackPackageDbStack
ExplicitProject -> return []
Copy link
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
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.

None yet

2 participants