Skip to content

Commit 5207a9a

Browse files
Run CI on push / pull_request to master
1 parent caf63a8 commit 5207a9a

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI
22

3-
on: push
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
48

59
jobs:
610
build:

README.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
# purescript-numbers
2-
[![Latest release](http://img.shields.io/github/release/sharkdp/purescript-numbers.svg)](https://github.com/sharkdp/purescript-numbers/releases)
3-
[![Build status](https://github.com/purescript/purescript-numbers/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-numbers/actions?query=workflow%3ACI+branch%3Amaster)
2+
3+
[![Latest release](http://img.shields.io/github/release/purescript/purescript-prelude.svg)](https://github.com/purescript/purescript-prelude/releases)
4+
[![Build status](https://github.com/purescript/purescript-prelude/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-prelude/actions?query=workflow%3ACI+branch%3Amaster)
5+
[![Pursuit](https://pursuit.purescript.org/packages/purescript-prelude/badge)](https://pursuit.purescript.org/packages/purescript-prelude)
46

57
Utility functions for working with PureScripts builtin `Number` type.
68

7-
* [**Module documentation on Pursuit**](http://pursuit.purescript.org/packages/purescript-numbers).
9+
## Installation
10+
11+
```
12+
spago install numbers
13+
```
814

915
## Examples
1016

1117
Parsing:
12-
``` purs
18+
19+
```purs
1320
> fromString "12.34"
1421
(Just 12.34)
1522
@@ -18,7 +25,8 @@ Parsing:
1825
```
1926

2027
Formatting (`Data.Number.Format`):
21-
``` purs
28+
29+
```purs
2230
> let x = 1234.56789
2331
2432
> toStringWith (precision 6) x
@@ -32,27 +40,25 @@ Formatting (`Data.Number.Format`):
3240
```
3341

3442
Approximate comparisons (`Data.Number.Approximate`):
35-
``` purs
43+
44+
```purs
3645
> 0.1 + 0.2 == 0.3
3746
false
3847
3948
> 0.1 + 0.2 ≅ 0.3
4049
true
4150
```
4251

43-
*NaN* and *infinity*:
44-
``` purs
52+
_NaN_ and _infinity_:
53+
54+
```purs
4555
> isNaN (Math.asin 2.0)
4656
true
4757
4858
> isFinite (1.0 / 0.0)
4959
false
5060
```
5161

52-
## Installation
53-
54-
```
55-
spago install numbers
56-
```
57-
62+
## Documentation
5863

64+
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-numbers).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"devDependencies": {
99
"pulp": "^15.0.0",
1010
"purescript-psa": "^0.8.0",
11-
"rimraf": "^2.6.1"
11+
"rimraf": "^3.0.2"
1212
}
1313
}

0 commit comments

Comments
 (0)