Logs: liberachat/#haskell
| 2021-08-04 10:40:50 | <Rembane> | mastarija: That sounds like a very roundabout and potentially painful way of testing your code. |
| 2021-08-04 10:41:34 | <mastarija> | Why? I just add my library directory in the hs-source-dirs and load the modules |
| 2021-08-04 10:41:44 | <mastarija> | What are the drawbacks? |
| 2021-08-04 10:42:19 | <Rembane> | Mostly that I've never seen it done before, so my expertise ends here. Maybe someone else in this channel knows more about the tradeoffs? |
| 2021-08-04 10:43:44 | × | burnside_ quits (~burnsides@dhcp168-019.wadham.ox.ac.uk) (Remote host closed the connection) |
| 2021-08-04 10:44:08 | <thomasjm[m]> | mastarija: test code can certainly be included in tests only. but if they're truly internal modules, then your library needs access to them too right? |
| 2021-08-04 10:44:13 | → | burnsidesLlama joins (~burnsides@dhcp168-019.wadham.ox.ac.uk) |
| 2021-08-04 10:44:31 | <mastarija> | thomasjm[m], I plan to include the whole library code |
| 2021-08-04 10:44:39 | <mastarija> | not just Internal module |
| 2021-08-04 10:45:45 | <mastarija> | so instead of build-depends: hspec, mylib I just add "hs-source-dirs: tst, lib" |
| 2021-08-04 10:45:51 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 258 seconds) |
| 2021-08-04 10:45:51 | × | peterhil quits (~peterhil@mobile-access-5d6ace-52.dhcp.inet.fi) (Ping timeout: 258 seconds) |
| 2021-08-04 10:46:15 | <mastarija> | and include the library modules |
| 2021-08-04 10:47:03 | <mastarija> | Yeah... it works! |
| 2021-08-04 10:47:31 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-08-04 10:47:43 | <thomasjm[m]> | ah. only downside i can think off immediately is that those files probably won't be cached by stack/cabal, so will be built once for the tests and once for the lib |
| 2021-08-04 10:48:55 | × | burnsidesLlama quits (~burnsides@dhcp168-019.wadham.ox.ac.uk) (Ping timeout: 258 seconds) |
| 2021-08-04 10:49:06 | <thomasjm[m]> | and that you'd need to repeat the dependencies in the cabal/hpack file |
| 2021-08-04 10:49:39 | <amesgen[m]> | mastarija: you can use private internal libraries, which were added with this exact use case in mind: https://cabal.readthedocs.io/en/3.4/cabal-package.html#sublibs |
| 2021-08-04 10:49:51 | Kaipi | is now known as Kaiepi |
| 2021-08-04 10:50:01 | × | Kaiepi quits (~Kaiepi@156.34.44.192) (Quit: Leaving) |
| 2021-08-04 10:50:10 | <mastarija> | amesgen[m], ooo... that's nice |
| 2021-08-04 10:50:17 | → | Kaiepi joins (~Kaiepi@156.34.44.192) |
| 2021-08-04 10:52:42 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 240 seconds) |
| 2021-08-04 10:53:20 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-08-04 10:58:30 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 258 seconds) |
| 2021-08-04 10:59:01 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-08-04 10:59:16 | × | azeem quits (~azeem@176.200.220.247) (Ping timeout: 258 seconds) |
| 2021-08-04 10:59:34 | → | azeem joins (~azeem@176.200.220.247) |
| 2021-08-04 11:10:15 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 276 seconds) |
| 2021-08-04 11:10:36 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-08-04 11:19:56 | → | Morrow_ joins (~Morrow@147.161.13.123) |
| 2021-08-04 11:19:57 | × | oxide quits (~lambda@user/oxide) (Read error: Connection reset by peer) |
| 2021-08-04 11:19:58 | × | azeem quits (~azeem@176.200.220.247) (Ping timeout: 258 seconds) |
| 2021-08-04 11:21:56 | → | oxide joins (~lambda@user/oxide) |
| 2021-08-04 11:22:37 | → | azeem joins (~azeem@176.200.220.247) |
| 2021-08-04 11:25:28 | → | chris joins (~chris@81.96.113.213) |
| 2021-08-04 11:25:33 | chris | is now known as Guest8674 |
| 2021-08-04 11:26:07 | → | machinedgod joins (~machinedg@135-23-192-217.cpe.pppoe.ca) |
| 2021-08-04 11:29:30 | × | ccc quits (~ccc@dynamic-acs-24-112-153-241.zoominternet.net) (Remote host closed the connection) |
| 2021-08-04 11:30:34 | → | mc47 joins (~mc47@xmonad/TheMC47) |
| 2021-08-04 11:33:26 | × | wei2912 quits (~wei2912@112.199.250.21) (Quit: Lost terminal) |
| 2021-08-04 11:40:40 | × | azeem quits (~azeem@176.200.220.247) (Ping timeout: 258 seconds) |
| 2021-08-04 11:42:47 | → | burnsidesLlama joins (~burnsides@dhcp168-019.wadham.ox.ac.uk) |
| 2021-08-04 11:43:07 | → | azeem joins (~azeem@176.200.220.247) |
| 2021-08-04 11:44:24 | → | acidjnk_new joins (~acidjnk@p200300d0c72b9506d8c3ad3b1cac9477.dip0.t-ipconnect.de) |
| 2021-08-04 11:45:39 | × | burnsidesLlama quits (~burnsides@dhcp168-019.wadham.ox.ac.uk) (Remote host closed the connection) |
| 2021-08-04 11:47:28 | × | acidjnk_new3 quits (~acidjnk@p200300d0c72b9528d8c3ad3b1cac9477.dip0.t-ipconnect.de) (Ping timeout: 256 seconds) |
| 2021-08-04 11:50:38 | <lechner> | int-e: i didn't permutate. it simply conflicted with GHC, didn't it? |
| 2021-08-04 11:51:01 | × | mjs2600 quits (~mjs2600@c-24-91-3-49.hsd1.vt.comcast.net) (Ping timeout: 258 seconds) |
| 2021-08-04 11:52:10 | × | mastarija quits (~mastarija@31.217.9.205) (Ping timeout: 258 seconds) |
| 2021-08-04 11:52:15 | <lechner> | c_wraith: maybe hackage should be a distribution; is that why FP Complete made stackage? |
| 2021-08-04 11:53:02 | × | azeem quits (~azeem@176.200.220.247) (Ping timeout: 272 seconds) |
| 2021-08-04 11:53:15 | <hpc> | cabal's solver had some issues back in the day, so they made stack |
| 2021-08-04 11:53:23 | <hpc> | but stack needed a currated set of packages, which ended up being stackage |
| 2021-08-04 11:54:30 | <hpc> | https://cdsmith.wordpress.com/2011/01/17/the-butterfly-effect-in-cabal/ |
| 2021-08-04 11:54:40 | <lechner> | well, i am having some issues right now. how can i build emanote, please? |
| 2021-08-04 11:54:55 | → | arahael1 joins (~arahael@124.170.238.106) |
| 2021-08-04 11:55:53 | × | Arahael quits (~arahael@124-150-74-227.tpgi.com.au) (Ping timeout: 265 seconds) |
| 2021-08-04 11:55:57 | → | azeem joins (~azeem@176.200.220.247) |
| 2021-08-04 11:57:32 | × | drd quits (~drd@93-39-151-19.ip76.fastwebnet.it) (Ping timeout: 258 seconds) |
| 2021-08-04 11:58:15 | <hpc> | i missed a bunch of scrollback, but maybe try megaparsec 9.0.0? |
| 2021-08-04 11:58:39 | <hpc> | it looks like it was made "safe" in 9.0.1, so if you can't use newer scientific use older megaparsec? |
| 2021-08-04 12:00:54 | → | burnsidesLlama joins (~burnsides@dhcp168-019.wadham.ox.ac.uk) |
| 2021-08-04 12:01:24 | <hpc> | maybe post to https://github.com/mrkkrp/megaparsec/issues as well so they can fix their dependency version bounds |
| 2021-08-04 12:01:43 | <lechner> | hpc: thanks, that worked! |
| 2021-08-04 12:02:16 | <lechner> | hpc: is it really a problem in megaparsec? |
| 2021-08-04 12:02:21 | × | Morrow_ quits (~Morrow@147.161.13.123) (Ping timeout: 268 seconds) |
| 2021-08-04 12:02:55 | <hpc> | megaparsec added the safe haskell extension, which means (among other things) that module can only import other safe modules |
| 2021-08-04 12:02:58 | × | Obo quits (~roberto@70.pool90-171-81.dynamic.orange.es) (Ping timeout: 268 seconds) |
| 2021-08-04 12:03:21 | <hpc> | but the dependency constraints include versions of scientific that don't have the safe haskell extension on that module it's importing |
| 2021-08-04 12:05:45 | → | mikoto-chan joins (~mikoto-ch@ip-193-121-10-50.dsl.scarlet.be) |
| 2021-08-04 12:16:19 | × | azeem quits (~azeem@176.200.220.247) (Ping timeout: 258 seconds) |
| 2021-08-04 12:16:34 | → | azeem joins (~azeem@176.200.220.247) |
| 2021-08-04 12:18:05 | → | slavaqq joins (~Slava@sdmail.sdserver.cz) |
| 2021-08-04 12:18:16 | <merijn> | Once again confirming SafeHaskell is basically dead and pointless :p |
| 2021-08-04 12:19:30 | <dminuoso> | I really want SafeHaskell to be a thing. :( |
| 2021-08-04 12:20:09 | <merijn> | dminuoso: You know where to find the GHC gitlab ;) |
| 2021-08-04 12:20:21 | <dminuoso> | Someone wise once said: |
| 2021-08-04 12:20:31 | <dminuoso> | If you pay me to do this, Ill gladly make SafeHaskell more of a thing. |
| 2021-08-04 12:20:41 | <dminuoso> | Well not quite. But I adapted it for my purposes. |
| 2021-08-04 12:20:43 | <dminuoso> | :-) |
| 2021-08-04 12:22:24 | → | Morrow_ joins (~Morrow@bzq-110-168-31-106.red.bezeqint.net) |
| 2021-08-04 12:24:28 | → | peterhil joins (~peterhil@mobile-access-5d6ace-52.dhcp.inet.fi) |
| 2021-08-04 12:29:14 | × | burnsidesLlama quits (~burnsides@dhcp168-019.wadham.ox.ac.uk) (Remote host closed the connection) |
| 2021-08-04 12:37:23 | → | ubert joins (~Thunderbi@178.165.174.102.wireless.dyn.drei.com) |
| 2021-08-04 12:38:26 | × | PinealGlandOptic quits (~PinealGla@37.115.210.35) (Quit: leaving) |
| 2021-08-04 12:38:54 | → | Obo joins (~roberto@70.pool90-171-81.dynamic.orange.es) |
| 2021-08-04 12:39:19 | × | azeem quits (~azeem@176.200.220.247) (Ping timeout: 258 seconds) |
| 2021-08-04 12:39:43 | → | azeem joins (~azeem@176.200.220.247) |
| 2021-08-04 12:44:18 | × | azeem quits (~azeem@176.200.220.247) (Ping timeout: 258 seconds) |
| 2021-08-04 12:47:15 | → | azeem joins (~azeem@176.200.220.247) |
| 2021-08-04 12:48:02 | × | ubert quits (~Thunderbi@178.165.174.102.wireless.dyn.drei.com) (Ping timeout: 245 seconds) |
| 2021-08-04 12:48:09 | → | markpythonicbitc joins (~markpytho@50-254-150-41-static.hfc.comcastbusiness.net) |
| 2021-08-04 12:53:06 | × | jneira quits (~jneira@212.8.115.226) (Quit: Client closed) |
| 2021-08-04 12:54:28 | × | azeem quits (~azeem@176.200.220.247) (Ping timeout: 272 seconds) |
| 2021-08-04 12:58:08 | → | azeem joins (~azeem@176.200.220.247) |
| 2021-08-04 13:01:08 | → | alx741 joins (~alx741@181.196.69.121) |
| 2021-08-04 13:04:01 | × | hendursa1 quits (~weechat@user/hendursaga) (Quit: hendursa1) |
| 2021-08-04 13:04:33 | → | hendursaga joins (~weechat@user/hendursaga) |
All times are in UTC.