Skip to content

Commit edac79f

Browse files
committed
Stack-based build
1 parent 907de1d commit edac79f

File tree

8 files changed

+58
-40
lines changed

8 files changed

+58
-40
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ cabal.sandbox.config
1919
/.stack-work/
2020
/result
2121
/deps
22+
/stack.yaml
23+
/*.json
24+
/*.json.ib
25+
/*.json.bp

LICENSE

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Copyright John Ky (c) 2016
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
* Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
11+
* Redistributions in binary form must reproduce the above
12+
copyright notice, this list of conditions and the following
13+
disclaimer in the documentation and/or other materials provided
14+
with the distribution.
15+
16+
* Neither the name of Author name here nor the names of other
17+
contributors may be used to endorse or promote products derived
18+
from this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+19-34
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,25 @@
11
# hw-all
22
[![CircleCI](https://circleci.com/gh/haskell-works/hw-all.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-all)
33

4-
* hw-balancedparens
5-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-balancedparens/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-balancedparens/tree/0-branch)
6-
* hw-bits
7-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-bits/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-bits/tree/0-branch)
8-
* hw-conduit
9-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-conduit/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-conduit/tree/0-branch)
10-
* hw-diagnostics
11-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-diagnostics/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-diagnostics/tree/0-branch)
12-
* hw-eliasfano
13-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-eliasfano/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-eliasfano/tree/0-branch)
14-
* hw-excess
15-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-excess/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-excess/tree/0-branch)
16-
* hw-int
17-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-int/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-int/tree/0-branch)
18-
* hw-json
19-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-json/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-json/tree/0-branch)
20-
* hw-json-lens
21-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-json-lens/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-json-lens/tree/0-branch)
22-
* hw-mquery
23-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-mquery/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-mquery/tree/0-branch)
24-
* hw-parser
25-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-parser/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-parser/tree/0-branch)
26-
* hw-prim
27-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-prim/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-prim/tree/0-branch)
28-
* hw-rankselect
29-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-rankselect/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-rankselect/tree/0-branch)
30-
* hw-rankselect-base
31-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-rankselect-base/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-rankselect-base/tree/0-branch)
32-
* hw-string-parse
33-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-string-parse/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-string-parse/tree/0-branch)
34-
* hw-succinct
35-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-succinct/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-succinct/tree/0-branch)
36-
* hw-xml
37-
[![CircleCI](https://circleci.com/gh/haskell-works/hw-xml/tree/0-branch.svg?style=svg)](https://circleci.com/gh/haskell-works/hw-xml/tree/0-branch)
4+
| Project | Status |
5+
| --- | --- |
6+
| [hw-balancedparens ](https://github.com/haskell-works/hw-balancedparens ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-balancedparens/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-balancedparens/tree/0-branch )
7+
| [hw-bits ](https://github.com/haskell-works/hw-bits ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-bits/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-bits/tree/0-branch )
8+
| [hw-conduit ](https://github.com/haskell-works/hw-conduit ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-conduit/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-conduit/tree/0-branch )
9+
| [hw-diagnostics ](https://github.com/haskell-works/hw-diagnostics ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-diagnostics/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-diagnostics/tree/0-branch )
10+
| [hw-eliasfano ](https://github.com/haskell-works/hw-eliasfano ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-eliasfano/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-eliasfano/tree/0-branch )
11+
| [hw-excess ](https://github.com/haskell-works/hw-excess ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-excess/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-excess/tree/0-branch )
12+
| [hw-int ](https://github.com/haskell-works/hw-int ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-int/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-int/tree/0-branch )
13+
| [hw-json ](https://github.com/haskell-works/hw-json ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-json/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-json/tree/0-branch )
14+
| [hw-json-lens ](https://github.com/haskell-works/hw-json ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-json-lens/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-json-lens/tree/0-branch )
15+
| [hw-mquery ](https://github.com/haskell-works/hw-mquery ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-mquery/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-mquery/tree/0-branch )
16+
| [hw-parser ](https://github.com/haskell-works/hw-parser ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-parser/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-parser/tree/0-branch )
17+
| [hw-prim ](https://github.com/haskell-works/hw-prim ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-prim/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-prim/tree/0-branch )
18+
| [hw-rankselect ](https://github.com/haskell-works/hw-rankselect ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-rankselect/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-rankselect/tree/0-branch )
19+
| [hw-rankselect-base ](https://github.com/haskell-works/hw-rankselect ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-rankselect-base/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-rankselect-base/tree/0-branch )
20+
| [hw-string-parse ](https://github.com/haskell-works/hw-string ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-string-parse/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-string-parse/tree/0-branch )
21+
| [hw-succinct ](https://github.com/haskell-works/hw-succinct ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-succinct/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-succinct/tree/0-branch )
22+
| [hw-xml ](https://github.com/haskell-works/hw-xml ) | [![CircleCI](https://circleci.com/gh/haskell-works/hw-xml/tree/0-branch.svg?style=svg )](https://circleci.com/gh/haskell-works/hw-xml/tree/0-branch )
3823

3924

4025

circle.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
override:
99
- fetch
1010
- stack init --resolver lts-7.2
11-
- stack build
11+
- stack build --only-dependencies
1212

1313
test:
1414
override:
@@ -25,6 +25,4 @@ deployment:
2525
owner: haskell-works
2626
tag: /v.*/
2727
commands:
28-
- ./scripts/setup-cred
29-
- stack sdist
30-
- stack upload .
28+
- publish

hw-all.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cabal-version: >= 1.22
1515

1616
library
1717
hs-source-dirs: src
18-
exposed-modules: HaskellWorks.Data.Json.Demo
18+
exposed-modules: HaskellWorks
1919
build-depends: base >= 4 && < 5
2020
, aeson
2121
, array

scripts/fetch

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ projects() {
2121
}
2222

2323
for x in $(projects | sort | uniq); do
24-
stack unpack $x
24+
cabal unpack $x
2525
done
2626

2727
rm ./$_project.cabal

scripts/publish

100644100755
File mode changed.

src/HaskellWorks.hs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module HaskellWorks where

0 commit comments

Comments
 (0)