<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">How does this proposal compare to <a href="https://github.com/abarbu/ghc-proposals/blob/master/proposals/0000-defaulting-plugins.rst" class="">https://github.com/abarbu/ghc-proposals/blob/master/proposals/0000-defaulting-plugins.rst</a> ? That alternative proposal was ruled "out of scope", because it describes a plugin interface, which is out of scope of this committee. But I think it's a viable alternative to Mario's proposal here, and appears to be more powerful (although more difficult to use). I'm worried that the "out of scope" label derailed the plugins proposal, as I do not believe that further work on that idea (even though it's already implemented!) has been pursued.<div class=""><br class=""></div><div class="">Richard<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 18, 2021, at 10:11 PM, Eric Seidel <<a href="mailto:eric@seidel.io" class="">eric@seidel.io</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi all,<br class=""><br class="">Mario has proposed a handful of language extensions around type defaulting.<br class=""><br class="">1. NamedDefaults: this extension simply allows specifying the class to default, instead of it always being Num (or a handful of other hardcoded classes if one enables ExtendedDefaultRules). The rule only applies to the current module, as usual.<br class=""><br class="">2. ExportedDefaults: this extension allows exporting defaulting rules.<br class=""><br class="">3. ImportedDefaults: this extension makes import declarations pull in defaulting rules implicitly, like class instances.<br class=""><br class="">Extensions (2) and (3) work together to provide a mechanism for sharing sets of defaulting rules across modules. It is possible to import conflicting sets of defaulting rules from different modules, in that case the conflict must be resolved manually by the importing module, with a new defaulting rule.<br class=""><br class="">My recommendation is that we<br class=""><br class="">* Accept extension (1), as it is a clear improvement over the status quo and can stand on its own.<br class=""><br class="">* Reject (without prejudice) extensions (2) and (3). These extensions bring considerable extra complexity and another orphan-like mechanism. There's an open question here of whether defaulting rules should be globally coherent like type classes, or if they're something different; the discussion has arguments for both sides. I'm not sure, and so I recommend we don't commit ourselves one way or the other for now. <br class=""><br class="">Please take a look at the proposal.<br class=""><br class="">Discussion: <a href="https://github.com/ghc-proposals/ghc-proposals/pull/409" class="">https://github.com/ghc-proposals/ghc-proposals/pull/409</a><br class="">Proposal: <a href="https://github.com/blamario/ghc-proposals/blob/exportable-named-default/proposals/0000-exportable-named-default.rst" class="">https://github.com/blamario/ghc-proposals/blob/exportable-named-default/proposals/0000-exportable-named-default.rst</a><br class=""><br class="">Eric<br class=""><br class="">On Sun, Apr 4, 2021, at 06:34, Joachim Breitner wrote:<br class=""><blockquote type="cite" class="">Dear Committe,<br class=""><br class="">Exportable named defaults<br class="">has been proposed by Mario<br class=""><a href="https://github.com/ghc-proposals/ghc-proposals/pull/409" class="">https://github.com/ghc-proposals/ghc-proposals/pull/409</a><br class="">https://github.com/blamario/ghc-proposals/blob/exportable-named-default/proposals/0000-exportable-named-default.rst<br class=""><br class="">I propose Eric as the Shepherd.<br class=""><br class="">This did not gather a lot of attention on Github, or rather none, so<br class="">Eric, maybe also consider whether this needs to be advertised more, or<br class="">maybe who should be pointed to it.<br class=""><br class="">Please guide us to a conclusion as outlined in <br class="">https://github.com/ghc-proposals/ghc-proposals#committee-process<br class=""><br class="">Thanks,<br class="">Joachim<br class="">-- <br class="">-- <br class="">Joachim Breitner<br class=""> mail@joachim-breitner.de<br class=""> http://www.joachim-breitner.de/<br class=""><br class=""><br class="">_______________________________________________<br class="">ghc-steering-committee mailing list<br class="">ghc-steering-committee@haskell.org<br class="">https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee<br class=""><br class=""></blockquote>_______________________________________________<br class="">ghc-steering-committee mailing list<br class=""><a href="mailto:ghc-steering-committee@haskell.org" class="">ghc-steering-committee@haskell.org</a><br class="">https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee<br class=""></div></div></blockquote></div><br class=""></div></body></html>