aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove crusty old helper codeDaniel Gröber2019-09-174-343/+42
| | | | | | | | | | | | - Inplace component inlining really always was a nasty cludge, now that we have proper build-system support we can get rid of it. - GHC options subsets aren't really needed, we can split these up after parsing the options using the ghc library. - Dropped GHC 7.10, it seems unsupportable without the inplace component inlining, possibly a Stack/lib:Cabal bug, but it is quite old so time for it to go anyway. This is the second thing commit it was holing up too!
* Fix ProjLoc to source directory correspondenceDaniel Gröber2019-09-171-1/+11
| | | | | We cannot always assume `takeDirectory cfg_file` will be the project source directory!
* Refactor ProjType to be more inductiveDaniel Gröber2019-09-172-22/+30
| | | | This allows discriminating Stack vs. Cabal at the type level more easily.
* Allow passing override-env to process functionsDaniel Gröber2019-09-176-27/+43
| | | | | Unfortunately we need this to pass a custom GHC executable path to stack, since it doesn't have an option to override it on the commandline (yet?).
* Merge CompPrograms back into ProgramsDaniel Gröber2019-09-174-34/+23
| | | | | We need to support passing down the path to ghc to new-build/stack in order to support using a non-default 'ghc' executable.
* Add TODO about user-ghc-environment supportDaniel Gröber2019-09-171-0/+5
|
* Flesh out project discovery APIDaniel Gröber2019-09-173-31/+14
|
* Fix some warningsDaniel Gröber2019-09-174-8/+8
| | | | | | | | | I'm turning off -Wunused-imports in the modules that have to deal with ancient Cabal versions because maintaining warning cleanlyness really is quite pointless when you have to deal with all sorts of deprecations and stuff moving around. I don't think having too many imports will ever break anything there unless the modules really get deprecated and removed, but we'll notice that ;)
* Update API docs of main typesDaniel Gröber2019-09-171-27/+93
|
* Split SProjType along build-tool lineDaniel Gröber2019-09-171-22/+37
| | | | | | | This makes it much easier to deal with differences between the build tools as we can now have functions that only make sense for Cabal and statically enforce this by passing a 'SCabalProjType pt' as evidence that $pt \in {V1, V2}$.
* Support cabal-file not being in pkgdir with cabal-v1Daniel Gröber2019-09-171-3/+3
|
* Fix RelativePath invariantsDaniel Gröber2019-09-171-6/+22
| | | | | | | | | | Two things were broken here: - I forgot to encode the invariant that RealtivePath should not be allowed to escape CWD by using '../' - The invaiant was inverted. A RelativePath was only allowed to be absolute before -- uups.
* Start implementing Distribution.Helper.DiscoverZubin Duggal2019-09-171-0/+26
|
* Fix Cabal HEADZubin Duggal2019-07-291-4/+1
|
* Fix redundant case warningDaniel Gröber2019-06-191-1/+0
|
* Revert compilerVersion being project-scopeDaniel Gröber2019-05-271-2/+4
| | | | | Turns out the Setup header has the compiler version used to build Setup, not the version the project is configured to use.
* Fix QueryEnv not being compatible with ExDaniel Gröber2019-05-051-2/+1
|
* Fix Haddock parse errorDaniel Gröber2019-05-021-2/+2
|
* Add ProjLocV1Dir for easier forward portingDaniel Gröber2019-04-011-2/+8
|
* Make compilerVersion accessor project-scope for V1 projectsDaniel Gröber2019-04-014-24/+62
|
* Fix datecode padding in unpackCabalHEADDaniel Gröber2019-04-011-1/+2
|
* Don't insist on an odd major version in unpackCabalHEADDaniel Gröber2019-04-011-3/+4
| | | | Super-major version bumps like Cabal-2.5.0.0 -> Cabal-3.0.0.0 violate that rule.
* Fix replaceVersionDecl for Cabal HEADDaniel Gröber2019-03-311-1/+3
| | | | It breaks when there's a `cabal-version:` delaration in the file.
* Promote 'Ex' to exported APIDaniel Gröber2019-03-311-1/+29
| | | | We will need it for the project discovery module later.
* Bestow installCabalLibV2 with the message blubDaniel Gröber2019-03-291-13/+19
|
* docsDaniel Gröber2019-03-292-9/+20
|
* Add accessor for ChModuleName newtypeDaniel Gröber2019-03-291-1/+1
|
* Fix indentDaniel Gröber2019-02-141-1/+1
| | | | [ci skip]
* Sync with Cabal HEADDaniel Gröber2019-02-141-2/+1
|
* Fix empty package-db being interpreted as "existing"Daniel Gröber2019-02-141-0/+1
|
* Make Cabal-HEAD lib v2-build cachableDaniel Gröber2019-02-144-37/+92
|
* Some helper compilation test coverage commentsDaniel Gröber2019-02-111-0/+2
| | | | [ci skip]
* Add demoteSProjTypeDaniel Gröber2019-02-111-0/+5
|
* docsDaniel Gröber2019-02-111-0/+1
| | | | [ci skip]
* helper: Make 'version' comand part of the normal parsing logicDaniel Gröber2019-02-101-7/+3
|
* Shortcut helper compilation when Cabal version is already availableDaniel Gröber2019-02-094-795/+820
| | | | | This is mostly an optimization for Nix which already sets up the environment correctly, so we should reward its users :)
* Sync with Cabal HEADDaniel Gröber2019-02-091-1/+1
|
* Fix module descriptionDaniel Gröber2019-01-301-1/+1
| | | | [ci skip]
* Add log-level to verbosity conditionalDaniel Gröber2019-01-303-10/+12
|
* Fix ghc-pkg guessing logic when using v2-installDaniel Gröber2019-01-301-1/+1
|
* Fix SomeException swallowing in compileWithCabalV2GhcEnvDaniel Gröber2019-01-301-2/+2
|
* compile: v2-install --libs needs GHC >=8.0Daniel Gröber2019-01-262-0/+2
|
* Fix getHelperExe not using correct stack programsLuke Lau2019-01-261-4/+4
| | | | | In turn fixes errors when building cabal-helper exe for stack projects where the resolver uses a different ghc version than system.
* Add Stack version check for `stack ide packages --cabal-file`Daniel Gröber2019-01-262-4/+38
|
* Add support and test coverage for mulit-pkg projectsDaniel Gröber2019-01-263-49/+105
|
* Fix package-envs conflicting with -package flagsDaniel Gröber2019-01-221-5/+8
|
* Fix ciSourceDirs commentaryDaniel Gröber2019-01-221-2/+4
| | | | [ci skip]
* Fix cabal-file path for multi package v2 projectsDaniel Gröber2019-01-221-1/+1
|
* CommentsDaniel Gröber2019-01-222-22/+26
| | | | [ci skip]
* CopyeditingDaniel Gröber2019-01-222-3/+3
| | | | [skip ci]