Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→
Page 1 .. 306 307 308 309 310 311 312 313 314 315 316 .. 17990
1,798,925 events total
2021-06-06 11:40:06 arjun joins (~user@user/arjun)
2021-06-06 11:43:41 imdoor joins (~imdoor@balticom-142-78-50.balticom.lv)
2021-06-06 11:46:23 fizbin joins (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net)
2021-06-06 11:46:34 sailboat joins (uid503239@id-503239.tinside.irccloud.com)
2021-06-06 11:47:25 × Natch quits (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se) (Ping timeout: 245 seconds)
2021-06-06 11:49:23 Natch joins (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se)
2021-06-06 11:50:45 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 245 seconds)
2021-06-06 11:54:19 ddellaco_ joins (~ddellacos@86.106.121.100)
2021-06-06 11:59:00 rk04 joins (~rk04@user/rajk)
2021-06-06 11:59:06 × ddellaco_ quits (~ddellacos@86.106.121.100) (Ping timeout: 264 seconds)
2021-06-06 12:02:06 × fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Ping timeout: 264 seconds)
2021-06-06 12:04:08 jakalx joins (~jakalx@base.jakalx.net)
2021-06-06 12:07:36 × xaio quits (~xaio@93.123.22.142) (Quit: Client closed)
2021-06-06 12:07:53 waleee joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd)
2021-06-06 12:11:11 ddellaco_ joins (~ddellacos@89.46.62.60)
2021-06-06 12:12:22 × amahl quits (~amahl@dxv5skyynkqvp8m1tfzny-3.rev.dnainternet.fi) (Remote host closed the connection)
2021-06-06 12:12:53 <arjun> writeFile "path/lol.txt" "hi lol"
2021-06-06 12:13:12 <arjun> file doesn't exist. how do i tell it to make the file and write if it doesn't exist
2021-06-06 12:13:28 <arjun> is there a mode setting or a seprate function for this ?
2021-06-06 12:13:28 <maerwald> arjun: you mean `path` doesn't exist?
2021-06-06 12:13:55 <maerwald> writeFile already creates the file if non-existent
2021-06-06 12:14:01 <maerwald> this is likely an issue with directory
2021-06-06 12:14:19 <arjun> Exception: /home/arjun/Documents/projects/AssGen/output/lol.html: openFile: does not exist (No such file or directory)
2021-06-06 12:14:37 <arjun> right. i haven't made the `output` dir
2021-06-06 12:14:52 <maerwald> @hoogle createDirectoryIfMissing
2021-06-06 12:14:52 <lambdabot> System.Directory createDirectoryIfMissing :: Bool -> FilePath -> IO ()
2021-06-06 12:14:52 <lambdabot> UnliftIO.Directory createDirectoryIfMissing :: MonadIO m => Bool -> FilePath -> m ()
2021-06-06 12:14:52 <lambdabot> System.Path.Directory createDirectoryIfMissing :: AbsRel ar => Bool -> DirPath ar -> IO ()
2021-06-06 12:15:07 kuttler parts (~kuttler@105.163.2.237) (WeeChat 2.8)
2021-06-06 12:15:32 <arjun> gotcha' thanks maerwald:
2021-06-06 12:16:15 × ddellaco_ quits (~ddellacos@89.46.62.60) (Ping timeout: 268 seconds)
2021-06-06 12:18:40 × tose quits (~tose@ip-37-188-247-48.eurotel.cz) (Ping timeout: 245 seconds)
2021-06-06 12:21:05 UpstreamSalmon joins (uid12077@id-12077.stonehaven.irccloud.com)
2021-06-06 12:21:05 × azeem quits (~azeem@dynamic-adsl-94-34-34-125.clienti.tiscali.it) (Read error: Connection reset by peer)
2021-06-06 12:21:13 azeem joins (~azeem@dynamic-adsl-94-34-34-125.clienti.tiscali.it)
2021-06-06 12:22:42 drdo joins (~drdo@overlord0.drdo.eu)
2021-06-06 12:25:09 ixlun joins (~matthew@109.249.184.235)
2021-06-06 12:26:55 pja pats hoogle
2021-06-06 12:28:16 <ixlun> Hi all. I've got a quick question. Suppose I have [IO Int]. I can use `sequence` to run all those actions and get a nice result. However, if I want to `intersperse (threadDelay n)`, I can't since `()` won't match `Int`. Is there a way around this?
2021-06-06 12:28:48 ddellaco_ joins (~ddellacos@89.46.62.60)
2021-06-06 12:28:52 × pierrot quits (~pi@user/pierrot) (Remote host closed the connection)
2021-06-06 12:30:02 eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:e061:bfad:5c85:da98)
2021-06-06 12:30:37 pierrot joins (~pi@user/pierrot)
2021-06-06 12:30:59 <tomsmeding> @botsnack
2021-06-06 12:30:59 <lambdabot> :)
2021-06-06 12:31:00 <maerwald> `intersperse (threadDelay n >> pure 0)`
2021-06-06 12:31:52 <ixlun> maerwald: Ah, sneaky!
2021-06-06 12:32:04 <maerwald> or turn it into Maybe/Nothing
2021-06-06 12:32:08 <tomsmeding> \l -> case l of [] -> [] ; x:xs -> x : map (threadDelay n >>) xs
2021-06-06 12:33:31 × ddellaco_ quits (~ddellacos@89.46.62.60) (Ping timeout: 268 seconds)
2021-06-06 12:34:58 <ixlun> got it. Thanks for the info maerwald and tomsmeding !
2021-06-06 12:35:10 × eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:e061:bfad:5c85:da98) (Ping timeout: 272 seconds)
2021-06-06 12:39:13 × azeem quits (~azeem@dynamic-adsl-94-34-34-125.clienti.tiscali.it) (Read error: Connection reset by peer)
2021-06-06 12:42:09 jakzale joins (uid499518@id-499518.charlton.irccloud.com)
2021-06-06 12:45:18 boxscape joins (~boxscape@user/boxscape)
2021-06-06 12:47:12 Deide joins (~Deide@wire.desu.ga)
2021-06-06 12:47:12 × Deide quits (~Deide@wire.desu.ga) (Changing host)
2021-06-06 12:47:12 Deide joins (~Deide@user/deide)
2021-06-06 12:48:55 × arjun quits (~user@user/arjun) (Ping timeout: 264 seconds)
2021-06-06 12:49:07 × berberman quits (~berberman@user/berberman) (Quit: ZNC 1.8.2 - https://znc.in)
2021-06-06 12:49:57 berberman joins (~berberman@user/berberman)
2021-06-06 12:51:30 azeem joins (~azeem@dynamic-adsl-94-34-34-125.clienti.tiscali.it)
2021-06-06 12:53:24 × psydroid quits (~psydroidm@2001:470:69fc:105::165) (Changing host)
2021-06-06 12:53:24 psydroid joins (~psydroidm@user/psydroid)
2021-06-06 12:55:00 CodeKiwi is now known as DigitalKiwi
2021-06-06 12:58:51 × azeem quits (~azeem@dynamic-adsl-94-34-34-125.clienti.tiscali.it) (Read error: Connection reset by peer)
2021-06-06 13:01:01 alx741 joins (~alx741@186.178.108.47)
2021-06-06 13:02:24 dunkeln joins (~dunkeln@94.129.65.28)
2021-06-06 13:05:46 Guest22 joins (~Guest22@host-92-19-48-226.as13285.net)
2021-06-06 13:05:49 × pavonia quits (~user@user/siracusa) (Quit: Bye!)
2021-06-06 13:06:39 azeem joins (~azeem@dynamic-adsl-94-34-34-125.clienti.tiscali.it)
2021-06-06 13:07:41 <Guest22> hi guys, i'm new to functional programming. i have a question about it not specific to Haskell (I'm using JavaScript), is that ok?
2021-06-06 13:11:26 <pja> Hi level questions might get an answer, for anything specific to JS you’re probably better off asking in a JS specific channel.
2021-06-06 13:12:17 <Guest22> thanks, that's what i'm going for basically so i know which terms to google
2021-06-06 13:12:27 <Guest22> and work out how they apply to JS
2021-06-06 13:13:31 × ixlun quits (~matthew@109.249.184.235) (Ping timeout: 264 seconds)
2021-06-06 13:14:13 × gentauro quits (~gentauro@user/gentauro) (Read error: Connection reset by peer)
2021-06-06 13:14:50 gentauro joins (~gentauro@user/gentauro)
2021-06-06 13:15:03 <Guest22> sorry i'm giving myself a headache trying to express a pretty simple problem by thinking about it functionally
2021-06-06 13:15:17 <Guest22> i have a grid which is an array of arrays
2021-06-06 13:15:30 <Guest22> i want to remove the top element of the column and add one at the bottom
2021-06-06 13:17:25 <Guest22> so like one way would be grid.map(column.drop(1)).map(column.add(thing))
2021-06-06 13:17:47 <Guest22> but instead of calling map repeatedly, is there a way through like partial application or something to call it once?
2021-06-06 13:19:28 ddellaco_ joins (~ddellacos@86.106.121.100)
2021-06-06 13:21:10 <Guest22> my other idea was to make a function that does both operations and pass that into map (think that's called function composition)
2021-06-06 13:22:27 × ddellacosta quits (~ddellacos@86.106.121.222) (Remote host closed the connection)
2021-06-06 13:22:36 ddellacosta joins (~ddellacos@86.106.121.222)
2021-06-06 13:23:09 cfricke joins (~cfricke@user/cfricke)
2021-06-06 13:23:34 AgentM joins (~agentm@pool-162-83-130-212.nycmny.fios.verizon.net)
2021-06-06 13:24:05 × ddellaco_ quits (~ddellacos@86.106.121.100) (Ping timeout: 245 seconds)
2021-06-06 13:25:20 × rk04 quits (~rk04@user/rajk) (Ping timeout: 245 seconds)
2021-06-06 13:26:28 yd502 joins (~yd502@240e:46c:3280:7ae6:b451:ac25:8be1:56d2)
2021-06-06 13:28:24 <lyxia> ^ This is the way.
2021-06-06 13:28:40 <lyxia> map f . map g = map (f . g)
2021-06-06 13:29:43 × yaroot quits (~yaroot@6.3.30.125.dy.iij4u.or.jp) (Quit: The Lounge - https://thelounge.chat)
2021-06-06 13:30:23 <Guest22> ok i think i get you
2021-06-06 13:30:26 <Guest22> thanks very much
2021-06-06 13:30:36 yaroot joins (~yaroot@6.3.30.125.dy.iij4u.or.jp)
2021-06-06 13:30:52 _73` parts (~user@pool-96-252-123-136.bstnma.fios.verizon.net) (ERC (IRC client for Emacs 27.2))
2021-06-06 13:30:53 shapr joins (~user@pool-100-36-247-68.washdc.fios.verizon.net)

All times are in UTC.