Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ New features:
Bugfixes:

Other improvements:
- Ensure all directly-imported packages are included in the `spago.dhall` file (#205 by @ptrfrncsmrph)

## [v6.0.0](https://github.com/purescript-contrib/purescript-aff/releases/tag/v6.0.0) - 2021-02-26

Expand Down
31 changes: 17 additions & 14 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,22 @@
"package.json"
],
"dependencies": {
"purescript-datetime": "^5.0.0",
"purescript-effect": "^3.0.0",
"purescript-exceptions": "^5.0.0",
"purescript-functions": "^5.0.0",
"purescript-parallel": "^5.0.0",
"purescript-transformers": "^5.0.0",
"purescript-unsafe-coerce": "^5.0.0"
},
"devDependencies": {
"purescript-assert": "^5.0.0",
"purescript-console": "^5.0.0",
"purescript-free": "^6.0.0",
"purescript-minibench": "^3.0.0",
"purescript-partial": "^3.0.0"
"purescript-arrays": "^v6.0.0",
"purescript-bifunctors": "^v5.0.0",
"purescript-control": "^v5.0.0",
"purescript-datetime": "^v5.0.0",
"purescript-effect": "^v3.0.0",
"purescript-either": "^v5.0.0",
"purescript-exceptions": "^v5.0.0",
"purescript-foldable-traversable": "^v5.0.0",
"purescript-functions": "^v5.0.0",
"purescript-maybe": "^v5.0.0",
"purescript-newtype": "^v4.0.0",
"purescript-parallel": "^v5.0.0",
"purescript-prelude": "^v5.0.0",
"purescript-refs": "^v5.0.0",
"purescript-tailrec": "^v5.0.0",
"purescript-transformers": "^v5.0.0",
"purescript-unsafe-coerce": "^v5.0.0"
}
}
13 changes: 11 additions & 2 deletions spago.dhall
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
{ name = "aff"
, dependencies =
[ "assert"
[ "arrays"
, "assert"
, "bifunctors"
, "console"
, "control"
, "datetime"
, "effect"
, "either"
, "exceptions"
, "free"
, "foldable-traversable"
, "functions"
, "maybe"
, "minibench"
, "newtype"
, "parallel"
, "partial"
, "prelude"
, "psci-support"
, "refs"
, "tailrec"
, "transformers"
, "unsafe-coerce"
]
Expand Down
8 changes: 4 additions & 4 deletions test/Test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ test_delay = assert "delay" do
test_fork ∷ Aff Unit
test_fork = assert "fork" do
ref ← newRef ""
fiber ← forkAff do
_ ← forkAff do
delay (Milliseconds 10.0)
modifyRef ref (_ <> "child")
_ ← modifyRef ref (_ <> "go")
Expand Down Expand Up @@ -287,7 +287,7 @@ test_kill_canceler ∷ Aff Unit
test_kill_canceler = assert "kill/canceler" do
ref ← newRef ""
fiber ← forkAff do
n ← makeAff \_ → pure $ Canceler \_ → do
_ ← makeAff \_ → pure $ Canceler \_ → do
delay (Milliseconds 20.0)
liftEffect (writeRef ref "cancel")
writeRef ref "done"
Expand Down Expand Up @@ -626,7 +626,7 @@ test_efffn = assert "efffn" do
action = do
effectDelay (Milliseconds 10.0)
void $ modifyRef ref (_ <> "done")
f1 ← forkAff action
_ ← forkAff action
f2 ← forkAff action
killFiber (error "Nope.") f2
delay (Milliseconds 20.0)
Expand Down Expand Up @@ -695,7 +695,7 @@ test_regression_bracket_catch_cleanup = assert "regression/bracket-catch-cleanup

test_regression_kill_sync_async ∷ Aff Unit
test_regression_kill_sync_async = assert "regression/kill-sync-async" do
ref ← newRef ""
_ ← newRef ""
f1 ← forkAff $ makeAff \k -> k (Left (error "Boom.")) *> mempty
killFiber (error "Nope.") f1
pure true
Expand Down