chore: build wflint against uniworx as a library

This commit is contained in:
Gregor Kleen 2020-12-06 18:16:39 +01:00
parent e5efc285e2
commit 12c9513f96
2 changed files with 16 additions and 3 deletions

View File

@ -305,12 +305,16 @@ executables:
main: WFLint.hs
ghc-options:
- -main-is WFLint
source-dirs: [wflint, src]
dependencies:
- base
- uniworx
- bytestring
- yaml
other-modules: []
source-dirs: wflint
when:
- condition: flag(library-only)
buildable: false
- condition: '!flag(dev)'
buildable: false
# Test suite
tests:

9
wflint.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en .stack-work.lock "$0" "$@" || :
stack build --fast --flag uniworx:-library-only --flag uniworx:dev
stack exec uniworx-wflint -- $@