Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juhp/system-cabal
Prefer system Haskell packages for building .cabal projects
https://github.com/juhp/system-cabal
Last synced: about 1 month ago
JSON representation
Prefer system Haskell packages for building .cabal projects
- Host: GitHub
- URL: https://github.com/juhp/system-cabal
- Owner: juhp
- License: bsd-3-clause
- Created: 2021-08-12T11:10:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-02T18:06:40.000Z (4 months ago)
- Last Synced: 2024-10-31T14:06:09.204Z (3 months ago)
- Language: Haskell
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# system-cabal
A small Haskell build tool over the Cabal library,
which tries to use v1 commands when possible otherwise it falls back to v2.
Unlike cabal-install, it can also be run from a project subdirectory.`$ scbl --version`
```
0.1.0
````$ scbl --help`
```
system-cabal package build toolUsage: scbl [--version] COMMAND
Use system Haskell library to build Haskell packages
Available options:
-h,--help Show this help text
--version Show versionAvailable commands:
config Configure a package
configure alias for config
build Build a package
run Run a package
install Install a package
test Test a package
haddock Build documentation
repl Run interpreter
clean clean dist/
help Cabal help output
```## Usage
`scbl config` runs `Setup configure --user --prefix=~/.local`.If dependencies are available in the system, then
`scbl build` and `scbl install` will initialize building by
running `Setup configure` if `dist/` does not exist,
and then run `Setup build`.
Further `scbl install` also runs `Setup install`.Otherwise a v2 build will be done.
## Limitations
Currently projects can only be built from their source tree directly,
eventually downloading source from Hackage may be supported.