Skip to content

Commit 82156fe

Browse files
committed
initialize stack template
1 parent 3c10d00 commit 82156fe

File tree

6 files changed

+135
-0
lines changed

6 files changed

+135
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Created by https://www.gitignore.io/api/haskell
2+
3+
### Haskell ###
4+
dist
5+
dist-*
6+
cabal-dev
7+
*.o
8+
*.hi
9+
*.chi
10+
*.chs.h
11+
*.dyn_o
12+
*.dyn_hi
13+
.hpc
14+
.hsenv
15+
.cabal-sandbox/
16+
cabal.sandbox.config
17+
*.prof
18+
*.aux
19+
*.hp
20+
*.eventlog
21+
.stack-work/
22+
cabal.project.local
23+
.HTF/
24+
25+
# End of https://www.gitignore.io/api/haskell

.stylish-haskell.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
columns: 100
3+
language_extensions:
4+
- DataKinds
5+
- DeriveDataTypeable
6+
- DeriveFunctor
7+
- DeriveGeneric
8+
- ExistentialQuantification
9+
- FlexibleContexts
10+
- GADTs
11+
- GeneralizedNewtypeDeriving
12+
- MultiParamTypeClasses
13+
- OverloadedStrings
14+
- RecordWildCards
15+
- ScopedTypeVariables
16+
- TupleSections
17+
- TypeOperators
18+
steps:
19+
- simple_align:
20+
cases: true
21+
top_level_patterns: true
22+
records: true
23+
24+
- imports:
25+
align: global
26+
list_align: after_alias
27+
pad_module_names: true
28+
long_list_align: inline
29+
empty_list_align: inherit
30+
list_padding: 4
31+
separate_lists: true
32+
space_surround: false
33+
34+
- language_pragmas:
35+
style: vertical
36+
align: true
37+
remove_redundant: true
38+
39+
- trailing_whitespace: {}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Chordify
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Setup.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import Distribution.Simple
2+
main = defaultMain

currency-codes.cabal

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: currency-codes
2+
version: 1.0.0.0
3+
description: Representation of currencies according to the ISO-4217 standard
4+
license: MIT
5+
license-file: LICENSE
6+
author: Chordify
7+
maintainer: Matthias Benkort <[email protected]>
8+
copyright: (c) 2017 Chordify
9+
category: Data
10+
build-type: Simple
11+
homepage: https://gitlab.com
12+
bug-reports: https://github.com/bos/aeson/issues
13+
extra-source-files: README.md
14+
cabal-version: >=1.10
15+
16+
library
17+
hs-source-dirs: src
18+
default-language: Haskell2010
19+
ghc-options: -Wall -Werror -j4 -O2
20+
default-extensions: DataKinds
21+
, DeriveDataTypeable
22+
, DeriveFunctor
23+
, DeriveGeneric
24+
, ExistentialQuantification
25+
, FlexibleContexts
26+
, GADTs
27+
, GeneralizedNewtypeDeriving
28+
, MultiParamTypeClasses
29+
, OverloadedStrings
30+
, RecordWildCards
31+
, ScopedTypeVariables
32+
, TupleSections
33+
, TypeOperators
34+
build-depends: base >= 4.7 && < 5
35+
, aeson
36+
, bson
37+
, lens
38+
, random
39+
, safe
40+
, swagger2
41+
, text
42+
exposed-modules: Data.Currency

stack.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
resolver: lts-9.1
2+
packages:
3+
- '.'
4+
extra-deps: []
5+
flags: {}
6+
extra-package-dbs: []

0 commit comments

Comments
 (0)