[Haskell-cafe] Are explicit exports and local imports desirable in a production application?
lemming at henning-thielemann.de
Wed Sep 16 17:56:47 UTC 2020
On Wed, 16 Sep 2020, Ignat Insarov wrote:
> So, the notion of internal libraries amounts to an even stronger
> argument in favour of eschewing explicit exports, at least in the case
> we consider. Am I reading your implication correctly?
You need explicit exports in the public interface, in my example module
> As for qualified imports, I also follow this practice and I think it
> is most readable, given that the qualifications are words and not just
> letters — alas, using single letter qualifications, such as `T.pack`
> for `Data.Text.pack`, is common.
Yes, I prefer Text.pack and Map.union etc.
More information about the Haskell-Cafe