Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-04-09 11:07:06 <merijn> Martinsos: Ah, ok. In any case, an other alternative might be to have the library use Paths.Common (assuming they're common across multiple executables) and then using Paths in the executable
2021-04-09 11:07:36 <merijn> Martinsos: Then you could even do "module Paths (module Paths.Common) where ..." to re-export the Paths.Common from the library from your executable's Paths module
2021-04-09 11:08:14 <Martinsos> Ok hm, so basically adding .Common to the library's module
2021-04-09 11:08:42 <Martinsos> well ok, that is certainly a solution, although it doesn't seem as nice as saying something like "Paths from the library".
2021-04-09 11:08:54 <merijn> Martinsos: That's not something that always makes sense, but seems to fit here
2021-04-09 11:09:52 <Martinsos> Ok thanks, it is a solution!
2021-04-09 11:10:05 kiweun joins (~kiweun@2607:fea8:2a62:9600:44b0:26fb:363a:cb69)
2021-04-09 11:10:06 <Martinsos> And what about maybe wrapping everything into parent module
2021-04-09 11:10:28 <merijn> Martinsos: You can re-exports modules just fine
2021-04-09 11:10:55 <merijn> Martinsos: "module Foo (module Bar) where { import Bar }" will export everything from Bar as part of Foo
2021-04-09 11:10:56 <Martinsos> so for example, my executable, I actually call it cli -> I could add top folder named Cli and then it would be Cli.Paths, Cli.Something, ... -> is that common way of doing this? Then I don't have to worry about conflicts?
2021-04-09 11:11:12 <merijn> Martinsos: It's one way of doing things, yeah
2021-04-09 11:12:35 <Martinsos> re-exporting -> ok hm, I am still afraid of re-exprting for some reason, maybe I have to yet wrap my head around it. Feels weird to reexport things en-mass like that, why not imnport them directly from where they are defined?
2021-04-09 11:12:56 Pickchea joins (~private@unaffiliated/pickchea)
2021-04-09 11:13:04 minoru_shiraeesh joins (~shiraeesh@5.101.59.91)
2021-04-09 11:13:15 <Martinsos> I guess it is about defining some kind of interface?
2021-04-09 11:13:17 <merijn> Martinsos: Same reason we have a Prelude instead of importing map, fmap, and (+) explicitly :p
2021-04-09 11:13:34 <Martinsos> Hmmmm so ease of usage?
2021-04-09 11:13:39 <merijn> Martinsos: Think of it as creating a "custom, tiny, project-specific Prelude"
2021-04-09 11:13:59 <Martinsos> ok, makes sense
2021-04-09 11:14:17 <Martinsos> thanks again! You are always here when I get stuck, means a lot. Have a nice day!
2021-04-09 11:14:29 <merijn> I'm not a big fan of re-exporting modules in a public API, but defining 1 (or a few) internal modules, that re-export stuff you plan to use *everywhere* can make programming much nicer
2021-04-09 11:14:42 dariof4 joins (~dario@5.77.75.87)
2021-04-09 11:14:42 × kiweun quits (~kiweun@2607:fea8:2a62:9600:44b0:26fb:363a:cb69) (Ping timeout: 258 seconds)
2021-04-09 11:14:46 <Martinsos> Yes that does make sense
2021-04-09 11:17:47 × cole-h quits (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net) (Ping timeout: 268 seconds)
2021-04-09 11:24:18 × fiedlr quits (~fiedlr@83.148.33.254) (Remote host closed the connection)
2021-04-09 11:26:34 _ht joins (~quassel@82-169-194-8.biz.kpn.net)
2021-04-09 11:29:59 fiedlr joins (~fiedlr@83.148.33.254)
2021-04-09 11:30:12 urodna joins (~urodna@unaffiliated/urodna)
2021-04-09 11:30:58 × minoru_shiraeesh quits (~shiraeesh@5.101.59.91) (Ping timeout: 240 seconds)
2021-04-09 11:34:33 knupfer joins (~Thunderbi@200116b82b5a2d00e4cb1bb59fe59b68.dip.versatel-1u1.de)
2021-04-09 11:34:35 Alleria__ joins (~textual@zrcout.mskcc.org)
2021-04-09 11:41:08 waleee-cl joins (uid373333@gateway/web/irccloud.com/x-ljutfegkxznelovf)
2021-04-09 11:41:52 cdsmith joins (d055b565@208.85.181.101)
2021-04-09 11:46:33 rodriga joins (~quassel@134.204.25.66)
2021-04-09 11:46:45 machinedgod joins (~machinedg@135-23-192-217.cpe.pppoe.ca)
2021-04-09 11:46:56 __monty__ joins (~toonn@unaffiliated/toonn)
2021-04-09 11:47:04 solvr joins (57e3c46d@87.227.196.109)
2021-04-09 11:47:33 × Mrbuck quits (~Mrbuck@gateway/tor-sasl/mrbuck) (Ping timeout: 240 seconds)
2021-04-09 11:49:16 tanuki joins (~quassel@173.168.178.1)
2021-04-09 11:50:18 berberman joins (~berberman@unaffiliated/berberman)
2021-04-09 11:50:27 × berberman_ quits (~berberman@unaffiliated/berberman) (Ping timeout: 260 seconds)
2021-04-09 11:53:01 kritzefitz joins (~kritzefit@212.86.56.80)
2021-04-09 11:54:58 × justanotheruser quits (~justanoth@unaffiliated/justanotheruser) (Ping timeout: 246 seconds)
2021-04-09 11:56:33 Martinsos parts (~user@cpe-188-129-39-153.dynamic.amis.hr) ("ERC (IRC client for Emacs 27.1)")
2021-04-09 11:56:59 × xff0x quits (~xff0x@2001:1a81:5208:300:fffc:5363:c5ae:e521) (Ping timeout: 260 seconds)
2021-04-09 11:57:50 xff0x joins (~xff0x@2001:1a81:5208:300:be3a:69c6:5501:708a)
2021-04-09 12:05:02 adnanbad1hah joins (~kmab@27.147.234.200)
2021-04-09 12:05:11 <adnanbad1hah> hello
2021-04-09 12:05:39 <ski> hello
2021-04-09 12:06:45 adnanbadshah20 joins (1b93eac8@27.147.234.200)
2021-04-09 12:07:26 ski glances at adnanbadshah20
2021-04-09 12:07:45 × adnanbad1hah quits (~kmab@27.147.234.200) (Client Quit)
2021-04-09 12:07:48 kaction joins (~kaction@ppsr.interfacefinancial.com)
2021-04-09 12:08:18 × geowiesnot quits (~user@87-89-181-157.abo.bbox.fr) (Ping timeout: 246 seconds)
2021-04-09 12:10:06 × echoreply quits (~echoreply@unaffiliated/echoreply) (Ping timeout: 240 seconds)
2021-04-09 12:12:13 × cdsmith quits (d055b565@208.85.181.101) (Quit: Connection closed)
2021-04-09 12:16:41 geekosaur joins (82650c7a@130.101.12.122)
2021-04-09 12:17:45 × jneira quits (501e65b6@gateway/web/cgi-irc/kiwiirc.com/ip.80.30.101.182) (Ping timeout: 265 seconds)
2021-04-09 12:18:21 × star_cloud quits (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) (Ping timeout: 252 seconds)
2021-04-09 12:18:42 × adnanbadshah20 quits (1b93eac8@27.147.234.200) (Quit: Connection closed)
2021-04-09 12:19:06 × fiedlr quits (~fiedlr@83.148.33.254) (Remote host closed the connection)
2021-04-09 12:22:11 mmmattyx joins (uid17782@gateway/web/irccloud.com/x-axdubxgugfspqrfr)
2021-04-09 12:24:00 carlomagno joins (~cararell@148.87.23.13)
2021-04-09 12:25:30 drbean_ joins (~drbean@TC210-63-209-35.static.apol.com.tw)
2021-04-09 12:26:00 star_cloud joins (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com)
2021-04-09 12:30:41 renzhi joins (~renzhi@2607:fa49:653f:a800::4223)
2021-04-09 12:33:42 × kaction quits (~kaction@ppsr.interfacefinancial.com) (Ping timeout: 240 seconds)
2021-04-09 12:34:23 Babe69 joins (b7abb947@183.171.185.71)
2021-04-09 12:34:33 <Babe69> Hot Limited Item!!! https://www.ebay.com/itm/333952068836
2021-04-09 12:34:35 Babe69 parts (b7abb947@183.171.185.71) ()
2021-04-09 12:35:09 <maerwald> I have the feeling this might be scam
2021-04-09 12:35:56 <merijn> maerwald: :O
2021-04-09 12:36:00 <lotuseater> ehm wtf? :D
2021-04-09 12:36:29 <merijn> lotuseater: people trying to spam freenode is fairly frequent
2021-04-09 12:36:35 <lotuseater> yes i know
2021-04-09 12:36:43 × frozenErebus quits (~frozenEre@37.231.244.249) (Ping timeout: 268 seconds)
2021-04-09 12:36:55 <lotuseater> the wtf was for what the ebay offering contains xD
2021-04-09 12:36:58 × stree quits (~stree@68.36.8.116) (Ping timeout: 240 seconds)
2021-04-09 12:37:04 <merijn> Oh, I didn't click
2021-04-09 12:37:32 echoreply joins (~echoreply@unaffiliated/echoreply)
2021-04-09 12:37:41 <lotuseater> okay, just ebay
2021-04-09 12:37:57 <ski> (same link as around seven and a half hour ago, which was indicated to not be Haskell-related)
2021-04-09 12:38:30 × patrick3 quits (~tarpk@ool-182dca76.dyn.optonline.net) (Quit: WeeChat 2.9)
2021-04-09 12:38:59 × renzhi quits (~renzhi@2607:fa49:653f:a800::4223) (Ping timeout: 260 seconds)
2021-04-09 12:39:03 <lotuseater> so now I think on having a Haskell question recently
2021-04-09 12:41:55 × Narinas quits (~Narinas@187-178-93-112.dynamic.axtel.net) (Ping timeout: 258 seconds)
2021-04-09 12:42:50 A368-Guest joins (60044168@gateway/web/cgi-irc/kiwiirc.com/ip.96.4.65.104)
2021-04-09 12:45:56 × A368-Guest quits (60044168@gateway/web/cgi-irc/kiwiirc.com/ip.96.4.65.104) (Quit: Connection closed)
2021-04-09 12:46:57 nut joins (~user@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr)
2021-04-09 12:47:29 kaction joins (~kaction@ppsr.interfacefinancial.com)
2021-04-09 12:47:58 <nut> what is the purpose of the Setup.hs file in the default cable project?
2021-04-09 12:48:16 <merijn> nut: Building and installing the project
2021-04-09 12:48:37 <nut> building the project?
2021-04-09 12:48:40 <merijn> nut: For context, you should probably read this first: https://gist.github.com/merijn/8152d561fb8b011f9313c48d876ceb07
2021-04-09 12:49:24 <merijn> Setup.hs is the interface to Cabal (the library)
2021-04-09 12:50:32 stree joins (~stree@68.36.8.116)
2021-04-09 12:53:39 fiedlr joins (~fiedlr@83.148.33.254)
2021-04-09 12:54:03 hyperisco joins (~hyperisco@d192-186-117-226.static.comm.cgocable.net)

All times are in UTC.