Logs on 2023-11-27 (liberachat/#haskell)
| 00:00:06 | <Fijxu> | Axman6: I will learn it in the future maybe |
| 00:00:44 | <Fijxu> | I don't want to lose focus on C and dropping it by another lang for nw |
| 00:00:46 | <Fijxu> | now* |
| 00:00:50 | <monochrom> | Yeah consider taking seriously "I am a beginner" to its logical conclusion. Therefore, as a beginner, one is extremely likely to be wrong about what is important, even for the intended project. |
| 00:00:52 | <Axman6> | I think there's a lot to be said for learning high level to low level. High level languages let you have thoughts you can't have in lower level ones |
| 00:01:13 | <Fijxu> | haskell is a high level one? |
| 00:01:29 | <int-e> | if you hold it right |
| 00:02:23 | <int-e> | . o O ( If you hold it wrong it can become an awful C dialect with a terrible compiler. ) |
| 00:03:25 | <int-e> | (I'm thinking of bytestring internals, especially early on when they had fun bugs like sharing buffers between different bytestrings thanks to the power of inlinePerformIO.) |
| 00:07:26 | × | hays quits (rootvegeta@fsf/member/hays) (Ping timeout: 245 seconds) |
| 00:14:03 | × | Igloo quits (~ian@matrix.chaos.earth.li) (Remote host closed the connection) |
| 00:15:47 | → | Igloo joins (~ian@matrix.chaos.earth.li) |
| 00:16:07 | × | picnoir quits (~picnoir@about/aquilenet/vodoo/NinjaTrappeur) (Ping timeout: 255 seconds) |
| 00:17:24 | × | eggplantade quits (~Eggplanta@2600:1700:38c5:d800:1574:a602:a028:b4e) (Remote host closed the connection) |
| 00:17:54 | × | Tuplanolla quits (~Tuplanoll@91-159-68-236.elisa-laajakaista.fi) (Quit: Leaving.) |
| 00:21:20 | × | emmanuelux quits (~emmanuelu@user/emmanuelux) (Quit: au revoir) |
| 00:24:33 | → | picnoir joins (~picnoir@about/aquilenet/vodoo/NinjaTrappeur) |
| 00:30:12 | ski | . o O ( "Teach Yourself Programming in ..." by Peter Norvig at <https://www.norvig.com/21-days.html> ) |
| 00:30:50 | × | waleee quits (~waleee@h-176-10-144-38.NA.cust.bahnhof.se) (Ping timeout: 260 seconds) |
| 00:36:56 | → | biberu\ joins (~biberu@user/biberu) |
| 00:37:03 | → | eggplantade joins (~Eggplanta@2600:1700:38c5:d800:1574:a602:a028:b4e) |
| 00:37:58 | → | EvanR_ joins (~EvanR@user/evanr) |
| 00:38:03 | × | pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Quit: WeeChat 3.5) |
| 00:38:10 | → | MironZ3 joins (~MironZ@nat-infra.ehlab.uk) |
| 00:38:50 | → | Ram-Z_ joins (Ram-Z@2a01:7e01::f03c:91ff:fe57:d2df) |
| 00:38:56 | → | hamess_ joins (~hamess@user/hamess) |
| 00:38:56 | → | totbwf_ joins (sid402332@id-402332.uxbridge.irccloud.com) |
| 00:38:57 | → | shawwwn_ joins (sid6132@id-6132.helmsley.irccloud.com) |
| 00:38:57 | → | jackdk_ joins (sid373013@cssa/jackdk) |
| 00:39:02 | → | dsal_ joins (sid13060@id-13060.lymington.irccloud.com) |
| 00:39:05 | → | nrr_______ joins (sid20938@id-20938.lymington.irccloud.com) |
| 00:39:08 | → | meinside_ joins (uid24933@id-24933.helmsley.irccloud.com) |
| 00:39:10 | → | bjs_ joins (sid190364@user/bjs) |
| 00:39:12 | → | chessai_ joins (sid225296@id-225296.lymington.irccloud.com) |
| 00:39:15 | → | Fangs_ joins (sid141280@id-141280.hampstead.irccloud.com) |
| 00:39:17 | → | astra_ joins (sid289983@user/amish) |
| 00:39:32 | → | swistak- joins (~swistak@185.21.216.141) |
| 00:39:39 | → | g_ joins (g@libera/staff/glguy) |
| 00:40:08 | → | nonzen_ joins (~nonzen@user/nonzen) |
| 00:40:14 | → | andjjj23_ joins (~irc@107.170.228.47) |
| 00:40:37 | × | g quits (g@libera/staff/glguy) (Killed (tungsten.libera.chat (Nickname regained by services))) |
| 00:40:37 | g_ | is now known as g |
| 00:40:39 | × | benjaminl quits (~benjaminl@user/benjaminl) (Ping timeout: 268 seconds) |
| 00:40:39 | × | lightandlight quits (sid135476@id-135476.helmsley.irccloud.com) (Ping timeout: 268 seconds) |
| 00:40:39 | × | swistak quits (~swistak@185.21.216.141) (Ping timeout: 268 seconds) |
| 00:40:39 | × | lexi-lambda quits (sid92601@id-92601.hampstead.irccloud.com) (Ping timeout: 268 seconds) |
| 00:40:40 | × | eso quits (a0662dfd5e@2604:bf00:561:2000::1266) (Ping timeout: 268 seconds) |
| 00:40:40 | × | carter quits (sid14827@id-14827.helmsley.irccloud.com) (Ping timeout: 268 seconds) |
| 00:40:40 | × | nonzen quits (~nonzen@user/nonzen) (Ping timeout: 268 seconds) |
| 00:40:40 | × | buhman quits (sid411355@user/buhman) (Ping timeout: 268 seconds) |
| 00:40:40 | × | hamess quits (~hamess@user/hamess) (Ping timeout: 268 seconds) |
| 00:40:40 | × | dsal quits (sid13060@id-13060.lymington.irccloud.com) (Ping timeout: 268 seconds) |
| 00:40:40 | × | Ram-Z quits (Ram-Z@2a01:7e01::f03c:91ff:fe57:d2df) (Ping timeout: 268 seconds) |
| 00:40:40 | × | andjjj23 quits (~irc@107.170.228.47) (Ping timeout: 268 seconds) |
| 00:40:40 | × | mikko quits (~mikko@user/mikko) (Ping timeout: 268 seconds) |
| 00:40:40 | × | Fangs quits (sid141280@id-141280.hampstead.irccloud.com) (Ping timeout: 268 seconds) |
| 00:40:40 | × | incertia quits (~incertia@209.122.137.252) (Ping timeout: 268 seconds) |
| 00:40:40 | × | dexter2 quits (dexter@2a01:7e00::f03c:91ff:fe86:59ec) (Ping timeout: 268 seconds) |
| 00:40:40 | × | cods quits (~fred@tuxee.net) (Ping timeout: 268 seconds) |
| 00:40:40 | × | chessai quits (sid225296@id-225296.lymington.irccloud.com) (Ping timeout: 268 seconds) |
| 00:40:41 | × | iqubic quits (~avi@2601:602:9502:c70:c94f:89a4:f1d7:2a2a) (Ping timeout: 268 seconds) |
| 00:40:41 | × | xff0x quits (~xff0x@2405:6580:b080:900:be86:cabb:8cd3:1ec3) (Ping timeout: 268 seconds) |
| 00:40:41 | × | Hafydd quits (~Hafydd@user/hafydd) (Ping timeout: 268 seconds) |
| 00:40:41 | × | EvanR quits (~EvanR@user/evanr) (Ping timeout: 268 seconds) |
| 00:40:41 | × | shawwwn quits (sid6132@id-6132.helmsley.irccloud.com) (Ping timeout: 268 seconds) |
| 00:40:41 | × | meinside quits (uid24933@helmsley.irccloud.com) (Ping timeout: 268 seconds) |
| 00:40:41 | × | bjs quits (sid190364@user/bjs) (Ping timeout: 268 seconds) |
| 00:40:41 | × | xxpor quits (~xxpor@user/xxpor) (Ping timeout: 268 seconds) |
| 00:40:41 | × | MironZ quits (~MironZ@nat-infra.ehlab.uk) (Ping timeout: 268 seconds) |
| 00:40:42 | × | cln_ quits (cln@wtf.cx) (Ping timeout: 268 seconds) |
| 00:40:42 | × | mjacob quits (~mjacob@adrastea.uberspace.de) (Ping timeout: 268 seconds) |
| 00:40:42 | × | Typedfern quits (~Typedfern@220.red-83-37-25.dynamicip.rima-tde.net) (Ping timeout: 268 seconds) |
| 00:40:42 | × | nrr______ quits (sid20938@id-20938.lymington.irccloud.com) (Ping timeout: 268 seconds) |
| 00:40:42 | × | totbwf quits (sid402332@id-402332.uxbridge.irccloud.com) (Ping timeout: 268 seconds) |
| 00:40:42 | × | feetwind quits (~mike@user/feetwind) (Ping timeout: 268 seconds) |
| 00:40:42 | × | astra quits (sid289983@id-289983.hampstead.irccloud.com) (Ping timeout: 268 seconds) |
| 00:40:42 | × | TMA quits (tma@twin.jikos.cz) (Ping timeout: 268 seconds) |
| 00:40:42 | × | jackdk quits (sid373013@cssa/jackdk) (Ping timeout: 268 seconds) |
| 00:40:42 | × | biberu quits (~biberu@user/biberu) (Ping timeout: 268 seconds) |
| 00:40:43 | chessai_ | is now known as chessai |
| 00:40:43 | MironZ3 | is now known as MironZ |
| 00:40:43 | Fangs_ | is now known as Fangs |
| 00:40:43 | dsal_ | is now known as dsal |
| 00:40:43 | totbwf_ | is now known as totbwf |
| 00:40:43 | jackdk_ | is now known as jackdk |
| 00:40:44 | astra_ | is now known as astra |
| 00:40:48 | shawwwn_ | is now known as shawwwn |
| 00:40:49 | bjs_ | is now known as bjs |
| 00:40:49 | meinside_ | is now known as meinside |
| 00:40:49 | → | incertia_ joins (~incertia@209.122.137.252) |
| 00:40:50 | → | cln_ joins (cln@wtf.cx) |
| 00:40:50 | biberu\ | is now known as biberu |
| 00:40:51 | → | xff0x joins (~xff0x@2405:6580:b080:900:9596:3640:8854:825) |
| 00:40:53 | → | feetwind joins (~mike@user/feetwind) |
| 00:41:12 | → | xxpor joins (~xxpor@user/xxpor) |
| 00:41:13 | incertia_ | is now known as incertia |
| 00:41:39 | → | dexter2 joins (dexter@2a01:7e00::f03c:91ff:fe86:59ec) |
| 00:41:39 | → | cods joins (~fred@tuxee.net) |
| 00:42:04 | → | mjacob joins (~mjacob@adrastea.uberspace.de) |
| 00:42:12 | → | TMA joins (tma@twin.jikos.cz) |
| 00:42:22 | × | todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Remote host closed the connection) |
| 00:46:15 | × | YoungFrog quits (~youngfrog@39.129-180-91.adsl-dyn.isp.belgacom.be) (Read error: Connection reset by peer) |
| 00:46:35 | → | YoungFrog joins (~youngfrog@2a02:a03f:ca07:f900:49c4:337a:ff0f:d4e1) |
| 00:48:49 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 256 seconds) |
| 00:49:34 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 00:51:34 | × | alexherbo2 quits (~alexherbo@2a02-8440-3240-abf5-0c6d-5c34-f921-3e65.rev.sfr.net) (Ping timeout: 250 seconds) |
| 00:52:14 | → | notzmv joins (~zmv@user/notzmv) |
| 00:52:25 | → | eso joins (a0662dfd5e@2604:bf00:561:2000::1266) |
| 00:52:47 | → | lightandlight joins (sid135476@id-135476.helmsley.irccloud.com) |
| 00:52:48 | → | lexi-lambda joins (sid92601@id-92601.hampstead.irccloud.com) |
| 00:53:18 | → | benjaminl joins (~benjaminl@user/benjaminl) |
| 00:53:29 | → | buhman joins (sid411355@user/buhman) |
| 00:53:46 | → | Hafydd joins (~Hafydd@user/hafydd) |
| 00:53:47 | → | Typedfern joins (~Typedfern@220.red-83-37-25.dynamicip.rima-tde.net) |
| 00:53:52 | → | mikko joins (~mikko@dsl-trebng22-58c1a8-185.dhcp.inet.fi) |
| 00:53:52 | × | mikko quits (~mikko@dsl-trebng22-58c1a8-185.dhcp.inet.fi) (Changing host) |
| 00:53:52 | → | mikko joins (~mikko@user/mikko) |
| 00:54:06 | → | carter joins (sid14827@id-14827.helmsley.irccloud.com) |
| 00:54:11 | × | benjaminl quits (~benjaminl@user/benjaminl) (Remote host closed the connection) |
| 00:54:32 | → | benjaminl joins (~benjaminl@user/benjaminl) |
| 00:59:47 | → | peterbecich joins (~Thunderbi@047-229-123-186.res.spectrum.com) |
| 01:02:23 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 264 seconds) |
| 01:03:05 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 01:08:35 | × | benjaminl quits (~benjaminl@user/benjaminl) (Remote host closed the connection) |
| 01:09:37 | → | benjaminl joins (~benjaminl@user/benjaminl) |
| 01:15:35 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 264 seconds) |
| 01:19:55 | → | jack_rabbit joins (~knusbaum@2601:240:8401:630::9f3a) |
| 01:21:49 | → | todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de) |
| 01:21:56 | <jack_rabbit> | Is there a convention for mapping over a list, where each element produces multiple values in the final list? I could just make a [[t]] and then flatten it, but not sure if there's a more canonical way. |
| 01:22:49 | <geekosaur> | that's it, aka the list monad |
| 01:23:03 | <geekosaur> | :t concatMap |
| 01:23:04 | <lambdabot> | Foldable t => (a -> [b]) -> t a -> [b] |
| 01:24:02 | <int-e> | > do x <- [1,2,3]; replicate x x |
| 01:24:03 | <lambdabot> | [1,2,2,3,3,3] |
| 01:24:15 | <jack_rabbit> | Ahh nice, thanks. |
| 01:24:39 | <Axman6> | > [1,2,3] >>= \x -> replicate x x |
| 01:24:42 | <lambdabot> | [1,2,2,3,3,3] |
| 01:25:00 | <ski> | > [y | x <- [0,1,2,3],y <- replicate x x] |
| 01:25:01 | <lambdabot> | [1,2,2,3,3,3] |
| 01:25:48 | <int-e> | > concatMap (join replicate) [0..3] -- scnr to bring in another monad |
| 01:25:49 | <lambdabot> | [1,2,2,3,3,3] |
| 01:26:26 | int-e | blames @pl |
| 01:26:52 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 01:28:28 | <monochrom> | "This is getting out of hand. Now there are two monads!" |
| 01:28:50 | <Axman6> | What is this, binad/// |
| 01:28:54 | <Axman6> | ???* |
| 01:29:05 | <Axman6> | or would it be biad |
| 01:33:04 | → | Xyloes joins (~wyx@2400:dd01:103a:1012:5923:33ce:7857:fc04) |
| 01:33:15 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 260 seconds) |
| 01:34:53 | × | mmhat quits (~mmh@p200300f1c7217ae0ee086bfffe095315.dip0.t-ipconnect.de) (Quit: WeeChat 4.1.1) |
| 01:38:45 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 01:40:45 | × | fweht quits (uid404746@id-404746.lymington.irccloud.com) (Quit: Connection closed for inactivity) |
| 01:41:25 | × | stiell quits (~stiell@gateway/tor-sasl/stiell) (Remote host closed the connection) |
| 01:42:20 | → | stiell joins (~stiell@gateway/tor-sasl/stiell) |
| 01:44:13 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 256 seconds) |
| 01:56:05 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 01:58:31 | × | xff0x quits (~xff0x@2405:6580:b080:900:9596:3640:8854:825) (Ping timeout: 256 seconds) |
| 02:01:34 | → | finn_elija joins (~finn_elij@user/finn-elija/x-0085643) |
| 02:01:34 | × | FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Killed (NickServ (Forcing logout FinnElija -> finn_elija))) |
| 02:01:34 | finn_elija | is now known as FinnElija |
| 02:02:58 | → | nate4 joins (~nate@c-98-45-158-125.hsd1.ca.comcast.net) |
| 02:03:47 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 02:07:39 | → | Sgeo joins (~Sgeo@user/sgeo) |
| 02:08:05 | × | nate4 quits (~nate@c-98-45-158-125.hsd1.ca.comcast.net) (Ping timeout: 240 seconds) |
| 02:12:46 | → | kayvan joins (~user@52-119-115-185.PUBLIC.monkeybrains.net) |
| 02:13:03 | → | xff0x joins (~xff0x@2405:6580:b080:900:9596:3640:8854:825) |
| 02:16:01 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 02:20:32 | → | machinedgod joins (~machinedg@d198-53-218-113.abhsia.telus.net) |
| 02:21:49 | ← | wladek parts (~wladek@4.62.67.34.bc.googleusercontent.com) () |
| 02:22:17 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 02:27:52 | → | sadmax joins (~user@64.130.91.66) |
| 02:30:04 | → | pavonia joins (~user@user/siracusa) |
| 02:35:20 | × | sadmax quits (~user@64.130.91.66) (Ping timeout: 245 seconds) |
| 02:35:51 | × | machinedgod quits (~machinedg@d198-53-218-113.abhsia.telus.net) (Ping timeout: 268 seconds) |
| 02:46:36 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 02:50:07 | → | fyfor joins (~fyfor@2600:1700:ef60:e710:6b5d:5ca:2040:2f69) |
| 02:50:10 | → | iqubic joins (~avi@2601:602:9502:c70:c94f:89a4:f1d7:2a2a) |
| 02:51:53 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 03:03:30 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 03:07:49 | × | td_ quits (~td@i5387093C.versanet.de) (Ping timeout: 246 seconds) |
| 03:09:13 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 256 seconds) |
| 03:09:50 | × | ddellacosta quits (~ddellacos@ool-44c73d16.dyn.optonline.net) (Ping timeout: 256 seconds) |
| 03:09:50 | → | td_ joins (~td@i53870917.versanet.de) |
| 03:10:11 | × | peterbecich quits (~Thunderbi@047-229-123-186.res.spectrum.com) (Ping timeout: 264 seconds) |
| 03:11:49 | → | ddellacosta joins (~ddellacos@ool-44c73d16.dyn.optonline.net) |
| 03:14:23 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 03:22:02 | × | fyfor quits (~fyfor@2600:1700:ef60:e710:6b5d:5ca:2040:2f69) (Quit: Client closed) |
| 03:23:52 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 255 seconds) |
| 03:35:40 | phma_ | is now known as phma |
| 03:36:13 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 03:42:38 | × | lottaquestions quits (~nick@2607:fa49:503d:b200:ced0:26d6:58ac:b557) (Ping timeout: 260 seconds) |
| 03:45:32 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 256 seconds) |
| 03:46:46 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 03:46:57 | → | nate4 joins (~nate@c-98-45-158-125.hsd1.ca.comcast.net) |
| 03:47:13 | → | jmpxor joins (~jmpxor@d149-67-225-73.try.wideopenwest.com) |
| 03:52:40 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 255 seconds) |
| 03:55:59 | → | finn_elija joins (~finn_elij@user/finn-elija/x-0085643) |
| 03:55:59 | × | FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Killed (NickServ (Forcing logout FinnElija -> finn_elija))) |
| 03:55:59 | finn_elija | is now known as FinnElija |
| 04:08:32 | → | sophie_sym joins (~sophie_sy@104.220.248.22) |
| 04:11:33 | × | sophie_sym quits (~sophie_sy@104.220.248.22) (Client Quit) |
| 04:23:27 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:117f:a0a1:ad81:5c35) |
| 04:26:06 | <JeremyB99> | I've got a question about the getLine function and functions that are unsafe if provided nothing. |
| 04:26:41 | × | jmpxor quits (~jmpxor@d149-67-225-73.try.wideopenwest.com) (Remote host closed the connection) |
| 04:27:43 | × | chexum quits (~quassel@gateway/tor-sasl/chexum) (Ping timeout: 240 seconds) |
| 04:28:36 | → | chexum joins (~quassel@gateway/tor-sasl/chexum) |
| 04:30:12 | <Axman6> | JeremyB99: Don't ask to ask, just ask :) |
| 04:32:55 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:117f:a0a1:ad81:5c35) (Ping timeout: 260 seconds) |
| 04:36:25 | → | JeremyB99 joins (~JeremyB99@208.64.173.5) |
| 04:36:47 | → | JeremyB41 joins (~JeremyB99@208.64.173.5) |
| 04:40:47 | <JeremyB41> | I have a function called check that takes a String -> String that crashes if it is given no input, but when I use it with the function with getLine, even when I don't input anything, my function seems to be completely safe. Does getLine convert blank inputs into something else? |
| 04:43:07 | <JeremyB41> | and should I convert my check function to something safer anyway like Maybe String -> Maybe String |
| 04:49:22 | × | nate4 quits (~nate@c-98-45-158-125.hsd1.ca.comcast.net) (Ping timeout: 255 seconds) |
| 04:50:45 | × | AlienCipher quits (~AlienCiph@113.164.176.43) (Quit: Ping timeout (120 seconds)) |
| 04:54:58 | → | aforemny joins (~aforemny@2001:9e8:6cc7:1300:96d5:106c:58e4:1727) |
| 04:55:11 | × | JeremyB99 quits (~JeremyB99@208.64.173.5) (Ping timeout: 256 seconds) |
| 04:55:32 | × | JeremyB41 quits (~JeremyB99@208.64.173.5) (Ping timeout: 250 seconds) |
| 04:56:55 | × | aforemny_ quits (~aforemny@i59F516DA.versanet.de) (Ping timeout: 276 seconds) |
| 04:56:59 | × | kayvan quits (~user@52-119-115-185.PUBLIC.monkeybrains.net) (Ping timeout: 264 seconds) |
| 04:59:40 | EvanR_ | is now known as EvanR |
| 05:00:23 | <EvanR> | you saw two nested problems and said I know, I'll use a monad! Now you have one problem |
| 05:00:49 | × | johnw quits (~johnw@69.62.242.138) (Quit: ZNC - http://znc.in) |
| 05:05:53 | × | [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Read error: Connection reset by peer) |
| 05:07:48 | × | seeg123456 quits (~seeg12345@64.176.64.83) (Quit: Gateway shutdown) |
| 05:18:59 | → | JeremyB99 joins (~JeremyB99@208.64.173.44) |
| 05:23:26 | <jackdk> | JeremyB99: welcome back. I think the reason your `check`-using code doesn't crash is because lazy evaluation means nothing is trying to consume the result and your function never gets run. I would definitely rewrite `check` to have type `String :: Maybe String`. See also: https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/ |
| 05:23:49 | <jackdk> | If you want to post your code into a pastebin, we can confirm this theory. @where paste |
| 05:23:53 | <jackdk> | @where paste |
| 05:23:53 | <lambdabot> | Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com |
| 05:24:26 | → | JeremyB71 joins (~JeremyB99@208.64.173.44) |
| 05:29:02 | <JeremyB71> | https://paste.tomsmeding.com/ungryHdy |
| 05:30:35 | <jackdk> | JeremyB71: `check ""` will return `"Invalid Move"` because of the `otherwise` clause; you can test this in GHCi |
| 05:34:10 | <iqubic> | What are we doing here? |
| 05:35:05 | <jackdk> | learning to write Haskell via a rock-paper-scissors implementation, looks like |
| 05:35:17 | <jackdk> | Also, you might want to add `data Move = Rock | Paper | Scissors deriving (Eq, Show)` and then work with that more specific type |
| 05:35:24 | × | JeremyB71 quits (~JeremyB99@208.64.173.44) (Ping timeout: 250 seconds) |
| 05:35:28 | × | JeremyB99 quits (~JeremyB99@208.64.173.44) (Ping timeout: 256 seconds) |
| 05:44:56 | × | todi quits (~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Remote host closed the connection) |
| 05:48:43 | → | qqq joins (~qqq@92.43.167.61) |
| 05:49:25 | × | myxos quits (~myxos@065-028-251-121.inf.spectrum.com) (Remote host closed the connection) |
| 05:53:20 | → | JeremyB99 joins (~JeremyB99@208.64.173.19) |
| 05:55:16 | <JeremyB99> | Did my last four messages get through? My internet can be pretty horrible sometimes |
| 05:56:07 | → | zetef joins (~quassel@2a02:2f00:5201:4b00:19c:1be6:f517:649f) |
| 05:56:44 | × | newsham quits (~newsham@2603-800c-2c01-6825-6099-561e-33fd-e2ba.res6.spectrum.com) (Quit: Client closed) |
| 05:57:55 | <jackdk> | JeremyB99: https://www.irccloud.com/pastebin/80SKgwOy/WhatISaw.txt |
| 05:58:36 | → | todi joins (~todi@p4fd1a3e6.dip0.t-ipconnect.de) |
| 05:59:07 | <JeremyB99> | Ah, sorry |
| 05:59:37 | <JeremyB99> | JeremyB99: What I'm still confused about is why doing something like check 17 errors in ghci, but doing |
| 05:59:37 | <JeremyB99> | [00:42] JeremyB99: main. What is you move player one? 17. Doesn't crash the function, but instead provides the otherwise guard in ghci |
| 05:59:37 | <JeremyB99> | [00:42] JeremyB99: Shouldn't those two be equivalent? |
| 06:02:33 | <monochrom> | check 17? check "17"? |
| 06:03:00 | <probie> | monochrom: They mean line 17 |
| 06:03:11 | <JeremyB99> | Nah, just the number itself 17 :: integer |
| 06:03:33 | → | _ht joins (~Thunderbi@28-52-174-82.ftth.glasoperator.nl) |
| 06:03:34 | <probie> | s/integer/Integer/ |
| 06:05:38 | × | zetef quits (~quassel@2a02:2f00:5201:4b00:19c:1be6:f517:649f) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) |
| 06:06:32 | → | zetef joins (~quassel@2a02:2f00:5201:4b00:19c:1be6:f517:649f) |
| 06:07:19 | <JeremyB99> | Doing check (17::Int) gives an error, but providing 17 or even just hitting enter and providing nothing at all in response to the "what is your first move?" question doesn't crash |
| 06:08:47 | <jackdk> | Yeah because providing no input will give you the string `""` as a result, entering `17` will give you the string `"17"` as a result, but writing `17` in GHCi means you have to abide by Haskell's syntax, where sequences of numerals are interpreted as numbers. |
| 06:09:52 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer) |
| 06:10:07 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 06:10:41 | → | Axma32854 joins (~Axman6@user/axman6) |
| 06:11:03 | <JeremyB99> | Oh, so the reason that the function check is safe is because getLine always provides a string for the guards to reject |
| 06:12:03 | <jackdk> | yes, exactly. |
| 06:12:42 | <jackdk> | I don't know if you saw the previous message, but I recommend introducing a separate data type for your moves, so that check can parse into something more precise than string |
| 06:13:14 | × | Axman6 quits (~Axman6@user/axman6) (Ping timeout: 260 seconds) |
| 06:14:55 | <JeremyB99> | Thanks. Are there any other parts of my code that should be changed? |
| 06:16:41 | → | rosco joins (~rosco@175.136.157.149) |
| 06:16:52 | <JeremyB99> | I tried to make my code as clean as possible, but since my first language is Python, a lot of this stuff like recursion and monads are new to me. |
| 06:17:08 | <jackdk> | You can use empty strings `""` instead of strings containing a single space `" "`, and I'd probably also introduce a data type for players and winners: `data Player = Player1 | Player 2`; `data Winner = WinningPlayer Player | Draw`; then you can change the type of `moveEvaluate :: Move -> Move -> Winner` to get something more precise. Turning it back into a string for printing would then be the responsibility of another function |
| 06:17:51 | × | zetef quits (~quassel@2a02:2f00:5201:4b00:19c:1be6:f517:649f) (Ping timeout: 268 seconds) |
| 06:18:19 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 06:19:45 | <JeremyB99> | And should I use Maybe for handling IO inputs, or should I just leave it? |
| 06:20:09 | <jackdk> | Sorry, can you unpack that question a bit more? I'm not sure what you're asking |
| 06:21:49 | <JeremyB99> | Like turning the check function into Maybe String -> Maybe Move or something like that |
| 06:22:28 | → | chomwitt joins (~chomwitt@2a02:587:7a24:bc00:1ac0:4dff:fedb:a3f1) |
| 06:22:33 | <JeremyB99> | Or keeping it string -> move since it seems safe |
| 06:23:38 | <jackdk> | You won't be able to restrict the return type to `Move` because what will you do with nonsense or empty input? But turning it into `check :: String -> Maybe Move` seems pretty good to me. |
| 06:25:15 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 06:25:20 | → | acidjnk joins (~acidjnk@p200300d6e72b935790ce6c45c9ff7d13.dip0.t-ipconnect.de) |
| 06:28:20 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 268 seconds) |
| 06:29:11 | → | euleritian joins (~euleritia@dynamic-046-114-205-112.46.114.pool.telefonica.de) |
| 06:29:42 | × | monochrom quits (trebla@216.138.220.146) (Quit: ZNC 1.8.2+deb3build2 - https://znc.in) |
| 06:29:59 | × | raym quits (~ray@user/raym) (Ping timeout: 264 seconds) |
| 06:31:25 | × | JeremyB99 quits (~JeremyB99@208.64.173.19) (Ping timeout: 268 seconds) |
| 06:32:38 | → | jinsun_ joins (~jinsun@user/jinsun) |
| 06:32:38 | jinsun | is now known as Guest9210 |
| 06:32:39 | × | Guest9210 quits (~jinsun@user/jinsun) (Killed (silver.libera.chat (Nickname regained by services))) |
| 06:32:39 | jinsun_ | is now known as jinsun |
| 06:36:35 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 06:42:50 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 06:51:15 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 06:51:49 | → | misterfish joins (~misterfis@84-53-85-146.bbserv.nl) |
| 06:52:31 | × | azimut quits (~azimut@gateway/tor-sasl/azimut) (Ping timeout: 240 seconds) |
| 06:52:37 | × | analoq quits (~yashi@user/dies) (Ping timeout: 256 seconds) |
| 06:53:19 | → | johnw joins (~johnw@69.62.242.138) |
| 06:53:45 | × | haskellbridge quits (~haskellbr@069-135-003-034.biz.spectrum.com) (Ping timeout: 256 seconds) |
| 06:54:24 | → | analoq joins (~yashi@user/dies) |
| 06:56:17 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:7df2:227d:9fab:9d9c) |
| 06:56:31 | × | stiell quits (~stiell@gateway/tor-sasl/stiell) (Ping timeout: 240 seconds) |
| 06:56:31 | × | ChaiTRex quits (~ChaiTRex@user/chaitrex) (Ping timeout: 240 seconds) |
| 06:57:56 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 06:59:00 | → | ChaiTRex joins (~ChaiTRex@user/chaitrex) |
| 07:03:30 | × | Fijxu quits (~Fijxu@user/fijxu) (Quit: XD!!) |
| 07:06:32 | × | cbarrett quits (sid192934@helmsley.irccloud.com) (Read error: Connection reset by peer) |
| 07:06:39 | × | SrPx quits (sid108780@uxbridge.irccloud.com) (Ping timeout: 256 seconds) |
| 07:06:40 | → | cbarrett joins (sid192934@id-192934.helmsley.irccloud.com) |
| 07:06:56 | → | thelounge7933 joins (~thelounge@2a05:f480:1400:24b2:5400:4ff:fe76:a8f3) |
| 07:07:09 | × | dy quits (sid3438@user/dy) (Read error: Connection reset by peer) |
| 07:07:17 | → | dy joins (sid3438@user/dy) |
| 07:07:20 | → | acro_ joins (~acro@user/acro) |
| 07:07:20 | → | mrvdb- joins (~mrvdb@2001:19f0:5000:8582:5400:ff:fe07:3df5) |
| 07:07:23 | × | FestiveDragon quits (A_D@libera/staff/dragon) (Quit: ZNC - https://znc.in) |
| 07:07:30 | × | vjoki quits (~vjoki@2a00:d880:3:1::fea1:9ae) (Ping timeout: 260 seconds) |
| 07:07:30 | × | Benzi-Junior quits (~BenziJuni@88-149-64-112.du.xdsl.is) (Ping timeout: 260 seconds) |
| 07:07:34 | × | mrvdb quits (~mrvdb@2001:19f0:5000:8582:5400:ff:fe07:3df5) (Ping timeout: 276 seconds) |
| 07:07:37 | → | madnight_ joins (~madnight@static.59.103.201.195.clients.your-server.de) |
| 07:07:39 | → | A_Dragon joins (A_D@libera/staff/dragon) |
| 07:07:40 | × | ames quits (~amelia@offtopia/offtopian/amelia) (Quit: Ping timeout (120 seconds)) |
| 07:07:42 | × | masterbuilder quits (~quassel@user/masterbuilder) (Remote host closed the connection) |
| 07:07:43 | × | ec quits (~ec@gateway/tor-sasl/ec) (Ping timeout: 240 seconds) |
| 07:07:51 | × | lambdabot quits (~lambdabot@haskell/bot/lambdabot) (Ping timeout: 260 seconds) |
| 07:07:51 | × | orcus quits (~orcus@mail.brprice.uk) (Ping timeout: 260 seconds) |
| 07:07:54 | → | ames joins (~amelia@offtopia/offtopian/amelia) |
| 07:07:55 | → | SrPx joins (sid108780@id-108780.uxbridge.irccloud.com) |
| 07:08:01 | × | adanwan quits (~adanwan@gateway/tor-sasl/adanwan) (Read error: Connection reset by peer) |
| 07:08:01 | → | vjoki joins (~vjoki@2a00:d880:3:1::fea1:9ae) |
| 07:08:05 | → | dispater- joins (~dispater@mail.brprice.uk) |
| 07:08:07 | × | ChaiTRex quits (~ChaiTRex@user/chaitrex) (Ping timeout: 240 seconds) |
| 07:08:07 | × | chexum quits (~quassel@gateway/tor-sasl/chexum) (Ping timeout: 240 seconds) |
| 07:08:07 | × | FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Ping timeout: 240 seconds) |
| 07:08:34 | → | ChaiTRex joins (~ChaiTRex@user/chaitrex) |
| 07:08:35 | → | orcus joins (~orcus@mail.brprice.uk) |
| 07:08:38 | × | madnight quits (~madnight@static.59.103.201.195.clients.your-server.de) (Read error: Connection reset by peer) |
| 07:08:43 | → | FinnElija joins (~finn_elij@user/finn-elija/x-0085643) |
| 07:08:47 | × | thelounge793 quits (~thelounge@2a05:f480:1400:24b2:5400:4ff:fe76:a8f3) (Ping timeout: 260 seconds) |
| 07:08:47 | thelounge7933 | is now known as thelounge793 |
| 07:08:48 | → | ec joins (~ec@gateway/tor-sasl/ec) |
| 07:08:49 | → | chexum joins (~quassel@gateway/tor-sasl/chexum) |
| 07:08:51 | × | acro quits (~acro@user/acro) (Read error: Connection reset by peer) |
| 07:08:51 | acro_ | is now known as acro |
| 07:08:52 | × | tdammers quits (~tdammers@219-131-178-143.ftth.glasoperator.nl) (Ping timeout: 276 seconds) |
| 07:08:54 | × | dispater quits (~dispater@mail.brprice.uk) (Ping timeout: 260 seconds) |
| 07:08:55 | → | masterbuilder joins (~quassel@user/masterbuilder) |
| 07:08:59 | × | Ranhir quits (~Ranhir@157.97.53.139) (Ping timeout: 252 seconds) |
| 07:09:27 | → | lambdabot joins (~lambdabot@silicon.int-e.eu) |
| 07:09:27 | × | lambdabot quits (~lambdabot@silicon.int-e.eu) (Changing host) |
| 07:09:27 | → | lambdabot joins (~lambdabot@haskell/bot/lambdabot) |
| 07:09:27 | ChanServ | sets mode +v lambdabot |
| 07:09:28 | → | stiell joins (~stiell@gateway/tor-sasl/stiell) |
| 07:09:36 | → | adanwan joins (~adanwan@gateway/tor-sasl/adanwan) |
| 07:09:38 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 07:09:45 | → | Benzi-Junior joins (~BenziJuni@dsl-149-64-112.hive.is) |
| 07:10:48 | → | Ranhir joins (~Ranhir@157.97.53.139) |
| 07:10:49 | → | Fijxu joins (~Fijxu@us.zzls.xyz) |
| 07:14:46 | → | alp_ joins (~alp@2001:861:e3d6:8f80:ec88:aa8f:d35:98fc) |
| 07:15:17 | × | shriekingnoise quits (~shrieking@186.137.175.87) (Ping timeout: 256 seconds) |
| 07:16:53 | × | rosco quits (~rosco@175.136.157.149) (Quit: Lost terminal) |
| 07:19:31 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 07:21:50 | → | tdammers joins (~tdammers@219-131-178-143.ftth.glasoperator.nl) |
| 07:22:53 | × | Fijxu quits (~Fijxu@us.zzls.xyz) (Quit: XD!!) |
| 07:23:51 | → | monochrom joins (trebla@216.138.220.146) |
| 07:24:39 | → | Fijxu joins (~Fijxu@us.zzls.xyz) |
| 07:26:35 | × | Fijxu quits (~Fijxu@us.zzls.xyz) (Client Quit) |
| 07:26:49 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 07:28:28 | → | Fijxu joins (~Fijxu@user/fijxu) |
| 07:28:47 | → | Square2 joins (~Square4@user/square) |
| 07:30:11 | → | coot joins (~coot@89-69-206-216.dynamic.chello.pl) |
| 07:31:43 | × | Square quits (~Square@user/square) (Ping timeout: 255 seconds) |
| 07:33:30 | → | Noob_Programmer joins (~Noob_Prog@14.139.187.71) |
| 07:33:39 | <Noob_Programmer> | hi |
| 07:35:16 | <Fijxu> | test |
| 07:35:22 | <Fijxu> | and hai |
| 07:35:24 | <Fijxu> | :) |
| 07:37:12 | <ski> | allo |
| 07:37:28 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 276 seconds) |
| 07:42:23 | <Noob_Programmer> | i am starting haskell , i have coded a little in C language and all the mysticness around haskell has drawn me in , all i know right now that the thought process itself is ver different for function programming so am quite excited |
| 07:42:33 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 07:43:12 | <ski> | it sure it, yes |
| 07:43:22 | <ski> | be welcomed :) |
| 07:44:02 | <ski> | if you've any question(s), feel free to state them here. sometimes it may take a little while for people to notice, so be patient |
| 07:44:32 | <ski> | do you have access to any learning resources ? |
| 07:48:25 | → | idgaen joins (~idgaen@2a01:e0a:498:fd50:fcc6:bb5d:489a:ce8c) |
| 07:49:07 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 07:49:56 | <Noob_Programmer> | i am learnign from leanyouhaskell.com |
| 07:50:16 | <ski> | do consider perhaps using |
| 07:50:21 | <ski> | @where CIS194 |
| 07:50:21 | <lambdabot> | <https://github.com/byorgey/haskell-course>,<https://www.seas.upenn.edu/~cis194/spring13/lectures.html> |
| 07:50:26 | <Noob_Programmer> | thanks |
| 07:50:35 | <ski> | as well (the 2013 spring instance, latter link) |
| 07:50:42 | <ski> | since LYAH doesn't have any exercises |
| 07:51:09 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 07:51:41 | <Noob_Programmer> | oh , thanks for the exercises as well |
| 07:51:51 | <Noob_Programmer> | they look very intersting |
| 07:54:34 | → | tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) |
| 07:55:59 | → | gmg joins (~user@user/gehmehgeh) |
| 07:56:16 | → | lortabac joins (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) |
| 07:56:36 | × | lortabac quits (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Client Quit) |
| 07:56:58 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 276 seconds) |
| 08:01:21 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 08:01:24 | → | lortabac joins (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) |
| 08:02:20 | → | not_reserved joins (~not_reser@45.144.113.233) |
| 08:04:32 | → | AlienCipher joins (~AlienCiph@113.164.176.43) |
| 08:05:11 | → | sord937 joins (~sord937@gateway/tor-sasl/sord937) |
| 08:06:42 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 08:10:49 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 08:16:50 | × | euleritian quits (~euleritia@dynamic-046-114-205-112.46.114.pool.telefonica.de) (Read error: Connection reset by peer) |
| 08:17:08 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 08:23:21 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 08:24:01 | × | idgaen quits (~idgaen@2a01:e0a:498:fd50:fcc6:bb5d:489a:ce8c) (Quit: WeeChat 4.1.1) |
| 08:33:12 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 08:37:10 | × | sord937 quits (~sord937@gateway/tor-sasl/sord937) (Remote host closed the connection) |
| 08:37:36 | → | sord937 joins (~sord937@gateway/tor-sasl/sord937) |
| 08:39:31 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 245 seconds) |
| 08:40:00 | × | Noob_Programmer quits (~Noob_Prog@14.139.187.71) (Ping timeout: 250 seconds) |
| 08:41:35 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 08:42:45 | → | ubert joins (~Thunderbi@77.119.173.120.wireless.dyn.drei.com) |
| 08:45:46 | → | rosco joins (~rosco@175.136.157.149) |
| 08:46:11 | → | __monty__ joins (~toonn@user/toonn) |
| 08:52:31 | → | CiaoSen joins (~Jura@2a05:5800:2aa:8f00:2a3a:4dff:fe84:dbd5) |
| 08:53:44 | × | econo_ quits (uid147250@id-147250.tinside.irccloud.com) (Quit: Connection closed for inactivity) |
| 08:58:01 | → | machinedgod joins (~machinedg@d198-53-218-113.abhsia.telus.net) |
| 09:01:33 | → | danza joins (~francesco@151.19.227.182) |
| 09:06:06 | → | Unicorn_Princess joins (~Unicorn_P@user/Unicorn-Princess/x-3540542) |
| 09:06:08 | × | danza quits (~francesco@151.19.227.182) (Ping timeout: 252 seconds) |
| 09:06:30 | × | misterfish quits (~misterfis@84-53-85-146.bbserv.nl) (Ping timeout: 260 seconds) |
| 09:06:31 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 276 seconds) |
| 09:09:33 | → | danse-nr3 joins (~danse@151.19.227.182) |
| 09:16:28 | → | fendor joins (~fendor@2a02:8388:1605:d100:267b:1353:13d7:4f0c) |
| 09:17:42 | → | Pickchea joins (~private@user/pickchea) |
| 09:18:17 | × | Sgeo quits (~Sgeo@user/sgeo) (Read error: Connection reset by peer) |
| 09:18:28 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 09:19:34 | → | Jackneill joins (~Jackneill@20014C4E1E120500DDDE9742A0209DC5.dsl.pool.telekom.hu) |
| 09:24:05 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 09:24:06 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:7df2:227d:9fab:9d9c) (Read error: Connection reset by peer) |
| 09:25:56 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:7df2:227d:9fab:9d9c) |
| 09:30:10 | × | tzh quits (~tzh@c-71-193-181-0.hsd1.or.comcast.net) (Quit: zzz) |
| 09:35:35 | → | dhil joins (~dhil@2001:8e0:2014:3100:b2f1:d5be:95a9:417) |
| 09:36:10 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 09:38:39 | × | Xyloes quits (~wyx@2400:dd01:103a:1012:5923:33ce:7857:fc04) (Remote host closed the connection) |
| 09:40:03 | → | Xyloes joins (~wyx@2400:dd01:103a:1012:5923:33ce:7857:fc04) |
| 09:41:36 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 245 seconds) |
| 09:43:57 | × | eggplantade quits (~Eggplanta@2600:1700:38c5:d800:1574:a602:a028:b4e) (Remote host closed the connection) |
| 09:46:54 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 09:56:55 | → | misterfish joins (~misterfis@87.215.131.102) |
| 09:59:58 | × | mikess quits (~sam@user/mikess) (Quit: leaving) |
| 10:02:08 | → | Noob_Programmer joins (~Noob_Prog@103.4.222.252) |
| 10:06:28 | → | cfricke joins (~cfricke@user/cfricke) |
| 10:10:29 | → | Lord_of_Life_ joins (~Lord@user/lord-of-life/x-2819915) |
| 10:10:57 | × | Lord_of_Life quits (~Lord@user/lord-of-life/x-2819915) (Ping timeout: 260 seconds) |
| 10:13:28 | Lord_of_Life_ | is now known as Lord_of_Life |
| 10:15:10 | × | ec quits (~ec@gateway/tor-sasl/ec) (Remote host closed the connection) |
| 10:15:42 | → | ec joins (~ec@gateway/tor-sasl/ec) |
| 10:16:26 | → | eggplantade joins (~Eggplanta@2600:1700:38c5:d800:c5ae:90af:10b1:51fe) |
| 10:18:16 | × | chexum quits (~quassel@gateway/tor-sasl/chexum) (Remote host closed the connection) |
| 10:18:34 | → | chexum joins (~quassel@gateway/tor-sasl/chexum) |
| 10:19:08 | → | [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470) |
| 10:21:08 | × | eggplantade quits (~Eggplanta@2600:1700:38c5:d800:c5ae:90af:10b1:51fe) (Ping timeout: 268 seconds) |
| 10:26:34 | → | chele joins (~chele@user/chele) |
| 10:35:00 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:7df2:227d:9fab:9d9c) (Ping timeout: 268 seconds) |
| 10:35:19 | × | lortabac quits (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Ping timeout: 268 seconds) |
| 10:39:20 | × | Pickchea quits (~private@user/pickchea) (Quit: Leaving) |
| 10:40:18 | × | stiell quits (~stiell@gateway/tor-sasl/stiell) (Remote host closed the connection) |
| 10:40:48 | → | stiell joins (~stiell@gateway/tor-sasl/stiell) |
| 10:41:56 | × | tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 10:50:34 | → | tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) |
| 10:55:42 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer) |
| 10:55:58 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 10:56:07 | → | lortabac joins (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) |
| 10:58:09 | × | krei-se quits (~krei-se@p5085dea2.dip0.t-ipconnect.de) (Quit: ZNC 1.8.2 - https://znc.in) |
| 10:59:24 | → | krei-se joins (~krei-se@p5085dea2.dip0.t-ipconnect.de) |
| 11:01:47 | → | eggplantade joins (~Eggplanta@2600:1700:38c5:d800:c5ae:90af:10b1:51fe) |
| 11:14:30 | × | lortabac quits (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Ping timeout: 245 seconds) |
| 11:16:51 | <carbolymer> | @pl flip . |
| 11:16:51 | <lambdabot> | (line 1, column 7): |
| 11:16:51 | <lambdabot> | unexpected end of input |
| 11:16:51 | <lambdabot> | expecting white space or simple term |
| 11:17:03 | <carbolymer> | @pl flip (.) |
| 11:17:03 | <lambdabot> | flip (.) |
| 11:27:56 | × | danse-nr3 quits (~danse@151.19.227.182) (Ping timeout: 252 seconds) |
| 11:29:19 | × | Noob_Programmer quits (~Noob_Prog@103.4.222.252) (Quit: Client closed) |
| 11:29:43 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer) |
| 11:30:31 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 11:36:32 | → | lottaquestions joins (~nick@2607:fa49:503d:b200:791c:1e35:f3fd:c3f3) |
| 11:36:49 | → | raym joins (~ray@user/raym) |
| 11:37:54 | <ski> | carbolymer : `(>>>)' |
| 11:38:39 | <carbolymer> | oh right, thanks ski |
| 11:42:50 | × | adanwan quits (~adanwan@gateway/tor-sasl/adanwan) (Remote host closed the connection) |
| 11:43:09 | → | adanwan joins (~adanwan@gateway/tor-sasl/adanwan) |
| 11:43:35 | × | santiagopim quits (~user@90.167.66.131) (Remote host closed the connection) |
| 11:45:18 | → | santiagopim joins (~user@90.167.66.131) |
| 11:49:25 | → | santiago` joins (~user@90.167.66.131) |
| 11:49:28 | × | santiago` quits (~user@90.167.66.131) (Remote host closed the connection) |
| 11:49:28 | × | santiagopim quits (~user@90.167.66.131) (Remote host closed the connection) |
| 11:50:37 | → | santiagopim joins (~user@90.167.66.131) |
| 11:53:01 | → | lortabac joins (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) |
| 11:53:17 | → | danse-nr3 joins (~danse@151.19.227.182) |
| 12:13:13 | × | CiaoSen quits (~Jura@2a05:5800:2aa:8f00:2a3a:4dff:fe84:dbd5) (Ping timeout: 256 seconds) |
| 12:22:19 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 12:23:54 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 12:26:10 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 12:28:57 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 12:29:40 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 12:33:49 | ← | L29Ah parts (~L29Ah@wikipedia/L29Ah) () |
| 12:35:12 | × | danse-nr3 quits (~danse@151.19.227.182) (Read error: Connection reset by peer) |
| 12:36:16 | → | danse-nr3 joins (~danse@151.37.242.128) |
| 12:37:51 | → | seeg123456 joins (~seeg12345@64.176.64.83) |
| 12:43:10 | → | L29Ah joins (~L29Ah@wikipedia/L29Ah) |
| 12:49:47 | → | Pickchea joins (~private@user/pickchea) |
| 12:53:45 | → | miguelnegrao joins (~miguelneg@2001:818:dc71:d100:f016:1b9:e7c1:3567) |
| 13:02:28 | × | foul_owl quits (~kerry@157.97.134.168) (Ping timeout: 276 seconds) |
| 13:06:16 | → | azimut joins (~azimut@gateway/tor-sasl/azimut) |
| 13:15:51 | → | foul_owl joins (~kerry@174-21-66-189.tukw.qwest.net) |
| 13:15:58 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 13:16:07 | × | Ranhir quits (~Ranhir@157.97.53.139) (Read error: Connection reset by peer) |
| 13:17:25 | → | CiaoSen joins (~Jura@2a05:5800:2aa:8f00:2a3a:4dff:fe84:dbd5) |
| 13:20:55 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 13:21:23 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 13:24:15 | → | Ranhir joins (~Ranhir@157.97.53.139) |
| 13:25:12 | → | idgaen joins (~idgaen@2a01:e0a:498:fd50:fcc6:bb5d:489a:ce8c) |
| 13:29:52 | → | fyfor joins (~fyfor@152.26.89.235) |
| 13:34:40 | → | john joins (~john@89-253-95-178.customers.ownit.se) |
| 13:34:50 | × | john quits (~john@89-253-95-178.customers.ownit.se) (Client Quit) |
| 13:38:47 | × | tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 13:44:19 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds) |
| 13:48:25 | × | miguelnegrao quits (~miguelneg@2001:818:dc71:d100:f016:1b9:e7c1:3567) (Quit: miguelnegrao) |
| 13:50:41 | × | xff0x quits (~xff0x@2405:6580:b080:900:9596:3640:8854:825) (Ping timeout: 256 seconds) |
| 13:52:11 | → | tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) |
| 13:52:18 | × | fyfor quits (~fyfor@152.26.89.235) (Quit: Client closed) |
| 13:52:50 | → | xff0x joins (~xff0x@178.255.149.135) |
| 13:54:27 | → | sawilagar joins (~sawilagar@user/sawilagar) |
| 13:56:36 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 13:57:26 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 14:01:25 | × | pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 255 seconds) |
| 14:03:57 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 14:06:31 | → | pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it) |
| 14:08:18 | × | xff0x quits (~xff0x@178.255.149.135) (Ping timeout: 256 seconds) |
| 14:10:14 | → | xff0x joins (~xff0x@2405:6580:b080:900:f6fc:7981:2e92:1c0b) |
| 14:12:19 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 14:13:52 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 14:16:58 | → | myxos joins (~myxos@065-028-251-121.inf.spectrum.com) |
| 14:18:46 | × | ddellacosta quits (~ddellacos@ool-44c73d16.dyn.optonline.net) (Quit: WeeChat 4.1.1) |
| 14:18:53 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 14:18:55 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 14:19:10 | × | raym quits (~ray@user/raym) (Ping timeout: 268 seconds) |
| 14:19:58 | × | jinsun quits (~jinsun@user/jinsun) (Quit: No Ping reply in 180 seconds.) |
| 14:20:44 | → | thegeekinside joins (~thegeekin@189.180.53.210) |
| 14:21:06 | → | Pixi` joins (~Pixi@user/pixi) |
| 14:21:58 | → | jinsun joins (~jinsun@user/jinsun) |
| 14:22:54 | × | Pixi quits (~Pixi@user/pixi) (Ping timeout: 260 seconds) |
| 14:23:56 | → | shriekingnoise joins (~shrieking@186.137.175.87) |
| 14:27:53 | × | Square2 quits (~Square4@user/square) (Ping timeout: 252 seconds) |
| 14:30:20 | → | mulk joins (~mulk@p5b2dc93f.dip0.t-ipconnect.de) |
| 14:31:12 | × | jinsun quits (~jinsun@user/jinsun) (Quit: No Ping reply in 180 seconds.) |
| 14:31:42 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 14:31:44 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 14:32:37 | → | ystael joins (~ystael@user/ystael) |
| 14:32:38 | → | jinsun joins (~jinsun@user/jinsun) |
| 14:36:23 | × | idgaen quits (~idgaen@2a01:e0a:498:fd50:fcc6:bb5d:489a:ce8c) (Quit: WeeChat 4.1.1) |
| 14:44:31 | × | Pickchea quits (~private@user/pickchea) (Quit: Leaving) |
| 14:45:21 | → | fweht joins (uid404746@id-404746.lymington.irccloud.com) |
| 14:45:31 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer) |
| 14:45:43 | → | euleritian joins (~euleritia@dynamic-046-114-203-019.46.114.pool.telefonica.de) |
| 14:46:01 | × | euleritian quits (~euleritia@dynamic-046-114-203-019.46.114.pool.telefonica.de) (Read error: Connection reset by peer) |
| 14:46:18 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 14:50:12 | A_Dragon | is now known as Festive_Derg |
| 14:50:13 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 14:50:31 | → | raym joins (~ray@user/raym) |
| 14:55:37 | × | Xyloes quits (~wyx@2400:dd01:103a:1012:5923:33ce:7857:fc04) (Quit: Konversation terminated!) |
| 14:56:25 | × | Unicorn_Princess quits (~Unicorn_P@user/Unicorn-Princess/x-3540542) (Remote host closed the connection) |
| 14:56:57 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 14:57:33 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 256 seconds) |
| 14:58:00 | → | euleritian joins (~euleritia@dynamic-046-114-203-019.46.114.pool.telefonica.de) |
| 14:58:19 | → | Unicorn_Princess joins (~Unicorn_P@user/Unicorn-Princess/x-3540542) |
| 14:58:40 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 14:59:47 | → | haskellbridge joins (~haskellbr@069-135-003-034.biz.spectrum.com) |
| 14:59:47 | ChanServ | sets mode +v haskellbridge |
| 15:05:31 | × | qhong_ quits (~qhong@DN160vrd000d6kpg009l6c0000fj.stanford.edu) (Remote host closed the connection) |
| 15:06:22 | → | edr joins (~edr@user/edr) |
| 15:08:11 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 15:12:44 | × | adanwan quits (~adanwan@gateway/tor-sasl/adanwan) (Remote host closed the connection) |
| 15:13:16 | → | adanwan joins (~adanwan@gateway/tor-sasl/adanwan) |
| 15:16:34 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 15:19:04 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 15:28:51 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 15:31:00 | ← | earldouglas parts (~james@user/earldouglas) () |
| 15:32:14 | × | CiaoSen quits (~Jura@2a05:5800:2aa:8f00:2a3a:4dff:fe84:dbd5) (Ping timeout: 268 seconds) |
| 15:32:38 | → | CiaoSen joins (~Jura@46.167.25.154) |
| 15:38:05 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 15:48:37 | × | Alleria quits (~JohnGalt@user/alleria) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 15:48:46 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 15:49:32 | × | euleritian quits (~euleritia@dynamic-046-114-203-019.46.114.pool.telefonica.de) (Read error: Connection reset by peer) |
| 15:49:49 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 15:53:49 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer) |
| 15:54:01 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 16:01:01 | → | Alleria joins (~JohnGalt@user/alleria) |
| 16:02:10 | × | santiagopim quits (~user@90.167.66.131) (Remote host closed the connection) |
| 16:03:49 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 276 seconds) |
| 16:04:15 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 16:04:30 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 16:04:42 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 16:04:59 | → | santiagopim joins (~user@90.167.66.131) |
| 16:07:37 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 16:13:22 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 16:13:23 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Read error: Connection reset by peer) |
| 16:17:15 | → | kwii joins (~kwii@193.19.201.71) |
| 16:19:06 | × | danse-nr3 quits (~danse@151.37.242.128) (Ping timeout: 268 seconds) |
| 16:20:52 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer) |
| 16:21:21 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 16:21:21 | → | pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) |
| 16:25:51 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) |
| 16:28:47 | → | danza joins (~francesco@151.37.242.128) |
| 16:31:48 | × | cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 4.0.5) |
| 16:33:20 | × | danza quits (~francesco@151.37.242.128) (Read error: Connection reset by peer) |
| 16:34:36 | × | lortabac quits (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Quit: WeeChat 4.1.1) |
| 16:35:17 | → | peterbecich joins (~Thunderbi@047-229-123-186.res.spectrum.com) |
| 16:35:45 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17ce:3699:946:eca8:5cb1:106b) (Ping timeout: 268 seconds) |
| 16:37:03 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) |
| 16:37:10 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) (Read error: Connection reset by peer) |
| 16:44:40 | × | rosco quits (~rosco@175.136.157.149) (Quit: Lost terminal) |
| 16:45:35 | → | idgaen joins (~idgaen@2a01:e0a:498:fd50:fcc6:bb5d:489a:ce8c) |
| 16:48:37 | → | danza joins (~francesco@151.43.236.76) |
| 16:48:51 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) |
| 16:49:11 | <exarkun> | is there a thing like `f <$> xs <*> ys` on [] but which preserves the inner structure (ie, gives you [[f xs0 ys0, ...], [f xs0 ys1, ...]]) |
| 16:51:24 | <exarkun> | oh utility-ht has outerProduct |
| 16:51:30 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) (Read error: Connection reset by peer) |
| 16:52:24 | × | peterbecich quits (~Thunderbi@047-229-123-186.res.spectrum.com) (Ping timeout: 268 seconds) |
| 16:52:43 | × | jmdaemon quits (~jmdaemon@user/jmdaemon) (Ping timeout: 256 seconds) |
| 16:53:03 | → | waleee joins (~waleee@h-176-10-144-38.NA.cust.bahnhof.se) |
| 16:55:29 | <ski> | > getZipList ((*) <$> ZipList [0,1,2,3] <*> ZipList [1,10,100,1000]) -- exarkun ? |
| 16:55:30 | <lambdabot> | [0,10,200,3000] |
| 16:55:48 | <ski> | hm, oh. i misread |
| 16:57:17 | <ski> | @let pam = flip map |
| 16:57:17 | <lambdabot> | Defined. |
| 16:57:19 | <ski> | > [0,1,2,3] `pam` \x -> [1,10,100,1000] `pam` \y -> x * y |
| 16:57:20 | <lambdabot> | [[0,0,0,0],[1,10,100,1000],[2,20,200,2000],[3,30,300,3000]] |
| 16:57:43 | × | azimut quits (~azimut@gateway/tor-sasl/azimut) (Ping timeout: 240 seconds) |
| 17:00:10 | <ski> | > [0,1,2,3] `pam` ([1,10,100,1000] `pam`) . (*) -- not that nice .. |
| 17:00:12 | <lambdabot> | [[0,0,0,0],[1,10,100,1000],[2,20,200,2000],[3,30,300,3000]] |
| 17:00:35 | <ski> | (that's after adding infixl 1 `pam` that is) |
| 17:01:46 | → | azimut joins (~azimut@gateway/tor-sasl/azimut) |
| 17:02:35 | × | CiaoSen quits (~Jura@46.167.25.154) (Ping timeout: 268 seconds) |
| 17:02:58 | × | danza quits (~francesco@151.43.236.76) (Ping timeout: 276 seconds) |
| 17:05:31 | <exarkun> | That looks like it comes pretty close to outerProduct, maybe just with arguments shuffled around a little: outerProduct f xs ys = map (flip map ys . f) xs |
| 17:05:54 | <idgaen> | it seems: pam == (Functor.<&>) |
| 17:06:10 | <exarkun> | oh yea |
| 17:06:36 | <idgaen> | maybe appart for fixity |
| 17:09:17 | × | eggplantade quits (~Eggplanta@2600:1700:38c5:d800:c5ae:90af:10b1:51fe) (Remote host closed the connection) |
| 17:09:34 | → | eggplantade joins (~Eggplanta@2600:1700:38c5:d800:c5ae:90af:10b1:51fe) |
| 17:10:07 | × | alp_ quits (~alp@2001:861:e3d6:8f80:ec88:aa8f:d35:98fc) (Ping timeout: 276 seconds) |
| 17:10:09 | × | machinedgod quits (~machinedg@d198-53-218-113.abhsia.telus.net) (Ping timeout: 256 seconds) |
| 17:10:29 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) |
| 17:11:10 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) (Read error: Connection reset by peer) |
| 17:12:48 | × | [exa] quits (~exa@user/exa/x-3587197) (Remote host closed the connection) |
| 17:13:46 | <ski> | > (*) <<$>> [0,1,2,3] <<*>> [1,10,100,1000] <<*>> id -- hmm |
| 17:13:47 | <lambdabot> | [[0,0,0,0],[1,10,100,1000],[2,20,200,2000],[3,30,300,3000]] |
| 17:14:37 | <ski> | > (\x y z -> x * y + z) <<$>> [0,1,2] <<*>> [1,10,100] <<*>> [2,3,5] <<*>> id |
| 17:14:38 | <lambdabot> | [[[2,3,5],[2,3,5],[2,3,5]],[[3,4,6],[12,13,15],[102,103,105]],[[4,5,7],[22,2... |
| 17:15:18 | <ski> | the `<<*>> id' is kinda annoying. with deep sections, i could make this a little bit nicer |
| 17:15:55 | <ski> | > (*) <<$>> ([0,1,2,3] <<*>> [1,10,100,1000] <<|) -- alas |
| 17:15:57 | <lambdabot> | error: |
| 17:15:57 | <lambdabot> | The operator ‘<<|’ [infixr 4] of a section |
| 17:15:57 | <lambdabot> | must have lower precedence than that of the operand, |
| 17:17:36 | <ski> | idgaen : yes. i'm used to defining `pam', from when `&' and `<&>' wasn't a thing |
| 17:19:35 | <idgaen> | i didn't play with haskell at this old time ;) |
| 17:20:33 | <ski> | Haskell is how i got into IRC |
| 17:22:45 | × | eggplantade quits (~Eggplanta@2600:1700:38c5:d800:c5ae:90af:10b1:51fe) (Remote host closed the connection) |
| 17:28:09 | → | eggplantade joins (~Eggplanta@2600:1700:38c5:d800:c5ae:90af:10b1:51fe) |
| 17:30:26 | × | chomwitt quits (~chomwitt@2a02:587:7a24:bc00:1ac0:4dff:fedb:a3f1) (Read error: Connection reset by peer) |
| 17:31:25 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) |
| 17:32:54 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) (Read error: Connection reset by peer) |
| 17:33:55 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) |
| 17:37:29 | × | pavonia quits (~user@user/siracusa) (Quit: Bye!) |
| 17:38:52 | <glguy> | Haskell is how I got into IRC and now Haskell is how I talk on IRC |
| 17:44:30 | × | tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 17:50:27 | × | misterfish quits (~misterfis@87.215.131.102) (Ping timeout: 260 seconds) |
| 17:53:40 | → | tzh joins (~tzh@c-71-193-181-0.hsd1.or.comcast.net) |
| 17:56:28 | → | raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 17:56:41 | × | Alleria quits (~JohnGalt@user/alleria) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 17:57:45 | → | trev joins (~trev@user/trev) |
| 18:01:43 | × | azimut quits (~azimut@gateway/tor-sasl/azimut) (Ping timeout: 240 seconds) |
| 18:03:25 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) (Read error: Connection reset by peer) |
| 18:04:23 | → | azimut joins (~azimut@gateway/tor-sasl/azimut) |
| 18:05:02 | → | mikess joins (~sam@user/mikess) |
| 18:09:49 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 255 seconds) |
| 18:10:34 | × | eggplantade quits (~Eggplanta@2600:1700:38c5:d800:c5ae:90af:10b1:51fe) (Remote host closed the connection) |
| 18:11:01 | → | Alleria joins (~JohnGalt@user/alleria) |
| 18:11:17 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) |
| 18:11:22 | → | tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) |
| 18:13:36 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) (Read error: Connection reset by peer) |
| 18:16:55 | → | econo_ joins (uid147250@id-147250.tinside.irccloud.com) |
| 18:17:49 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) |
| 18:18:11 | × | sord937 quits (~sord937@gateway/tor-sasl/sord937) (Quit: sord937) |
| 18:23:17 | → | Tuplanolla joins (~Tuplanoll@91-159-68-236.elisa-laajakaista.fi) |
| 18:23:18 | <zzz> | haskell is how i got into mailing lists |
| 18:26:49 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 276 seconds) |
| 18:27:01 | → | euleritian joins (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) |
| 18:39:45 | → | alp_ joins (~alp@2001:861:e3d6:8f80:f8a7:a689:ef98:8f08) |
| 18:39:46 | → | eggplantade joins (~Eggplanta@2600:1700:38c5:d800:c5ae:90af:10b1:51fe) |
| 18:41:26 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) (Read error: Connection reset by peer) |
| 18:47:20 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) |
| 18:48:01 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) (Read error: Connection reset by peer) |
| 18:49:25 | × | thegeekinside quits (~thegeekin@189.180.53.210) (Remote host closed the connection) |
| 18:58:30 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) |
| 19:00:42 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) (Read error: Connection reset by peer) |
| 19:10:40 | × | manwithluck quits (manwithluc@gateway/vpn/protonvpn/manwithluck) (Quit: THE END) |
| 19:10:59 | → | manwithluck joins (manwithluc@gateway/vpn/protonvpn/manwithluck) |
| 19:12:32 | × | chele quits (~chele@user/chele) (Remote host closed the connection) |
| 19:14:14 | × | mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection) |
| 19:14:34 | → | mc47 joins (~mc47@xmonad/TheMC47) |
| 19:15:25 | → | thegeekinside joins (~thegeekin@189.180.53.210) |
| 19:16:02 | × | eggplantade quits (~Eggplanta@2600:1700:38c5:d800:c5ae:90af:10b1:51fe) (Remote host closed the connection) |
| 19:17:38 | × | Moyst_ quits (~moyst@user/moyst) (Ping timeout: 252 seconds) |
| 19:18:33 | × | euleritian quits (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) (Ping timeout: 268 seconds) |
| 19:18:46 | → | target_i joins (~target_i@217.175.14.39) |
| 19:18:52 | → | euleritian joins (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) |
| 19:19:33 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) |
| 19:20:01 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) (Read error: Connection reset by peer) |
| 19:20:25 | → | Moyst_ joins (~moyst@user/moyst) |
| 19:26:45 | <kaol> | Mozart (the programming language) is how I got into Haskell. One of their devs called Haskell "too linear" on their mailing list and that led me to check it out. |
| 19:27:17 | → | peterbecich joins (~Thunderbi@047-229-123-186.res.spectrum.com) |
| 19:29:01 | <duncan> | There are worse comments on mailing lists to be inspired by like the infamous Solaris "have you ever kissed a girl" |
| 19:32:52 | <ski> | (fwiw, Oz is the language of CTM. Mozart is the implementation) |
| 19:32:57 | <mauke> | https://www.youtube.com/watch?v=0hUNY9V3_TI |
| 19:33:01 | <ski> | @where CTM |
| 19:33:01 | <lambdabot> | "Concepts, Techniques, and Models of Computer Programming", by Peter Van Roy,Seif Haridi, at <http://www.info.ucl.ac.be/~pvr/book.html> |
| 19:35:04 | × | tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 19:37:45 | → | tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) |
| 19:38:28 | × | peterbecich quits (~Thunderbi@047-229-123-186.res.spectrum.com) (Ping timeout: 255 seconds) |
| 19:40:30 | <EvanR> | haskell is too linear?? |
| 19:41:14 | → | JeremyB99 joins (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) |
| 19:41:26 | <kaol> | I won't try to dig up what someone said 20 years ago. |
| 19:42:01 | → | derpyxdhs joins (~Thunderbi@user/derpyxdhs) |
| 19:44:37 | → | dwt_ joins (~dwt_@2601:2c6:8381:e5c:e82c:bcf5:266d:3c9a) |
| 19:44:38 | <ski> | perhaps they were talking about concurrency (including declarative concurrency) and distribution support in Oz (also in Alice ML, which used to use the same VM) |
| 19:45:41 | × | JeremyB99 quits (~JeremyB99@2607:fb91:17c7:1121:547f:7f06:8558:1f73) (Ping timeout: 268 seconds) |
| 19:47:27 | <kaol> | Oz lets passing unbound variables around and any other part of the program could be waiting for someone else to bind it to a value. Funky stuff. |
| 19:48:13 | <kaol> | Imagine programming with evey variable being a single assignemnt MVar. |
| 19:48:28 | × | kwii quits (~kwii@193.19.201.71) (Ping timeout: 255 seconds) |
| 19:49:37 | <exarkun> | ski: That would be my take. |
| 19:50:00 | <exarkun> | `True || undefined` vs `undefined || True` being the standard example, I think. |
| 19:50:30 | <EvanR> | :t lub |
| 19:50:31 | <lambdabot> | error: |
| 19:50:31 | <lambdabot> | • Variable not in scope: lub |
| 19:50:31 | <lambdabot> | • Perhaps you meant one of these: |
| 19:50:41 | → | eggplantade joins (~Eggplanta@2600:1700:38c5:d800:c5ae:90af:10b1:51fe) |
| 19:51:16 | <EvanR> | :: a -> a -> a |
| 19:51:58 | × | dcoutts quits (~duncan@cpc69402-oxfd27-2-0-cust903.4-3.cable.virginm.net) (Ping timeout: 255 seconds) |
| 19:52:11 | <EvanR> | I am now mildly curious about Oz |
| 19:55:20 | <ski> | in Oz, if you compare structures for equality, and some parts of them hasn't got values yet, it postpones those checks, and continues on with the rest. which may often short-circuit (in case of mismatch), abandoning the postponed checks. in case it doesn't short-circuit, your execution thread will block until it is able to decide the equality check |
| 19:55:51 | <ski> | Oz separates all three of (a) bringing a variable into scope; (b) binding a variable to a computation; (c) actually performing that computation |
| 19:56:21 | <ski> | bringing a variable into scope, without having associated it to a value yet, is akin to |
| 19:56:27 | <ski> | @hackage ivar-simple |
| 19:56:27 | <lambdabot> | https://hackage.haskell.org/package/ivar-simple |
| 19:56:33 | <ski> | but at a language level, not as a library |
| 19:57:34 | <EvanR> | languagized ivars |
| 19:57:37 | <ski> | it is heavily used for (e.g. declarative) concurrency, to communicate between threads. these variables are called "dataflow variables", in that context. in the traditional logic programming context, they're known as "logic variables". in a type inference context, this is "meta variables" |
| 19:58:53 | <ski> | (the "declarative" means that the concurrency is deterministic. so race conditions, e.g. from indeterministically merging two channels (or selecting not necessarily the first message in a mailbox), is verboten) |
| 19:59:26 | × | hgolden quits (~hgolden@2603-8000-9d00-3ed1-dd4f-298a-9c49-a0ed.res6.spectrum.com) (Remote host closed the connection) |
| 20:00:19 | <ski> | it (Oz as well as Alice ML, also has support for lazy evaluation. and not in the "specific datatype" sense in which SML/NJ and OCaml supports them. but it's not the default, you need to use `lazy' (iirc) to construct such delayed values (of same type as the delayed expression)) |
| 20:00:37 | <ski> | anyway, CTM is aquite neat book. somewhat comparable to SICP, you could say |
| 20:00:45 | <monochrom> | I need to read CTM some day. It may be a good way to make a "principles of programming languages" course. |
| 20:00:52 | <ski> | (it's also a heavy tome) |
| 20:01:30 | → | hgolden joins (~hgolden@2603-8000-9d00-3ed1-dd4f-298a-9c49-a0ed.res6.spectrum.com) |
| 20:02:53 | <ski> | they start from a small core language, which is a logic programming in nature, but without any nondeterminism (like backtracking). and they introduce execution models for it (like substitution model, and abstract machines). and they successively add more features to the language (like functions, object-orientation, mutable state, declarative concurrency, non-declarative concurrency, "engines" for |
| 20:02:59 | <ski> | backtracking and constraint programming, &c.) |
| 20:03:18 | <monochrom> | OTOH I feel bad about tellling my students to buy a us$100 book. |
| 20:03:27 | <ski> | yea .. there's that |
| 20:04:32 | <monochrom> | For us$100 I am OK with eg CLRS (Intro to Algorithms) because it lasts for multiple courses and additional interests in programming, data structures, algorithms. |
| 20:05:02 | <ski> | "Programming Language Design Concepts" by David A. Watt,(William Findlay) in 2004 is a quite nice book, covering multiple paradigms and concepts |
| 20:05:18 | <monochrom> | But a Principle of Prog Langs books lasts for only one course and very tangential for 99% of students. |
| 20:05:44 | × | alp_ quits (~alp@2001:861:e3d6:8f80:f8a7:a689:ef98:8f08) (Ping timeout: 268 seconds) |
| 20:05:47 | <ski> | it contains a bunch of "principles" that are useful to consider, when you're designing your new language |
| 20:05:54 | <ski> | "Type Completeness Principle : No operation should be arbitrarily restricted in the types of its operands." |
| 20:06:06 | <ski> | "Qualification Principle : It is possible to include a block in any syntactic category, provided that the constructs in that syntactic category specify some kind of computation." |
| 20:06:22 | <ski> | "Abstraction Principle : It is possible to design procedures that abstract over any syntactic category, provided only that the constructs in that syntactic category specify some kind of computation. (For example, proper procedures abstract over commands, and function procedures abstract over expressions.)" |
| 20:06:35 | <ski> | "Correspondence Principle : For each form of declaration there exists a corresponding parameter mechanism. (For example, a constant declaration corresponds to a constant parameter, and a variable declaration with initialization corresponds to a copy-in parameter.)" |
| 20:07:48 | ski | nods to monochrom |
| 20:07:52 | × | xigua quits (~xigua@user/xigua) (Remote host closed the connection) |
| 20:08:21 | → | [exa] joins (~exa@user/exa/x-3587197) |
| 20:08:27 | → | xigua joins (~xigua@user/xigua) |
| 20:09:26 | <monochrom> | Dystopia solution: Principles of Prog Langs should be 3 courses. :D |
| 20:09:49 | <monochrom> | Now it warrants a us$100 book. >:) |
| 20:10:38 | × | migas9 quits (~migas@static.140.65.63.178.clients.your-server.de) (Remote host closed the connection) |
| 20:10:55 | → | migas9 joins (~migas@static.140.65.63.178.clients.your-server.de) |
| 20:13:04 | <ski> | why dystopia ? |
| 20:13:20 | → | Pickchea joins (~private@user/pickchea) |
| 20:13:33 | <ski> | EvanR : yea, `lub' and `lvish' are kinda related to this, as well |
| 20:13:33 | <monochrom> | Ideal but evil. >:) |
| 20:13:46 | ski | . o O ( ideavil ) |
| 20:14:06 | <ski> | @hackage lvish |
| 20:14:06 | <lambdabot> | https://hackage.haskell.org/package/lvish |
| 20:15:21 | → | chomwitt joins (~chomwitt@2a02:587:7a24:bc00:1ac0:4dff:fedb:a3f1) |
| 20:22:21 | → | phma_ joins (~phma@host-67-44-208-32.hnremote.net) |
| 20:22:48 | × | trev quits (~trev@user/trev) (Quit: trev) |
| 20:23:31 | × | phma quits (~phma@2001:5b0:211b:ddc8:706f:10c0:4024:fd94) (Read error: Connection reset by peer) |
| 20:27:17 | phma_ | is now known as phma |
| 20:28:58 | → | Feuermagier joins (~Feuermagi@user/feuermagier) |
| 20:31:55 | × | Ranhir quits (~Ranhir@157.97.53.139) (Read error: Connection reset by peer) |
| 20:32:04 | × | derpyxdhs quits (~Thunderbi@user/derpyxdhs) (Quit: derpyxdhs) |
| 20:32:34 | → | danza joins (~francesco@151.19.252.223) |
| 20:37:02 | → | pavonia joins (~user@user/siracusa) |
| 20:41:16 | → | dcoutts joins (~duncan@cpc69402-oxfd27-2-0-cust903.4-3.cable.virginm.net) |
| 20:41:18 | → | misterfish joins (~misterfis@84-53-85-146.bbserv.nl) |
| 20:41:48 | → | kwii joins (~kwii@193.19.201.71) |
| 20:42:31 | → | jmdaemon joins (~jmdaemon@user/jmdaemon) |
| 20:45:37 | × | danza quits (~francesco@151.19.252.223) (Ping timeout: 255 seconds) |
| 20:49:09 | → | dwt__ joins (~dwt_@2601:2c6:8381:e5c:dd3f:aa26:2c0f:5acf) |
| 20:49:49 | × | remedan quits (~remedan@ip-94-112-0-18.bb.vodafone.cz) (Quit: Bye!) |
| 20:50:26 | × | dhil quits (~dhil@2001:8e0:2014:3100:b2f1:d5be:95a9:417) (Ping timeout: 268 seconds) |
| 20:51:05 | → | remedan joins (~remedan@ip-94-112-0-18.bb.vodafone.cz) |
| 20:52:54 | × | dwt_ quits (~dwt_@2601:2c6:8381:e5c:e82c:bcf5:266d:3c9a) (Ping timeout: 268 seconds) |
| 20:57:33 | → | alp_ joins (~alp@2001:861:e3d6:8f80:f585:6c5a:3238:c393) |
| 21:00:15 | × | _ht quits (~Thunderbi@28-52-174-82.ftth.glasoperator.nl) (Quit: _ht) |
| 21:02:24 | <iqubic> | Are people here ready for Advent Of Code? |
| 21:11:44 | <EvanR> | trying to figure out which language to use |
| 21:14:57 | <exarkun> | have you heard of Oz |
| 21:15:04 | <exarkun> | I hear it's great |
| 21:19:32 | × | alp_ quits (~alp@2001:861:e3d6:8f80:f585:6c5a:3238:c393) (Ping timeout: 256 seconds) |
| 21:27:59 | → | machinedgod joins (~machinedg@d198-53-218-113.abhsia.telus.net) |
| 21:28:21 | <iqubic> | is there a good way to bulk edit a ton of files? I have DayTemplate.hs on my computer, and I want to create 25 files of the form DayXX.hs, where I take the template, rename it, and modify it a bit for each day. |
| 21:28:36 | × | coot quits (~coot@89-69-206-216.dynamic.chello.pl) (Quit: coot) |
| 21:29:28 | <darkling> | sed? |
| 21:29:28 | <iqubic> | https://dpaste.com/EDC3SXXYY |
| 21:29:40 | <iqubic> | sed might work. |
| 21:30:08 | × | target_i quits (~target_i@217.175.14.39) (Quit: leaving) |
| 21:30:27 | <iqubic> | https://dpaste.com/5A974D9HY |
| 21:30:47 | <iqubic> | That's the example of what I want to do for Day02. |
| 21:31:07 | <hc> | sed might work and it's even turing complete and I'm sure there is a sed DSL that transforms to haskell ;p |
| 21:32:33 | <iqubic> | I want a file called Day02.hs, I want the file name to be to be zero padded when a single digit, but I don't want the number in the last line to be zero padded ever. |
| 21:32:51 | <iqubic> | But, I want to do that for all 25 days. |
| 21:35:46 | <darkling> | Write the template with @NUMPADDED@ and @NUM@ in it, and replace those strings. You can do the zero-padding with the shell command printf. |
| 21:36:11 | × | azimut quits (~azimut@gateway/tor-sasl/azimut) (Remote host closed the connection) |
| 21:36:51 | → | azimut joins (~azimut@gateway/tor-sasl/azimut) |
| 21:38:08 | <iqubic> | darkling: I have this: https://dpaste.com/8G7L7NMJE |
| 21:38:18 | × | takuan quits (~takuan@178-116-218-225.access.telenet.be) (Remote host closed the connection) |
| 21:38:22 | <darkling> | nump=$(printf %02d $num) sed -e s/@NUM@/$num/g -e s/@NUMPADDED@/$nump/g <template.hs >day$nump.hs |
| 21:38:48 | <darkling> | I haven't actually run that, but it's close at least. |
| 21:39:01 | <iqubic> | Can I get that to do all 25 days? |
| 21:39:12 | <darkling> | You can wrap it in "for num in $(seq 1 25); do ...; done" |
| 21:41:07 | × | kwii quits (~kwii@193.19.201.71) (Remote host closed the connection) |
| 21:41:14 | <darkling> | Oh, semicolon before the sed. |
| 21:41:31 | <darkling> | And "export" before the initial "nump=" |
| 21:43:14 | <yushyin> | iqubic: the last time i did aoc in haskell, i used a haskell script (cabal shebang) that generates the 25 files from a template. all in on haskell! ;) |
| 21:43:44 | <iqubic> | Cool.. |
| 21:45:56 | <iqubic> | I've got it working now. Thanks darkling! |
| 21:50:22 | × | YoungFrog quits (~youngfrog@2a02:a03f:ca07:f900:49c4:337a:ff0f:d4e1) (Quit: ZNC 1.7.x-git-3-96481995 - https://znc.in) |
| 21:50:42 | → | YoungFrog joins (~youngfrog@2a02:a03f:ca07:f900:3d37:6f51:8df5:683d) |
| 21:51:58 | × | Pickchea quits (~private@user/pickchea) (Quit: Leaving) |
| 22:00:29 | → | peterbecich joins (~Thunderbi@047-229-123-186.res.spectrum.com) |
| 22:03:28 | × | azimut quits (~azimut@gateway/tor-sasl/azimut) (Remote host closed the connection) |
| 22:03:50 | → | azimut joins (~azimut@gateway/tor-sasl/azimut) |
| 22:08:10 | × | AlienCipher quits (~AlienCiph@113.164.176.43) (Quit: Client closed) |
| 22:09:49 | → | [_] joins (~itchyjunk@user/itchyjunk/x-7353470) |
| 22:12:05 | × | fendor quits (~fendor@2a02:8388:1605:d100:267b:1353:13d7:4f0c) (Remote host closed the connection) |
| 22:12:48 | × | remexre quits (~remexre@user/remexre) (Ping timeout: 256 seconds) |
| 22:13:41 | × | [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Ping timeout: 268 seconds) |
| 22:15:31 | × | not_reserved quits (~not_reser@45.144.113.233) (Quit: Client closed) |
| 22:17:56 | → | remexre joins (~remexre@user/remexre) |
| 22:20:15 | → | Guest25 joins (~Guest83@c-24-143-111-66.customer.broadstripe.net) |
| 22:25:15 | → | Pickchea joins (~private@user/pickchea) |
| 22:25:20 | × | peterbecich quits (~Thunderbi@047-229-123-186.res.spectrum.com) (Ping timeout: 245 seconds) |
| 22:26:01 | × | sawilagar quits (~sawilagar@user/sawilagar) (Ping timeout: 276 seconds) |
| 22:27:14 | → | hulkavinci joins (~user@2a00:23ee:2220:2152:6d77:7e45:63d8:9bbd) |
| 22:32:36 | × | kspalaiologos quits (~kspalaiol@user/kspalaiologos) (Quit: Leaving) |
| 22:34:55 | × | FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Ping timeout: 240 seconds) |
| 22:35:44 | <hulkavinci> | hello |
| 22:36:11 | <hulkavinci> | anybody have a good resource on doing geometry with haskell? both proofs and 2D diagrams etc |
| 22:36:16 | → | FinnElija joins (~finn_elij@user/finn-elija/x-0085643) |
| 22:36:18 | × | Guest25 quits (~Guest83@c-24-143-111-66.customer.broadstripe.net) (Quit: Client closed) |
| 22:37:06 | → | Sgeo joins (~Sgeo@user/sgeo) |
| 22:37:09 | × | machinedgod quits (~machinedg@d198-53-218-113.abhsia.telus.net) (Ping timeout: 260 seconds) |
| 22:38:54 | <monochrom> | Haskell? LaTeX? :) |
| 22:39:03 | <hulkavinci> | ... |
| 22:40:41 | × | jrm quits (~jrm@user/jrm) (Quit: ciao) |
| 22:41:52 | × | euleritian quits (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) (Read error: Connection reset by peer) |
| 22:42:18 | → | jrm joins (~jrm@user/jrm) |
| 22:42:20 | → | euleritian joins (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) |
| 22:43:07 | <hulkavinci> | I want something dynamic but don't want to focus on graphics programming etc |
| 22:44:05 | ← | hulkavinci parts (~user@2a00:23ee:2220:2152:6d77:7e45:63d8:9bbd) (sayonara) |
| 22:45:00 | × | euleritian quits (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) (Read error: Connection reset by peer) |
| 22:45:13 | × | notzmv quits (~zmv@user/notzmv) (Ping timeout: 246 seconds) |
| 22:45:17 | → | euleritian joins (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) |
| 22:45:54 | <ski> | maybe `diagrams' ? |
| 22:46:10 | × | euleritian quits (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) (Read error: Connection reset by peer) |
| 22:46:41 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 22:48:22 | × | mikess quits (~sam@user/mikess) (Read error: Connection reset by peer) |
| 22:48:23 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer) |
| 22:48:43 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 22:50:43 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer) |
| 22:52:14 | → | euleritian joins (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) |
| 22:52:16 | × | gmg quits (~user@user/gehmehgeh) (Quit: Leaving) |
| 22:53:27 | × | euleritian quits (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) (Read error: Connection reset by peer) |
| 22:53:51 | → | euleritian joins (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) |
| 22:54:37 | × | acidjnk quits (~acidjnk@p200300d6e72b935790ce6c45c9ff7d13.dip0.t-ipconnect.de) (Ping timeout: 276 seconds) |
| 22:54:37 | × | euleritian quits (~euleritia@dynamic-046-114-205-177.46.114.pool.telefonica.de) (Read error: Connection reset by peer) |
| 22:55:05 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 22:55:35 | Axma32854 | is now known as Axman6 |
| 22:56:24 | × | euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer) |
| 22:57:00 | → | euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) |
| 22:57:11 | × | oo_miguel quits (~Thunderbi@78-11-179-96.static.ip.netia.com.pl) (Quit: oo_miguel) |
| 22:59:00 | × | __monty__ quits (~toonn@user/toonn) (Quit: leaving) |
| 23:08:55 | × | Jackneill quits (~Jackneill@20014C4E1E120500DDDE9742A0209DC5.dsl.pool.telekom.hu) (Ping timeout: 276 seconds) |
| 23:10:49 | → | madariaga joins (~madariaga@user/madariaga) |
| 23:14:15 | → | Square joins (~Square@user/square) |
| 23:14:28 | <madariaga> | hi. I created a project with cabal init and added a new executable in some file, put module Main where at the top and wrote a main function. The thing builds and runs but inside neovim, with haskell-tools, I get a diagnostics message saying "Loading the module [...]/day01.hs failed ... It may not be listed in your .cabal file!". Any idea what is up with this? For what it's worth: if I open the "default" app/Main.hs cabal creates there is no |
| 23:14:28 | <madariaga> | diagnostic. |
| 23:14:35 | <madariaga> | sorry for the wall of text. |
| 23:16:42 | × | Pickchea quits (~private@user/pickchea) (Quit: Leaving) |
| 23:16:54 | <glguy> | madariaga: Did you add an executable section to your .cabal file after creating the new executable? |
| 23:17:06 | <madariaga> | one more thing I did that may be causing this issue: I split build-depends, hs-source-dir and default-language into a common stanza which I then imported into the executable section |
| 23:17:30 | <madariaga> | glguy: yes. Actually I did this following your advent of code structure lol |
| 23:17:38 | <glguy> | It'll be easier to see what you did if you'll paste the .cabal file on a pastebin |
| 23:17:41 | <glguy> | ?pastebin |
| 23:17:41 | <lambdabot> | Unknown command, try @list |
| 23:17:51 | <glguy> | like https://paste.tomsmeding.com |
| 23:17:59 | <madariaga> | one sec |
| 23:22:10 | <madariaga> | glguy: https://paste.tomsmeding.com/Kw3naVHo |
| 23:22:24 | <c_wraith> | sharing hs-source-dir between multiple components sounds... risky |
| 23:23:01 | <c_wraith> | well, not like at risk of things breaking, necessarily, but a lot of unnecessary recompilation |
| 23:23:43 | <madariaga> | i just want to dump all the advent of code days solutions in the same directory and create one executable for each |
| 23:25:56 | <monochrom> | It should not be difficult to test the hypothesis "does this common stanza cause the neovim error?". |
| 23:26:14 | <monochrom> | I don't use neovim so I am not going to be the one testing it. |
| 23:26:21 | <madariaga> | true. Let me see |
| 23:27:06 | × | nek0 quits (~nek0@2a01:4f8:222:2b41::12) (Quit: The Lounge - https://thelounge.chat) |
| 23:29:36 | × | idgaen quits (~idgaen@2a01:e0a:498:fd50:fcc6:bb5d:489a:ce8c) (Quit: WeeChat 4.1.1) |
| 23:29:49 | → | TonyStone joins (~TonyStone@cpe-74-76-57-186.nycap.res.rr.com) |
| 23:30:54 | <madariaga> | yep it is. Without the common stanza, everything is fine. Furthermore, with the common stanza but bringing hs-source-dirs into hte executable section, the diagnostic goes away but code lenses stop working. |
| 23:31:27 | <Axman6> | does haskell-tools use hls? |
| 23:31:59 | <madariaga> | yes. |
| 23:32:22 | <madariaga> | checkhealth for it shows OK, version 2.4.0.0 running. |
| 23:33:17 | × | Unicorn_Princess quits (~Unicorn_P@user/Unicorn-Princess/x-3540542) (Remote host closed the connection) |
| 23:33:20 | × | tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 23:33:34 | <glguy> | madariaga: the way I have the project structured works with hls on my computer for whatever that's worth |
| 23:33:39 | <glguy> | I don't use neovim , though |
| 23:34:21 | × | John_Ivan quits (~John_Ivan@user/john-ivan/x-1515935) (Remote host closed the connection) |
| 23:34:35 | <madariaga> | yeah I'm assuming this is an issue with neovim or with haskell-tools. Thanks for checking |
| 23:34:41 | <glguy> | c_wraith: the hs-source-dir sharing ends up not mattering because none of the executables import each other |
| 23:35:13 | <glguy> | and there's a separate library for shared code between executables |
| 23:35:40 | <c_wraith> | that will work in an AOC context, sure. :) |
| 23:36:15 | <monochrom> | "day01.hs" and other chatters strongly suggest an AOC context. :) |
| 23:37:38 | → | John_Ivan joins (~John_Ivan@user/john-ivan/x-1515935) |
| 23:40:30 | × | John_Ivan quits (~John_Ivan@user/john-ivan/x-1515935) (Remote host closed the connection) |
| 23:41:00 | <Axman6> | madariaga: is your hls up to date too? |
| 23:41:14 | → | John_Ivan joins (~John_Ivan@user/john-ivan/x-1515935) |
| 23:41:29 | × | John_Ivan quits (~John_Ivan@user/john-ivan/x-1515935) (Client Quit) |
| 23:41:34 | <madariaga> | as far as ghcup shows, yes. 2.4.0.0 is the highest version it shows |
| 23:42:02 | <Axman6> | you might want to look at the config options in https://haskell-language-server.readthedocs.io/en/latest/configuration.html too |
| 23:42:09 | <madariaga> | i went down from ghc 9.8.1 to 9.4.7 in case that caused issues but it's the same. |
| 23:43:38 | <madariaga> | ah that could work, having an explicit config file. Thanks |
| 23:43:41 | → | John_Ivan joins (~John_Ivan@user/john-ivan/x-1515935) |
| 23:43:57 | <glguy> | Using ghc-9.4.7, vim, coc, and hls things open for me with editor integration |
| 23:44:54 | <glguy> | so you should be able to test that your editor is configured correctly opening my repository |
| 23:46:34 | × | pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Quit: WeeChat 3.5) |
| 23:46:49 | <madariaga> | thanks. I'll try using the native lsp client in neovim |
| 23:47:05 | → | srk- joins (~sorki@user/srk) |
| 23:47:51 | → | nek0 joins (~nek0@2a01:4f8:222:2b41::12) |
| 23:50:07 | × | srk quits (~sorki@user/srk) (Ping timeout: 255 seconds) |
| 23:50:07 | srk- | is now known as srk |
| 23:54:19 | × | andreas303 quits (andreas303@is.drunk.and.ready-to.party) (Ping timeout: 256 seconds) |
All times are in UTC on 2023-11-27.