Logs: freenode/#haskell
| 2021-05-14 15:34:42 | → | ddellaco_ joins (~ddellacos@ool-44c73afa.dyn.optonline.net) |
| 2021-05-14 15:34:52 | → | tromp joins (~tromp@dhcp-077-249-230-040.chello.nl) |
| 2021-05-14 15:35:05 | → | star_cloud joins (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) |
| 2021-05-14 15:36:02 | → | neiluj joins (~jco@91-167-203-101.subs.proxad.net) |
| 2021-05-14 15:36:08 | <guest5> | I've tried that and im getting a similar error - https://paste.tomsmeding.com/CPZdAoYU |
| 2021-05-14 15:36:59 | × | chris___ quits (~chris@81.96.113.213) (Remote host closed the connection) |
| 2021-05-14 15:37:16 | <guest5> | it is definitely to do with the demo 2 and those variables |
| 2021-05-14 15:37:18 | <boxscape> | guest5 findCityAndIndex returns an integer, but putStrLn expects a String. You can use `print` instead of `putStrLn` to print anything printable rather than just Strings |
| 2021-05-14 15:37:37 | <guest5> | ahhhh |
| 2021-05-14 15:38:19 | <guest5> | you're a legend my friend |
| 2021-05-14 15:38:22 | <boxscape> | :) |
| 2021-05-14 15:39:30 | → | chris__ joins (~chris@81.96.113.213) |
| 2021-05-14 15:39:59 | × | frozenErebus quits (~frozenEre@37.231.244.249) (Ping timeout: 245 seconds) |
| 2021-05-14 15:40:49 | × | neiluj quits (~jco@91-167-203-101.subs.proxad.net) (Client Quit) |
| 2021-05-14 15:41:11 | → | heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) |
| 2021-05-14 15:44:17 | × | cfricke quits (~cfricke@unaffiliated/cfricke) (Quit: WeeChat 3.1) |
| 2021-05-14 15:44:22 | × | geekosaur quits (930099da@rrcs-147-0-153-218.central.biz.rr.com) (Ping timeout: 240 seconds) |
| 2021-05-14 15:44:51 | × | star_cloud quits (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) (Excess Flood) |
| 2021-05-14 15:46:55 | → | star_cloud joins (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) |
| 2021-05-14 15:48:39 | × | xwvvvvwx quits (xwvvvvwx@gateway/vpn/mullvad/xwvvvvwx) (Ping timeout: 268 seconds) |
| 2021-05-14 15:49:03 | → | geekosaur joins (45870322@069-135-003-034.biz.spectrum.com) |
| 2021-05-14 15:49:19 | → | Ishutin_ joins (~ishutin@85-238-93-79.pool.digikabel.hu) |
| 2021-05-14 15:49:36 | × | ddellac__ quits (~ddellacos@86.106.143.20) (Ping timeout: 260 seconds) |
| 2021-05-14 15:50:21 | → | xwvvvvwx joins (xwvvvvwx@gateway/vpn/mullvad/xwvvvvwx) |
| 2021-05-14 15:50:46 | → | tzh joins (~tzh@c-24-21-73-154.hsd1.or.comcast.net) |
| 2021-05-14 15:51:27 | → | prasanth joins (74486d8f@116.72.109.143) |
| 2021-05-14 15:51:44 | × | prasanth quits (74486d8f@116.72.109.143) (Client Quit) |
| 2021-05-14 15:51:54 | × | Ishutin quits (~ishutin@94-21-157-151.pool.digikabel.hu) (Ping timeout: 252 seconds) |
| 2021-05-14 15:52:15 | → | prasanth joins (74486d8f@116.72.109.143) |
| 2021-05-14 15:53:04 | × | alphabeta1 quits (~kilolympu@5.151.5.177) (Read error: Connection reset by peer) |
| 2021-05-14 15:53:43 | × | chris__ quits (~chris@81.96.113.213) (Remote host closed the connection) |
| 2021-05-14 15:55:34 | <prasanth> | Hi I was trying out pascals triangle in haskell and I wrote this https://paste.tomsmeding.com/8LDQz9zJ and got error, I cannot seem to understand what went wrong but if I do this https://paste.tomsmeding.com/jEzUy10N it works |
| 2021-05-14 15:55:42 | × | geekosaur quits (45870322@069-135-003-034.biz.spectrum.com) (Quit: Ping timeout (120 seconds)) |
| 2021-05-14 15:56:29 | → | ep1ctetus joins (~epictetus@rrcs-74-62-210-123.west.biz.rr.com) |
| 2021-05-14 15:56:43 | → | Gurkenglas joins (~Gurkengla@unaffiliated/gurkenglas) |
| 2021-05-14 15:56:44 | × | star_cloud quits (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) (Excess Flood) |
| 2021-05-14 15:57:49 | → | geekosaur joins (45870322@069-135-003-034.biz.spectrum.com) |
| 2021-05-14 15:58:00 | → | star_cloud joins (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) |
| 2021-05-14 15:58:21 | <monochrom> | Perhaps it means you need parentheses after all, and "$ is for avoiding parentheses" isn't true? |
| 2021-05-14 15:58:42 | × | isovector quits (~isovector@172.103.216.166.cable.tpia.cipherkey.com) (Ping timeout: 265 seconds) |
| 2021-05-14 15:58:58 | → | chris__ joins (~chris@81.96.113.213) |
| 2021-05-14 15:59:12 | <monochrom> | You can use ":info :" and ":info $" to see operator precedence. Or ":info : $" if you don't mind all of it in one go. |
| 2021-05-14 16:00:22 | × | xwvvvvwx quits (xwvvvvwx@gateway/vpn/mullvad/xwvvvvwx) (Ping timeout: 268 seconds) |
| 2021-05-14 16:00:36 | → | Rudd0 joins (~Rudd0@185.189.115.103) |
| 2021-05-14 16:00:42 | <monochrom> | "buildRow n (r - 1) : show (binomial n r)" would have been perfect. |
| 2021-05-14 16:00:59 | → | poljar joins (~poljar@93-141-135-207.adsl.net.t-com.hr) |
| 2021-05-14 16:01:04 | → | hypercube joins (~hypercube@2603-6011-f901-9e5b-0000-0000-0000-08cf.res6.spectrum.com) |
| 2021-05-14 16:01:11 | <monochrom> | Obsession with $ would XY-problem into "buildRow n (r - 1) : (show $ binomial n r)" which is like the worst of both worlds. |
| 2021-05-14 16:01:20 | → | xwvvvvwx joins (xwvvvvwx@gateway/vpn/mullvad/xwvvvvwx) |
| 2021-05-14 16:01:56 | → | nicholasbulka joins (~nicholasb@2601:900:4301:da0:75d5:f759:9c55:c828) |
| 2021-05-14 16:03:08 | × | chris__ quits (~chris@81.96.113.213) (Ping timeout: 246 seconds) |
| 2021-05-14 16:03:59 | → | gnomus joins (~gnomus@185.169.233.10) |
| 2021-05-14 16:06:43 | <prasanth> | I don't think that brackets are the problem, I tried some things in gchi and found something weird this works "1": ["2"] but ["1"] : "2" this throws a similar kind of error to what I am getting |
| 2021-05-14 16:08:01 | → | isovector joins (~isovector@172.103.216.166) |
| 2021-05-14 16:08:15 | <boxscape> | prasanth : is used to add a single element to the beginning of a list. if you have a list of strings like ["foo", "bar"], you can use : to add an element like this: "str" : ["foo", "bar"] |
| 2021-05-14 16:09:30 | <prasanth> | yeah, I changed my code accordingly and it works, thanks guys |
| 2021-05-14 16:09:34 | <boxscape> | Strings are somwhat confusing here because they are lists of characters, so you can also add a single character to the beginning of a string, as in 'h' : "ello", which results in "hello". But note the difference between single and double quotes. |
| 2021-05-14 16:10:29 | → | frozenErebus joins (~frozenEre@37.231.244.249) |
| 2021-05-14 16:12:57 | × | berberman_ quits (~berberman@unaffiliated/berberman) (Quit: ZNC 1.8.2 - https://znc.in) |
| 2021-05-14 16:13:25 | → | berberman joins (~berberman@unaffiliated/berberman) |
| 2021-05-14 16:14:39 | × | prasanth quits (74486d8f@116.72.109.143) (Quit: Connection closed) |
| 2021-05-14 16:15:13 | × | Rudd0 quits (~Rudd0@185.189.115.103) (Ping timeout: 252 seconds) |
| 2021-05-14 16:16:34 | → | Rudd0 joins (~Rudd0@185.189.115.103) |
| 2021-05-14 16:17:33 | × | ystael quits (~ystael@209.6.50.55) (Ping timeout: 265 seconds) |
| 2021-05-14 16:17:58 | → | fresheyeball joins (~isaac@c-71-237-105-37.hsd1.co.comcast.net) |
| 2021-05-14 16:17:59 | × | Adluc quits (~Adluc@83.167.228.130) (Remote host closed the connection) |
| 2021-05-14 16:18:26 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 240 seconds) |
| 2021-05-14 16:19:02 | → | Adluc joins (~Adluc@83.167.228.130) |
| 2021-05-14 16:19:03 | → | ystael joins (~ystael@209.6.50.55) |
| 2021-05-14 16:19:17 | × | stree quits (~stree@68.36.8.116) (Ping timeout: 260 seconds) |
| 2021-05-14 16:21:41 | × | geowiesnot quits (~user@87-89-181-157.abo.bbox.fr) (Ping timeout: 240 seconds) |
| 2021-05-14 16:22:03 | → | cole-h joins (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net) |
| 2021-05-14 16:22:08 | → | ddellac__ joins (ddellacost@gateway/vpn/mullvad/ddellacosta) |
| 2021-05-14 16:23:48 | × | ystael quits (~ystael@209.6.50.55) (Ping timeout: 252 seconds) |
| 2021-05-14 16:24:21 | × | kuribas quits (~user@ptr-25vy0i97aequnpt08mb.18120a2.ip6.access.telenet.be) (Remote host closed the connection) |
| 2021-05-14 16:24:41 | × | frozenErebus quits (~frozenEre@37.231.244.249) (Ping timeout: 240 seconds) |
| 2021-05-14 16:24:43 | → | ystael joins (~ystael@209.6.50.55) |
| 2021-05-14 16:24:53 | × | muttonmitten quits (~muttonmit@unaffiliated/muttonmitten) (Quit: leaving) |
| 2021-05-14 16:25:16 | × | kingswim quits (~kevinying@197.210.47.0) (Read error: Connection reset by peer) |
| 2021-05-14 16:26:12 | → | rj joins (~x@gateway/tor-sasl/rj) |
| 2021-05-14 16:26:26 | × | ddellac__ quits (ddellacost@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 240 seconds) |
| 2021-05-14 16:26:54 | → | kingswim joins (~kevinying@197.210.47.0) |
| 2021-05-14 16:27:23 | → | Uter joins (467ca176@gateway/web/cgi-irc/kiwiirc.com/ip.70.124.161.118) |
| 2021-05-14 16:27:35 | ← | Uter parts (467ca176@gateway/web/cgi-irc/kiwiirc.com/ip.70.124.161.118) () |
| 2021-05-14 16:29:38 | → | tricklynch joins (~tricklync@216-180-94-57.starry-inc.net) |
| 2021-05-14 16:30:01 | × | boxscape quits (54a350dc@gateway/web/cgi-irc/kiwiirc.com/ip.84.163.80.220) (Quit: Connection closed) |
| 2021-05-14 16:31:23 | → | justsomeguy joins (~justsomeg@unaffiliated/--/x-3805311) |
| 2021-05-14 16:32:14 | → | stree joins (~stree@68.36.8.116) |
| 2021-05-14 16:34:49 | → | ddellac__ joins (~ddellacos@ool-44c73afa.dyn.optonline.net) |
| 2021-05-14 16:36:05 | → | Uter joins (467ca176@gateway/web/cgi-irc/kiwiirc.com/ip.70.124.161.118) |
| 2021-05-14 16:36:18 | <Uter> | Take a genetics test to see if you are black... |
| 2021-05-14 16:36:30 | ← | Uter parts (467ca176@gateway/web/cgi-irc/kiwiirc.com/ip.70.124.161.118) () |
| 2021-05-14 16:37:04 | × | ddellaco_ quits (~ddellacos@ool-44c73afa.dyn.optonline.net) (Ping timeout: 245 seconds) |
| 2021-05-14 16:37:32 | → | frozenErebus joins (~frozenEre@37.231.244.249) |
| 2021-05-14 16:37:35 | × | pavonia quits (~user@unaffiliated/siracusa) (Quit: Bye!) |
| 2021-05-14 16:38:15 | <guest5> | anyone have any idea why this code is outputting the data but instead of breaking the lines at "\n" is just printing out \n? |
| 2021-05-14 16:38:22 | <guest5> | https://paste.tomsmeding.com/czvDkRaL |
| 2021-05-14 16:38:55 | <guest5> | this is the output - https://paste.tomsmeding.com/GatsSjlU |
| 2021-05-14 16:40:16 | <lyxia> | because print uses show which turns all nonprintable characters to escape sequences |
| 2021-05-14 16:40:38 | <lyxia> | use putStrLn |
All times are in UTC.