Skip to content

revise error handling, also some control flow adjustments#7

Merged
yomimono merged 1 commit intomirage:masterfrom
hannesm:network-error
Oct 20, 2016
Merged

revise error handling, also some control flow adjustments#7
yomimono merged 1 commit intomirage:masterfrom
hannesm:network-error

Conversation

@hannesm
Copy link
Copy Markdown
Member

@hannesm hannesm commented Oct 6, 2016

@mato
Copy link
Copy Markdown
Contributor

mato commented Oct 12, 2016

@hannesm This doesn't build for me with mirage-dev either, where is the V1.Network supposed to come from? Perhaps make this change without removing the stats types, which I gather is what you're trying to get out of V1.Network?

@hannesm
Copy link
Copy Markdown
Member Author

hannesm commented Oct 12, 2016

@mato this branch is supposed to work with my network-error branch of mirage-dev (https://github.com/hannesm/mirage-dev/tree/network-error) (see also mirage/mirage#615). The goal was a) centralise error definition and pretty printer b) use result instead of polymorphic variants, and only c) see what else we can unify. stats (and useful functions, defined in mirage-net-xen) are excellent candidates.

The pretty printer and Network implementation are provided by mirage-types (and mirage-types.lwt for lwt stuff). I'd first wait for more comments on mirage/mirage-dev#166 before merging

@hannesm
Copy link
Copy Markdown
Member Author

hannesm commented Oct 12, 2016

and there is no implementation of V1.Network, but there is M_pp (https://github.com/mirage/mirage/pull/615/files#diff-89c249e40b9ec2e680b59376182e9eb4), which provides a pp_network_error. This module dance is done to avoid having to provide a V1.ml (which would be a lot of copy & pasting of types).

@yomimono
Copy link
Copy Markdown
Contributor

@mato any objections to merging this?

@mato
Copy link
Copy Markdown
Contributor

mato commented Oct 20, 2016

@yomimono Last I checked the dependencies for this were not merged in mirage/mirage-types, see @hannesm comments above.

@yomimono
Copy link
Copy Markdown
Contributor

@mato I'm merging them now, any other objections?

@mato
Copy link
Copy Markdown
Contributor

mato commented Oct 20, 2016

@yomimono Nope, LGTM.

@yomimono
Copy link
Copy Markdown
Contributor

Thanks @mato!

@yomimono yomimono merged commit 59a911e into mirage:master Oct 20, 2016
@hannesm hannesm deleted the network-error branch October 20, 2016 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants