<div dir="auto"><div dir="auto"><span style="font-family:sans-serif">"There is also the situation where the package name isn’t essential and</span><br style="font-family:sans-serif"><span style="font-family:sans-serif">shouldn’t get in the way when naming modules. For example, there are a</span><br style="font-family:sans-serif"><span style="font-family:sans-serif">lot of monad transformers in the world. The `transformers` package</span><br style="font-family:sans-serif"><span style="font-family:sans-serif">implements some of them; others are added by other packages. It is good</span><br style="font-family:sans-serif"><span style="font-family:sans-serif">if the module that implements a certain kind of monad transformer has a</span><br style="font-family:sans-serif"><span style="font-family:sans-serif">name of the form `Control.Monad.Trans.⟨type-of-</span><span style="font-family:sans-serif">transformer⟩`. Having the</span><br style="font-family:sans-serif"><span style="font-family:sans-serif">package name in the module name would be like revealing an</span><br style="font-family:sans-serif"><span style="font-family:sans-serif">implementation detail."</span><br></div><div dir="auto"><br></div><div>Not sure I agree that that is necessarily the case.</div><div dir="auto"><br></div><div dir="auto">Transformers.ExceptT</div><div dir="auto">Transformers.ReaderT</div><div dir="auto">These.ChronicleT</div><div dir="auto"><br></div><div dir="auto">This lets me know exactly where these transformers came from, just by reading the module name.</div><div dir="auto"><br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Tue, Jul 31, 2018, 8:44 AM Wolfgang Jeltsch <<a href="mailto:wolfgang-it@jeltsch.info">wolfgang-it@jeltsch.info</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Montag, den 30.07.2018, 15:03 -0400 schrieb David Menendez:<br>
> I think there are several ideas being discussed here, and it may be<br>
> helpful to distinguish them.<br>
> <br>
> 1. Two packages may unintentionally include modules with the same<br>
>    name, making it difficult to use both at once<br>
> 2. Module names should be organized in some logical manner<br>
> 3. A package may want to import a module without tying it to a <br>
>    specific package<br>
<br>
There is also the situation where the package name isn’t essential and<br>
shouldn’t get in the way when naming modules. For example, there are a<br>
lot of monad transformers in the world. The `transformers` package<br>
implements some of them; others are added by other packages. It is good<br>
if the module that implements a certain kind of monad transformer has a<br>
name of the form `Control.Monad.Trans.⟨type-of-transformer⟩`. Having the<br>
package name in the module name would be like revealing an<br>
implementation detail.<br>
<br>
All the best,<br>
Wolfgang<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank" rel="noreferrer">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div></div></div>