2024/11/12

Newest at the top

2024-11-12 13:06:33 +0100 <tomsmeding> bwe: yeah, the idea is that if you have a module A.B.C that you want to do this trick with, you split it in A.B.C and A.B.C.Internal
2024-11-12 13:06:07 +0100 <bwe> tomsmeding: okay, I've solved it with MyModule/Internal.hs and MyModule.hs as siblings in a folder.
2024-11-12 13:05:44 +0100lortabac(~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) lortabac
2024-11-12 13:03:32 +0100longlongdouble(~longlongd@117.234.59.239)
2024-11-12 13:02:43 +0100longlongdouble(~longlongd@117.234.59.239) (Read error: Connection reset by peer)
2024-11-12 13:02:11 +0100caconym(~caconym@user/caconym) caconym
2024-11-12 13:00:05 +0100caconym(~caconym@user/caconym) (Quit: bye)
2024-11-12 12:58:30 +0100ljdarj(~Thunderbi@user/ljdarj) ljdarj
2024-11-12 12:55:42 +0100JuanDaugherty(~juan@user/JuanDaugherty) JuanDaugherty
2024-11-12 12:53:15 +0100 <bwe> tomsmeding: how do I go about Internals of different files when they are in the same directory? new sub directory and keep them separate or may I lump them together?
2024-11-12 12:50:45 +0100longlongdouble(~longlongd@117.234.59.239)
2024-11-12 12:50:23 +0100longlongdouble(~longlongd@117.234.59.239) (Remote host closed the connection)
2024-11-12 12:44:20 +0100longlongdouble(~longlongd@117.234.59.239)
2024-11-12 12:43:35 +0100longlongdouble(~longlongd@117.234.59.239) (Read error: Connection reset by peer)
2024-11-12 12:43:06 +0100todi_awaytodi
2024-11-12 12:40:51 +0100kuribas(~user@2a02:1808:8c:1878:f2e0:c7f8:cbdc:6f5d) (Ping timeout: 265 seconds)
2024-11-12 12:40:10 +0100Square2(~Square@user/square) Square
2024-11-12 12:36:30 +0100longlongdouble(~longlongd@117.234.59.239)
2024-11-12 12:35:48 +0100longlongdouble(~longlongd@117.234.59.239) (Remote host closed the connection)
2024-11-12 12:34:22 +0100 <tomsmeding> I don't think conventions like these are explicitly documented anywhere
2024-11-12 12:34:06 +0100 <tomsmeding> ( https://haskell-haddock.readthedocs.io/latest/markup.html )
2024-11-12 12:34:04 +0100 <tomsmeding> bwe: for bonus points, put {-# OPTIONS_HADDOCK not-home #-} on the .Internal module so that the f1 and f2 documentation are actually shown in the haddocks for XYZ, not through a `module` subpage into XYZ.Internal
2024-11-12 12:33:09 +0100 <tomsmeding> yep
2024-11-12 12:30:40 +0100cyphase(~cyphase@user/cyphase) cyphase
2024-11-12 12:30:04 +0100 <bwe> tomsmeding: …and where are more of such conventions documented I since missed?
2024-11-12 12:29:40 +0100 <bwe> tomsmeding: so the real module is just reexporting the exports only, correct?
2024-11-12 12:29:02 +0100cyphase(~cyphase@user/cyphase) (Read error: Connection reset by peer)
2024-11-12 12:28:48 +0100longlongdouble(~longlongd@117.234.59.239)
2024-11-12 12:28:18 +0100longlongdouble(~longlongd@117.234.59.239) (Read error: Connection reset by peer)
2024-11-12 12:28:16 +0100 <tomsmeding> this has become convention
2024-11-12 12:28:04 +0100 <tomsmeding> bwe: rename your module to XYZ.Internal and just expose everything from there; then have `module XYZ (f1, f2) where import XYZ.Internal`
2024-11-12 12:27:39 +0100longlongdouble(~longlongd@117.234.59.239)
2024-11-12 12:27:32 +0100 <Alecs> Hi, quick question, do you know if there is already a proposal to add a zero quantity to -XLinearTypes? I've tried looking in the repo for proposal but the search feature on github sucks
2024-11-12 12:27:23 +0100longlongdouble(~longlongd@117.234.59.239) (Remote host closed the connection)
2024-11-12 12:27:22 +0100 <bwe> dedicated helpers module => existing module does not expose no unnecessary functions, while tests can import helpers? Or should I leave helpers in the module but put the tests in the module itself? What's your personal experience?
2024-11-12 12:27:16 +0100 <bwe> code organisation in modules: Since I've exported only exposed functions via `module XYZ (f1, f2) where`. That means no helper functions used by f1 and f2 defined in same module. Now I've created unit tests in test file, including for helpers. Now I need to export helper functions, too, from the module (to make the tests work). What's the right approach to organise my code? As a principle, any helpers in
2024-11-12 12:26:14 +0100Alecs(~textual@nat16.software.imdea.org) alecs
2024-11-12 12:10:11 +0100lortabac(~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Quit: WeeChat 4.4.2)
2024-11-12 12:09:31 +0100xff0x(~xff0x@2405:6580:b080:900:50c5:d80f:bb7d:df5c)
2024-11-12 12:06:23 +0100divya(~user@139.5.11.223) divya
2024-11-12 11:59:59 +0100longlongdouble(~longlongd@117.234.59.239)
2024-11-12 11:59:21 +0100longlongdouble(~longlongd@117.234.59.239) (Read error: Connection reset by peer)
2024-11-12 11:53:34 +0100longlongdouble(~longlongd@117.234.59.239)
2024-11-12 11:53:16 +0100longlongdouble(~longlongd@117.234.59.239) (Remote host closed the connection)
2024-11-12 11:44:36 +0100youthlic(~Thunderbi@user/youthlic) youthlic
2024-11-12 11:44:01 +0100tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
2024-11-12 11:43:11 +0100youthlic(~Thunderbi@user/youthlic) (Ping timeout: 255 seconds)
2024-11-12 11:42:53 +0100longlongdouble(~longlongd@117.234.59.239)
2024-11-12 11:42:02 +0100petrichor(~znc-user@user/petrichor) petrichor
2024-11-12 11:31:51 +0100longlongdouble(~longlongd@49.36.234.128) (Read error: Connection reset by peer)