Logs: liberachat/#haskell
| 2021-08-21 22:30:49 | × | Guest2130 quits (~Guest21@2a02:8109:a080:6368:d5d2:328b:373c:5b57) (Quit: Client closed) |
| 2021-08-21 22:36:39 | → | Lycurgus joins (~juan@cpe-45-46-140-49.buffalo.res.rr.com) |
| 2021-08-21 22:39:36 | → | derelict joins (~derelict@user/derelict) |
| 2021-08-21 22:40:24 | → | lavaman joins (~lavaman@98.38.249.169) |
| 2021-08-21 22:43:27 | <Lycurgus> | leitz, this title https://www.amazon.com/Software-development-rigorous-approach-Jones/dp/0138218846 occured to me after our exchange earlier |
| 2021-08-21 22:43:41 | <Lycurgus> | as it's on the pile of books I'm discarding |
| 2021-08-21 22:44:29 | <Lycurgus> | it does predate the current situation where FB has split into more or less non communication magistries |
| 2021-08-21 22:44:38 | <Lycurgus> | and is about FP |
| 2021-08-21 22:44:46 | × | derelict quits (~derelict@user/derelict) (Quit: WeeChat 3.2) |
| 2021-08-21 22:44:49 | × | lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 248 seconds) |
| 2021-08-21 22:45:32 | <Lycurgus> | s/non communication/contending/ |
| 2021-08-21 22:47:04 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-08-21 22:47:24 | <Lycurgus> | s/FB/FP/ |
| 2021-08-21 22:48:31 | × | haasn quits (~nand@haasn.dev) (Quit: ZNC 1.7.5+deb4 - https://znc.in) |
| 2021-08-21 22:48:54 | → | haasn joins (~nand@haasn.dev) |
| 2021-08-21 22:49:57 | → | xff0x joins (~xff0x@2001:1a81:5267:2d00:60:bdd1:fa4d:cbd0) |
| 2021-08-21 22:55:40 | × | severen quits (~severen@202.36.179.72) (Ping timeout: 252 seconds) |
| 2021-08-21 22:56:09 | → | shapr joins (~user@pool-100-36-247-68.washdc.fios.verizon.net) |
| 2021-08-21 22:58:23 | → | raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 2021-08-21 23:11:04 | × | pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Ping timeout: 252 seconds) |
| 2021-08-21 23:12:41 | × | Lycurgus quits (~juan@cpe-45-46-140-49.buffalo.res.rr.com) (Quit: Exeunt) |
| 2021-08-21 23:14:54 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 250 seconds) |
| 2021-08-21 23:15:46 | × | wroathe quits (~wroathe@96-88-30-181-static.hfc.comcastbusiness.net) (Ping timeout: 250 seconds) |
| 2021-08-21 23:21:24 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 250 seconds) |
| 2021-08-21 23:22:30 | × | xlei quits (znc@pool-68-129-84-118.nycmny.fios.verizon.net) (Quit: ZNC - https://znc.in) |
| 2021-08-21 23:25:42 | → | derelict joins (~derelict@user/derelict) |
| 2021-08-21 23:26:45 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 2021-08-21 23:26:45 | × | gentauro quits (~gentauro@user/gentauro) (Read error: Connection reset by peer) |
| 2021-08-21 23:27:15 | → | gentauro joins (~gentauro@user/gentauro) |
| 2021-08-21 23:27:25 | → | raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 2021-08-21 23:30:27 | → | lavaman joins (~lavaman@98.38.249.169) |
| 2021-08-21 23:31:02 | → | markpythonicbtc joins (~textual@2601:647:5a00:35:ed7b:d29e:3bfe:71d0) |
| 2021-08-21 23:31:08 | → | xlei joins (znc@pool-68-129-84-118.nycmny.fios.verizon.net) |
| 2021-08-21 23:38:01 | → | fresheyeball joins (~fresheyeb@c-71-237-105-37.hsd1.co.comcast.net) |
| 2021-08-21 23:38:06 | <fresheyeball> | I have a build that dies saying I have missing-home-modules |
| 2021-08-21 23:38:11 | <fresheyeball> | but I have them in my cabal file! |
| 2021-08-21 23:39:59 | <sm> | so you say.. you know what we're gonna ask.. |
| 2021-08-21 23:41:06 | <sm> | let's see it, etc. Maybe they're not in all the right places ? |
| 2021-08-21 23:41:31 | <monochrom> | No rectification without 3rd-party reproduction. |
| 2021-08-21 23:41:43 | <fresheyeball> | sec |
| 2021-08-21 23:41:50 | <fresheyeball> | http://ix.io/3wCL |
| 2021-08-21 23:42:06 | <sm> | I'm sorry sir or madam but we have strict procedures in these cases, our hands our tied, if only we could help.. oh, damn |
| 2021-08-21 23:42:26 | <fresheyeball> | http://ix.io/3wCM |
| 2021-08-21 23:42:36 | <fresheyeball> | ok so there is the build output and the cabal file |
| 2021-08-21 23:42:44 | <fresheyeball> | These modules are needed for compilation but not listed in your .cabal file's other-modules: |
| 2021-08-21 23:42:45 | <fresheyeball> | Ageto.Types.Login Ageto.Types.LoginSpec |
| 2021-08-21 23:42:53 | <fresheyeball> | you can clearly see there are present in the cabal file for unit |
| 2021-08-21 23:43:18 | × | xff0x quits (~xff0x@2001:1a81:5267:2d00:60:bdd1:fa4d:cbd0) (Ping timeout: 258 seconds) |
| 2021-08-21 23:43:32 | <sm> | they are needed for some of the other components, perhaps ? |
| 2021-08-21 23:43:38 | <fresheyeball> | yes |
| 2021-08-21 23:43:45 | <sm> | executable 'client' |
| 2021-08-21 23:43:45 | <fresheyeball> | all of them |
| 2021-08-21 23:43:55 | <fresheyeball> | client is not failing though |
| 2021-08-21 23:44:03 | <fresheyeball> | only the test suite is having this problem |
| 2021-08-21 23:44:04 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Ping timeout: 252 seconds) |
| 2021-08-21 23:44:33 | → | geekosaur joins (~geekosaur@xmonad/geekosaur) |
| 2021-08-21 23:44:40 | <sm> | hmm, yes |
| 2021-08-21 23:46:06 | <sm> | check for weird whitespace/unicode chars ? |
| 2021-08-21 23:46:10 | × | vysn quits (~vysn@user/vysn) (Ping timeout: 240 seconds) |
| 2021-08-21 23:46:23 | <sm> | sure it's using this copy of the cabal file ? |
| 2021-08-21 23:46:31 | <fresheyeball> | sm yes |
| 2021-08-21 23:46:58 | <sclv> | this often happens if the src directories are shared between different stanzas |
| 2021-08-21 23:47:13 | × | Guest4623 quits (~Guest46@182.64.179.3) (Quit: Client closed) |
| 2021-08-21 23:47:14 | <sclv> | like if your test stanza is using your /src just like your lib stanza is |
| 2021-08-21 23:47:18 | <sm> | LoginSpec doesn't seem to be exposed by the library ? |
| 2021-08-21 23:47:55 | <sm> | but listen to sclv, not me |
| 2021-08-21 23:48:01 | <sclv> | yeah, this layout is wrong |
| 2021-08-21 23:48:11 | <sclv> | no component should share the source dir with the lib component |
| 2021-08-21 23:48:33 | <fresheyeball> | sm: sure but it's in lib |
| 2021-08-21 23:48:35 | <sclv> | otherwise when it compiles Foo.Test and that imports Foo.Lib.Thing it _won't_ get it from the lib component, it'll pick it up from the source dir |
| 2021-08-21 23:48:40 | <sclv> | and then you get that error! |
| 2021-08-21 23:48:45 | <fresheyeball> | btw it compiles fine inside the nix-shell |
| 2021-08-21 23:49:13 | <sm> | this is an old foot gun with cabal, isn't it ? I wonder how it could be prevented |
| 2021-08-21 23:49:38 | <sclv> | yeah, its a classic problem. i think we reworked cabal init so it creates projects with test suites setup that don't have this issue |
| 2021-08-21 23:49:40 | <fresheyeball> | I don't get it |
| 2021-08-21 23:49:41 | <sclv> | to guide people away from it |
| 2021-08-21 23:49:51 | <sclv> | ok, suppose you have LibModule and TestModule |
| 2021-08-21 23:49:57 | <sclv> | and now TestModule imports LibModule |
| 2021-08-21 23:49:57 | <fresheyeball> | ok |
| 2021-08-21 23:50:05 | <fresheyeball> | yes |
| 2021-08-21 23:50:07 | <sclv> | it could either pick it up from the _compiled library component_ |
| 2021-08-21 23:50:20 | <fresheyeball> | I don't have the library as a build-depends though |
| 2021-08-21 23:50:22 | <fresheyeball> | to avoid that |
| 2021-08-21 23:50:22 | <sclv> | _or_ it could notice that LibModule.hs is in your /src directory, which your tests also include |
| 2021-08-21 23:50:40 | <sclv> | ok, but you _are_ importing its modules into your tests? |
| 2021-08-21 23:51:04 | <fresheyeball> | yes |
| 2021-08-21 23:51:11 | <fresheyeball> | but just by shared hs-source-dirs |
| 2021-08-21 23:51:56 | <fresheyeball> | either way this error message is horrible |
| 2021-08-21 23:52:08 | → | dajoer joins (~david@user/gvx) |
| 2021-08-21 23:52:31 | <sclv> | ah |
| 2021-08-21 23:53:20 | → | kissofthedeath joins (~fedorafan@user/fedorafan) |
| 2021-08-21 23:53:42 | ← | kissofthedeath parts (~fedorafan@user/fedorafan) (Textual IRC Client: www.textualapp.com) |
| 2021-08-21 23:54:39 | <sclv> | right, ghc throws the error, and its doing it because somehow those modules aren't making their way to it. i don't have any better ideas. i'll note that you're only erroring out instead of getting a warning because you're explicitly calling -Werror, so you can fix that at least. *shrug* |
| 2021-08-21 23:55:03 | × | enoq quits (~enoq@2a05:1141:1f5:5600:b9c9:721a:599:bfe7) (Quit: enoq) |
| 2021-08-21 23:55:05 | <fresheyeball> | sclv: what is the point of other-modules? |
| 2021-08-21 23:55:09 | <sclv> | running with verbosity will show you the erroring ghc call |
| 2021-08-21 23:55:15 | <fresheyeball> | can I just ignore missing-home-modules |
| 2021-08-21 23:55:17 | <sclv> | the point is exactly how you're using it. |
| 2021-08-21 23:55:20 | <fresheyeball> | its a ton to maintain in the cabal file |
| 2021-08-21 23:55:26 | <fresheyeball> | I wish it was automatic |
All times are in UTC.