-
Notifications
You must be signed in to change notification settings - Fork 92
Prepare for wasm #5229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Prepare for wasm #5229
Conversation
|
Could you add a cross compilation target to |
I don't now how to do it with |
6e8e624 to
b3a71a6
Compare
b3a71a6 to
9fc09c3
Compare
c5b9c58 to
c77fd5e
Compare
coot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor comments.
| #else | ||
| connectTo _ _ = error "connecTo not supported in wasm" | ||
| #endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You accidentally removed an empty line which delimits two definitions.
| #else | |
| connectTo _ _ = error "connecTo not supported in wasm" | |
| #endif | |
| #else | |
| connectTo _ _ = error "connecTo not supported in wasm" | |
| #endif | |
| --- This is primarily for testing purposes since it does not allow actual IPC. | ||
| --- | ||
| -- __Exceptions:__ | ||
| -- May throw 'IOError' when compiling to @wasm@. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| -- May throw 'IOError' when compiling to @wasm@. | |
| -- May throw 'IOError' when running on @wasm@. |
The original suggests that Template Haskell is used.
|
|
||
|
|
||
| -- | __Exceptions:__ | ||
| -- May throw 'IOError' when compiling to @wasm@. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| -- May throw 'IOError' when compiling to @wasm@. | |
| -- May throw 'IOError' when running on @wasm@. |
| -- 'Socket.ReuseAddr` and 'Socket.ReusePort'. | ||
| -- | ||
| -- __Exceptions:__ | ||
| -- May throw 'IOError' when compiling to @wasm@. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| -- May throw 'IOError' when compiling to @wasm@. | |
| -- May throw 'IOError' when running on @wasm@. |
| -- referenced by 'LocalSocket'. | ||
| -- | ||
| -- __Exceptions:__ | ||
| -- May throw 'IOError' when compiling to @wasm@. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| -- May throw 'IOError' when compiling to @wasm@. | |
| -- May throw 'IOError' when running on @wasm@. |
|
|
||
|
|
||
| -- | __Exceptions:__ | ||
| -- May throw 'IOError' when compiling to @wasm@. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| -- May throw 'IOError' when compiling to @wasm@. | |
| -- May throw 'IOError' when running on @wasm@. |
Description
This PR patches the parts of
ouroboros-networkthat make compilation fail forwasm. I have done two commits, because of the decision to undo removal of "deprecation warnings", in case we reconsider, but let's squash before merging.Checklist
Quality
Maintenance
ouroboros-networkproject.