[Haskell-cafe] Files and Modules

julian getcontented.com.au julian at getcontented.com.au
Tue Dec 3 00:50:22 UTC 2024


If I understand your comment properly, using ropes wouldn’t help much because the duplication is duplication in individual Texts (ie think of it as manually inlining a function definition because importing is too much hassle), not any issue with duplicated fragments of Texts taking up too much space in memory when loaded. (They sit “at rest” in S3 at the moment, but really they can be thought of as just IO Text values)

On 3 Dec 2024, at 2:10 AM, Brandon Allbery <allbery.b at gmail.com> wrote:

On Mon, Dec 2, 2024 at 9:22 AM julian getcontented.com.au<http://getcontented.com.au/> <julian at getcontented.com.au<mailto:julian at getcontented.com.au>> wrote:
But to go back to what you were saying, if we had the ability to decouple modules from files it would mean I could set up a notion of dependency between the modules that I have stored in Texts in such a way that I wouldn’t need to repeat code between the Texts when I want to share code as I’m compiling chunks of it. At the moment I try hard to keep the set of common items shared between all the code I have because it makes it simpler to manage and keeps duplication low, and it also means the call to stack that I have only has to include a small set of packages and can be common between all the combined sets of code I have.

I wonder if an alternative would be a rope type with shareable strands.

--
brandon s allbery kf8nh
allbery.b at gmail.com<mailto:allbery.b at gmail.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20241203/85b9cf9b/attachment.html>


More information about the Haskell-Cafe mailing list