-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.lhs
82 lines (56 loc) · 1.87 KB
/
README.lhs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# haskell-library-template
[![Hackage](https://img.shields.io/hackage/v/haskell-library-template.svg?style=flat)](https://hackage.haskell.org/package/haskell-library-template)
[![Stackage Nightly](http://stackage.org/package/haskell-library-template/badge/nightly)](http://stackage.org/nightly/package/haskell-library-template)
[![Stackage LTS](http://stackage.org/package/haskell-library-template/badge/lts)](http://stackage.org/lts/package/haskell-library-template)
[![CI](https://github.com/freckle/haskell-library-template/actions/workflows/ci.yml/badge.svg)](https://github.com/freckle/haskell-library-template/actions/workflows/ci.yml)
_Synopsis_
## Example
<!--
```haskell
module Main (main) where
import Prelude
import Text.Markdown.Unlit ()
```
-->
```haskell
someExample :: IO ()
someExample = putStrLn "Hello world"
```
<!--
```haskell
main :: IO ()
main = someExample
```
-->
## Development & Tests
```console
stack build --fast --pedantic --test --file-watch
```
---
## How to use this Template
Haskell library template used at Freckle.
### Create your repo
```sh
gh repo create --template freckle/haskell-library-template --public freckle/<name>
git clone git@github.com:freckle/<name>
cd ./<name>
```
### Rename your package
```sh
find -type f -exec \
sed -i s/haskell-library-template/my-name/ {} +
```
Edit `package.yaml` as necessary.
### Enable release
When you are ready to release your library, simply remove the conditional from
the release workflow.
```diff
- - if: false # Remove when ready to release
```
### Open repo up to [hacktoberfest][hacktoberfest] contributions
Add the `hacktoberfest` topic to your repo if
- you're planning on releasing it as open source, and
- you think it would benefit from and be amenable to public contributions
[hacktoberfest]: https://hacktoberfest.digitalocean.com/
---
[CHANGELOG](./CHANGELOG.md) | [LICENSE](./LICENSE)