Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix some warnings | Daniel Gröber | 2019-09-17 | 1 | -2/+0 |
| | |||||
* | Update some code docs | Daniel Gröber | 2019-09-17 | 1 | -3/+2 |
| | |||||
* | Implement cabal v2 backpack unit workaround | Daniel Gröber | 2019-09-17 | 1 | -1/+5 |
| | | | | See https://github.com/haskell/cabal/issues/6201 for details about the bug | ||||
* | Make caching more fine grained | Daniel Gröber | 2019-09-17 | 1 | -102/+191 |
| | | | | | | | | | | | | | | | | | Previously we only had a cache for the project info and each unit info. However adding support for passing overridden compiler paths to build tools introduces a nasty data dependency: to fully configure 'Program's we (used to) need ProjInfo which needs an already configured 'Programs' in readProjInfo (ugh). After at least four failed attempts at untangling this I arrived at this solution. Simply splitting up the caches into some smaller parts does the trick and as a side product forced me to add an abstraction for the caching logic so as to not reapeat myself even more. Relatedly runQuery is not just a field accessor anymore but actualy does some IO of itself to manage the cache and make already configured 'Program's available to the rest of the library. | ||||
* | Export qeCallProcess | Daniel Gröber | 2019-09-17 | 1 | -0/+1 |
| | | | | Seems to have been missed when it was added. | ||||
* | Add verbose logging support for readProcess calls | Daniel Gröber | 2019-09-17 | 1 | -10/+3 |
| | |||||
* | Break cycle between 'Package' and 'Unit' | Daniel Gröber | 2019-09-17 | 1 | -1/+1 |
| | |||||
* | Add exported interface for running build-tools | Daniel Gröber | 2019-09-17 | 1 | -58/+92 |
| | |||||
* | Introduce Package abstracton | Daniel Gröber | 2019-09-17 | 1 | -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 code | Daniel Gröber | 2019-09-17 | 1 | -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 correspondence | Daniel Gröber | 2019-09-17 | 1 | -13/+7 |
| | | | | | We cannot always assume `takeDirectory cfg_file` will be the project source directory! | ||||
* | Refactor ProjType to be more inductive | Daniel Gröber | 2019-09-17 | 1 | -0/+1 |
| | | | | This allows discriminating Stack vs. Cabal at the type level more easily. | ||||
* | Allow passing override-env to process functions | Daniel Gröber | 2019-09-17 | 1 | -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 Programs | Daniel Gröber | 2019-09-17 | 1 | -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 API | Daniel Gröber | 2019-09-17 | 1 | -1/+1 |
| | |||||
* | Update API docs of main types | Daniel Gröber | 2019-09-17 | 1 | -7/+15 |
| | |||||
* | Split SProjType along build-tool line | Daniel Gröber | 2019-09-17 | 1 | -12/+14 |
| | | | | | | | 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-v1 | Daniel Gröber | 2019-09-17 | 1 | -3/+3 |
| | |||||
* | Revert compilerVersion being project-scope | Daniel Gröber | 2019-05-27 | 1 | -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 Ex | Daniel Gröber | 2019-05-05 | 1 | -1/+2 |
| | |||||
* | Fix getHelper ignoring withProgs environment | Daniel Gröber | 2019-04-01 | 1 | -4/+1 |
| | |||||
* | Add ProjLocV1Dir for easier forward porting | Daniel Gröber | 2019-04-01 | 1 | -7/+9 |
| | |||||
* | Expose missing ChLibraryName in public API | Daniel Gröber | 2019-04-01 | 1 | -0/+1 |
| | |||||
* | Make compilerVersion accessor project-scope for V1 projects | Daniel Gröber | 2019-04-01 | 1 | -9/+21 |
| | |||||
* | Improve export list order for docs | Daniel Gröber | 2019-03-31 | 1 | -1/+2 |
| | |||||
* | Fix missing CompPrograms export | Daniel Gröber | 2019-03-31 | 1 | -1/+2 |
| | |||||
* | Promote 'Ex' to exported API | Daniel Gröber | 2019-03-31 | 1 | -0/+1 |
| | | | | We will need it for the project discovery module later. | ||||
* | docs | Daniel Gröber | 2019-03-29 | 1 | -5/+12 |
| | |||||
* | Add demoteSProjType | Daniel Gröber | 2019-02-11 | 1 | -0/+1 |
| | |||||
* | Shortcut helper compilation when Cabal version is already available | Daniel Gröber | 2019-02-09 | 1 | -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 conditional | Daniel Gröber | 2019-01-30 | 1 | -6/+10 |
| | |||||
* | Fix ghc-pkg guessing logic when using v2-install | Daniel Gröber | 2019-01-30 | 1 | -5/+7 |
| | |||||
* | Fix getHelperExe not using correct stack programs | Luke Lau | 2019-01-26 | 1 | -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 projects | Daniel Gröber | 2019-01-26 | 1 | -39/+67 |
| | |||||
* | Comments | Daniel Gröber | 2019-01-22 | 1 | -5/+4 |
| | | | | [ci skip] | ||||
* | Reintroduce type conventions: s/proj_type/pt/ s/cache/c/ | Daniel Gröber | 2019-01-22 | 1 | -0/+15 |
| | |||||
* | Fix warning | Daniel Gröber | 2019-01-22 | 1 | -1/+1 |
| | |||||
* | Add 'uComponentName' query | Daniel Gröber | 2019-01-22 | 1 | -0/+1 |
| | |||||
* | Add helper compilation time to debug output | Daniel Gröber | 2019-01-22 | 1 | -0/+7 |
| | |||||
* | Refactor Compile (for v2-install) | Daniel Gröber | 2019-01-22 | 1 | -10/+14 |
| | |||||
* | Move Shared.Sandbox module to Compiletime. | Daniel Gröber | 2019-01-22 | 1 | -3/+3 |
| | |||||
* | Implement `compilerVersion` | Daniel Gröber | 2019-01-22 | 1 | -15/+26 |
| | |||||
* | Rename helper command: s/compiler-version/compiler-id/ | Daniel Gröber | 2019-01-22 | 1 | -2/+2 |
| | |||||
* | Include package.yaml in Unit modification times for Stack projects | Daniel Gröber | 2019-01-22 | 1 | -10/+18 |
| | |||||
* | Allow v2-build projects to not have a cabal.project file | Daniel Gröber | 2019-01-22 | 1 | -12/+6 |
| | |||||
* | s/v2-build/new-build/ | Daniel Gröber | 2019-01-22 | 1 | -1/+1 |
| | |||||
* | Implement behaviour for cabal new-* (#61) | Sebastian Wild | 2019-01-22 | 1 | -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} files | Daniel Gröber | 2018-10-27 | 1 | -3/+10 |
| | |||||
* | Split up Compile.hs into multiple modules | Daniel Gröber | 2018-10-27 | 1 | -58/+4 |
| | |||||
* | Add some comments | Daniel Gröber | 2018-10-27 | 1 | -1/+7 |
| |