Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-04-19 23:28:58 <tatsumaru> i see, thanks
2021-04-19 23:29:02 <koz_> Is there a way to use an OPTIONS_GHC pragma to _disable_ the use of a plugin?
2021-04-19 23:29:02 <mason_> also, String is type alias for [Char]
2021-04-19 23:29:07 <geekosaur> > ['h', 'e', 'l', 'l', 'o']
2021-04-19 23:29:09 <lambdabot> "hello"
2021-04-19 23:29:16 <geekosaur> same thing
2021-04-19 23:29:56 × Synthetica quits (uid199651@gateway/web/irccloud.com/x-lrjabllucnezjrom) (Quit: Connection closed for inactivity)
2021-04-19 23:30:33 <jesystani> ive got a ! pattern going, but it seems like it doesnt go recursively?
2021-04-19 23:30:44 p0a parts (~user@unaffiliated/p0a) ("bye")
2021-04-19 23:31:04 <geekosaur> !, or seq, only evaluates to the first constructor, not recursively
2021-04-19 23:31:21 <geekosaur> if you truly want to evaluate an entire structure, consider deepseq and friends
2021-04-19 23:31:33 <geekosaur> you may need NFData instances for your types
2021-04-19 23:32:26 geowiesnot joins (~user@87-89-181-157.abo.bbox.fr)
2021-04-19 23:33:39 × dmytrish quits (~mitra@2a02:8084:a82:d900:fdd2:ac3d:3471:66d9) (Ping timeout: 248 seconds)
2021-04-19 23:34:27 × Jd007 quits (~Jd007@162.156.11.151) (Quit: Jd007)
2021-04-19 23:34:54 sqrt2 joins (~ben@unaffiliated/sqrt2)
2021-04-19 23:36:05 <mason_> /join #electronics
2021-04-19 23:36:08 <mason_> woops!
2021-04-19 23:38:13 <jesystani> geekosaur: how easy is it to write an NFData instance?
2021-04-19 23:38:43 × barakkl1993 quits (~barakkley@2.55.141.207) (Ping timeout: 265 seconds)
2021-04-19 23:38:48 <geekosaur> fairly easy, you're just telling it which fields to evaluate (you cannot, for example, do much with a function)
2021-04-19 23:40:08 <mason_> when I used NFData I just did instance NFData MyType where rnf = genericRnf
2021-04-19 23:40:34 <mason_> I think you need DeriveGeneric for that
2021-04-19 23:40:36 <tatsumaru> if b is a list and I do 4:b to add 4 at the beginning the list with 4 at the beginning is actually a new list right, and not b?
2021-04-19 23:41:13 <geekosaur> it is a list cell whose head contains the new list item and whose tail is the original b
2021-04-19 23:41:45 <tatsumaru> i am just asking because if I then do b !! 2 the 4 won't be counted
2021-04-19 23:41:53 <jesystani> wheres the best place to find info on defining that instance?
2021-04-19 23:42:02 <mason_> yep, tail is shared. because b is immutable, new list can just reuse it without worrying that it may change in the future
2021-04-19 23:42:41 <tatsumaru> i see, thank you
2021-04-19 23:42:42 <monochrom> b is reused, not cloned. A new cell is made to point to 4 and point to b.
2021-04-19 23:43:12 <tatsumaru> so it's like a symlink?
2021-04-19 23:43:21 aVikingTrex joins (2be74510@43.231.69.16)
2021-04-19 23:43:26 <monochrom> "new list" is ambiguous unless you really mean it literally, in which case "obviously yes but obviously not what you have in mind"
2021-04-19 23:43:28 pthariensflame joins (~pthariens@2600:6c52:727f:4200:e9eb:b23:a363:a349)
2021-04-19 23:44:05 Jd007 joins (~Jd007@162.156.11.151)
2021-04-19 23:44:08 <monochrom> as new as "4+1 is a newer number than 4"
2021-04-19 23:44:23 × hiroaki_ quits (~hiroaki@2a02:8108:8c40:2bb8:bd38:fd76:9bf:a5f) (Ping timeout: 260 seconds)
2021-04-19 23:45:12 <geekosaur> tatsumaru, they are the same pointer
2021-04-19 23:45:25 × pthariensflame quits (~pthariens@2600:6c52:727f:4200:e9eb:b23:a363:a349) (Client Quit)
2021-04-19 23:46:55 tatsumaru parts (~tatsumaru@85.196.189.103) ()
2021-04-19 23:47:21 jamm_ joins (~jamm@unaffiliated/jamm)
2021-04-19 23:49:45 × ericsagnes quits (~ericsagne@2405:6580:0:5100:82c:fa7c:5833:ee7a) (Ping timeout: 250 seconds)
2021-04-19 23:50:48 × sqrt2 quits (~ben@unaffiliated/sqrt2) (Ping timeout: 265 seconds)
2021-04-19 23:51:30 loller_ joins (uid358106@gateway/web/irccloud.com/x-lstrgyekfcdepwsa)
2021-04-19 23:52:25 × jamm_ quits (~jamm@unaffiliated/jamm) (Ping timeout: 276 seconds)
2021-04-19 23:52:32 × royal_screwup21 quits (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) (Quit: Connection closed)
2021-04-19 23:52:47 × jesystani quits (~thorn@2404:4404:17f1:4900:ec8c:5f5b:2c7a:5e7) (Ping timeout: 260 seconds)
2021-04-19 23:53:28 jesystani joins (~thorn@2404:4404:17f1:4900:4d97:c743:fd22:2bfd)
2021-04-19 23:55:11 × xsperry quits (~as@unaffiliated/xsperry) (Remote host closed the connection)
2021-04-19 23:55:29 dpl joins (~dpl@77-121-78-163.chn.volia.net)
2021-04-19 23:56:09 xsperry joins (~as@unaffiliated/xsperry)
2021-04-19 23:59:33 × rj quits (~x@gateway/tor-sasl/rj) (Ping timeout: 240 seconds)
2021-04-19 23:59:53 fiedlr joins (~fiedlr@83.148.33.254)
2021-04-20 00:02:59 rj joins (~x@gateway/tor-sasl/rj)
2021-04-20 00:03:06 ericsagnes joins (~ericsagne@2405:6580:0:5100:e608:c88b:5ed1:a466)
2021-04-20 00:04:13 × fiedlr quits (~fiedlr@83.148.33.254) (Ping timeout: 240 seconds)
2021-04-20 00:04:44 zq parts (~zq@xorshift.org) ()
2021-04-20 00:17:28 heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-04-20 00:18:21 × Gurkenglas quits (~Gurkengla@unaffiliated/gurkenglas) (Ping timeout: 265 seconds)
2021-04-20 00:18:50 × geowiesnot quits (~user@87-89-181-157.abo.bbox.fr) (Ping timeout: 265 seconds)
2021-04-20 00:18:57 × Guest70321 quits (~textual@mskresolve-a.mskcc.org) (Ping timeout: 260 seconds)
2021-04-20 00:19:21 sqrt2 joins (~ben@unaffiliated/sqrt2)
2021-04-20 00:21:49 × gitgood quits (~gitgood@80-44-9-246.dynamic.dsl.as9105.com) (Remote host closed the connection)
2021-04-20 00:26:20 <toasty_avocado[m> How do I make the second line in this statement syntactically correct:
2021-04-20 00:26:23 toasty_avocado[m < https://matrix.org/_matrix/media/r0/download/matrix.org/OVUmrfiGuozFYXzgftvuxgUl/message.txt >
2021-04-20 00:26:52 toasty_avocado[m < https://matrix.org/_matrix/media/r0/download/matrix.org/UjjlBapJjZbgBTRIOTOxMUKN/message.txt >
2021-04-20 00:27:08 <toasty_avocado[m> * ```twice_as_old father son | difference / 2 = 0 = difference | otherwise = (father - 1) `twice_as_old` son where difference = father - son```
2021-04-20 00:27:57 toasty_avocado[m < https://matrix.org/_matrix/media/r0/download/matrix.org/sTEZxBvvBIzcraZkPHpMZexl/message.txt >
2021-04-20 00:28:09 toasty_avocado[m < https://matrix.org/_matrix/media/r0/download/matrix.org/JdSTSxyVDesrWNmNlNMklltO/message.txt >
2021-04-20 00:29:13 Alleria joins (~textual@2603-7000-3040-0000-6507-b6e6-e1a7-946f.res6.spectrum.com)
2021-04-20 00:29:36 Alleria is now known as Guest88007
2021-04-20 00:29:51 <geekosaur> you're using = for equality, it's ==
2021-04-20 00:31:12 × star_cloud quits (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) (Ping timeout: 240 seconds)
2021-04-20 00:37:25 × nineonine quits (~nineonine@2604:3d08:7785:9600:e0d9:4197:14e4:81a) (Ping timeout: 250 seconds)
2021-04-20 00:37:41 nineonine joins (~nineonine@50.216.62.2)
2021-04-20 00:41:04 <toasty_avocado[m> Thanks geekosaur
2021-04-20 00:41:44 × thc202 quits (~thc202@unaffiliated/thc202) (Ping timeout: 258 seconds)
2021-04-20 00:43:29 × haritz quits (~hrtz@unaffiliated/haritz) (Ping timeout: 250 seconds)
2021-04-20 00:43:46 ddellacosta joins (~ddellacos@ool-44c73afa.dyn.optonline.net)
2021-04-20 00:43:57 × rj quits (~x@gateway/tor-sasl/rj) (Ping timeout: 240 seconds)
2021-04-20 00:44:25 × Tario quits (~Tario@201.192.165.173) (Read error: Connection reset by peer)
2021-04-20 00:46:01 × ep1ctetus quits (~epictetus@ip72-194-54-201.sb.sd.cox.net) (Read error: Connection reset by peer)
2021-04-20 00:48:21 × ddellacosta quits (~ddellacos@ool-44c73afa.dyn.optonline.net) (Ping timeout: 260 seconds)
2021-04-20 00:49:15 rj joins (~x@gateway/tor-sasl/rj)
2021-04-20 00:49:19 haritz joins (~hrtz@2a02:8010:65b5:0:6009:6384:e3cb:2220)
2021-04-20 00:49:19 × haritz quits (~hrtz@2a02:8010:65b5:0:6009:6384:e3cb:2220) (Changing host)
2021-04-20 00:49:19 haritz joins (~hrtz@unaffiliated/haritz)
2021-04-20 00:51:06 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-04-20 00:52:35 × nicholasbulka quits (~nicholasb@2601:900:4301:da0:5d1c:812e:1a75:163c) (Ping timeout: 250 seconds)
2021-04-20 00:52:59 × jesystani quits (~thorn@2404:4404:17f1:4900:4d97:c743:fd22:2bfd) (Ping timeout: 260 seconds)
2021-04-20 00:53:23 <toasty_avocado[m> How do you type cast an int to a float?
2021-04-20 00:53:46 fresheyeball joins (~isaac@c-71-237-105-37.hsd1.co.comcast.net)
2021-04-20 00:53:51 jesystani joins (~thorn@2404:4404:17f1:4900:5df:d6d:b137:d7c2)
2021-04-20 00:55:05 <geekosaur> fromIntegral
2021-04-20 00:55:24 ram19890 joins (~ram@183.83.155.58)
2021-04-20 00:56:40 rajivr joins (uid269651@gateway/web/irccloud.com/x-xhstqsvcchluvrrc)
2021-04-20 00:57:33 × cr3 quits (~cr3@192-222-143-195.qc.cable.ebox.net) (Quit: leaving)
2021-04-20 01:01:28 Codaraxis__ joins (~Codaraxis@ip68-5-90-227.oc.oc.cox.net)
2021-04-20 01:02:21 × rj quits (~x@gateway/tor-sasl/rj) (Ping timeout: 240 seconds)
2021-04-20 01:02:45 Stanley00 joins (~stanley00@unaffiliated/stanley00)

All times are in UTC.