Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc7b52f0

Browse files
committed
feat: make return type of Except.throw polymorphic
1 parentcf21292 commitc7b52f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/Control/Eff/Except.purs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ type Except es r = (except :: ExceptF es | r)
3636
tag =Proxy::Proxy"except"
3737

3838
throw
39-
::foralltagesesr
39+
::foralltagesesra
4040
.Row.Constageses
4141
=>IsSymboltag
4242
=>Proxytag
4343
->e
44-
->Eff (Exceptes +r)Unit
44+
->Eff (Exceptes +r)a
4545
throw ptag error =Eff.unsafeMkFromAff (throwError (foreign_mkCustomError { tag: reflectSymbol ptag, value: error }))
4646

4747
catch
@@ -75,7 +75,7 @@ note
7575
->Maybea
7676
->Eff (Exceptes +r)a
7777
note ptag error =case _of
78-
Nothing->map unsafeCoerce (throw ptag error)
78+
Nothing-> throw ptag error
7979
Just x-> pure x
8080

8181
rethrow
@@ -86,7 +86,7 @@ rethrow
8686
->Eitherea
8787
->Eff (Exceptes +r)a
8888
rethrow ptag =case _of
89-
Left error->map unsafeCoerce (throw ptag error)
89+
Left error-> throw ptag error
9090
Right x-> pure x
9191

9292
run::forallr.Eff (Except () +r) ~>Effr

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp