aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add exported interface for running build-toolsDaniel Gröber2019-09-171-58/+92
|
* Introduce Package abstractonDaniel Gröber2019-09-171-41/+78
| | | | | After lamenting the fact that we don't have this in the docs I figured it really ought to be an exposed abstraction.
* Remove crusty old helper codeDaniel Gröber2019-09-171-8/+15
| | | | | | | | | | | | - 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-172-16/+10
| | | | | We cannot always assume `takeDirectory cfg_file` will be the project source directory!
* Refactor ProjType to be more inductiveDaniel Gröber2019-09-171-0/+1
| | | | This allows discriminating Stack vs. Cabal at the type level more easily.
* Allow passing override-env to process functionsDaniel Gröber2019-09-171-9/+13
| | | | | 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-171-11/+6
| | | | | We need to support passing down the path to ghc to new-build/stack in order to support using a non-default 'ghc' executable.
* Flesh out project discovery APIDaniel Gröber2019-09-172-23/+49
|
* Update API docs of main typesDaniel Gröber2019-09-171-7/+15
|
* Split SProjType along build-tool lineDaniel Gröber2019-09-172-16/+18
| | | | | | | 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-172-5/+5
|
* Start implementing Distribution.Helper.DiscoverZubin Duggal2019-09-171-2/+36
|
* Revert compilerVersion being project-scopeDaniel Gröber2019-05-271-6/+1
| | | | | 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-1/+2
|
* Fix getHelper ignoring withProgs environmentDaniel Gröber2019-04-011-4/+1
|
* Add ProjLocV1Dir for easier forward portingDaniel Gröber2019-04-011-7/+9
|
* Expose missing ChLibraryName in public APIDaniel Gröber2019-04-011-0/+1
|
* Make compilerVersion accessor project-scope for V1 projectsDaniel Gröber2019-04-011-9/+21
|
* Add skeleton for project discovery functionalityDaniel Gröber2019-03-311-0/+41
|
* Improve export list order for docsDaniel Gröber2019-03-311-1/+2
|
* Fix missing CompPrograms exportDaniel Gröber2019-03-311-1/+2
|
* Promote 'Ex' to exported APIDaniel Gröber2019-03-311-0/+1
| | | | We will need it for the project discovery module later.
* docsDaniel Gröber2019-03-291-5/+12
|
* Add demoteSProjTypeDaniel Gröber2019-02-111-0/+1
|
* Shortcut helper compilation when Cabal version is already availableDaniel Gröber2019-02-091-20/+29
| | | | | This is mostly an optimization for Nix which already sets up the environment correctly, so we should reward its users :)
* Add log-level to verbosity conditionalDaniel Gröber2019-01-301-6/+10
|
* Fix ghc-pkg guessing logic when using v2-installDaniel Gröber2019-01-301-5/+7
|
* Fix getHelperExe not using correct stack programsLuke Lau2019-01-261-39/+42
| | | | | In turn fixes errors when building cabal-helper exe for stack projects where the resolver uses a different ghc version than system.
* Add support and test coverage for mulit-pkg projectsDaniel Gröber2019-01-261-39/+67
|
* CommentsDaniel Gröber2019-01-221-5/+4
| | | | [ci skip]
* Reintroduce type conventions: s/proj_type/pt/ s/cache/c/Daniel Gröber2019-01-221-0/+15
|
* Fix warningDaniel Gröber2019-01-221-1/+1
|
* Add 'uComponentName' queryDaniel Gröber2019-01-221-0/+1
|
* Add helper compilation time to debug outputDaniel Gröber2019-01-221-0/+7
|
* Refactor Compile (for v2-install)Daniel Gröber2019-01-221-10/+14
|
* Move Shared.Sandbox module to Compiletime.Daniel Gröber2019-01-221-3/+3
|
* Implement `compilerVersion`Daniel Gröber2019-01-221-15/+26
|
* Rename helper command: s/compiler-version/compiler-id/Daniel Gröber2019-01-221-2/+2
|
* Include package.yaml in Unit modification times for Stack projectsDaniel Gröber2019-01-221-10/+18
|
* Allow v2-build projects to not have a cabal.project fileDaniel Gröber2019-01-221-12/+6
|
* s/v2-build/new-build/Daniel Gröber2019-01-221-1/+1
|
* Implement behaviour for cabal new-* (#61)Sebastian Wild2019-01-221-12/+15
| | | | | Add list of components to Unit data type to handle v2 based builds per cabal unit.
* Fix getProjConfModTime: allow missing *.project.{local,freeze} filesDaniel Gröber2018-10-271-3/+10
|
* Split up Compile.hs into multiple modulesDaniel Gröber2018-10-271-58/+4
|
* Add some commentsDaniel Gröber2018-10-271-1/+7
|
* Whitespace changesDaniel Gröber2018-10-271-2/+2
|
* Suport using Stack's built-in GHC to build the helperDaniel Gröber2018-10-271-49/+35
|
* Refactor Unit handlingDaniel Gröber2018-10-271-190/+226
|
* Add package-id unit-queryDaniel Gröber2018-10-271-4/+5
|
* Remove unused importDaniel Gröber2018-10-271-1/+0
|