Logs on 2022-05-31 (liberachat/#haskell)
| 00:02:26 | × | Pickchea quits (~private@user/pickchea) (Ping timeout: 255 seconds) |
| 00:03:04 | × | ec quits (~ec@gateway/tor-sasl/ec) (Ping timeout: 240 seconds) |
| 00:05:33 | → | ec joins (~ec@gateway/tor-sasl/ec) |
| 00:05:34 | <Bulby[m]> | i love polysemy - i get to transform any function that can fail into |
| 00:05:34 | <Bulby[m]> | `Member Fail r => ... -> Sem r Foo` |
| 00:07:29 | × | szkl quits (uid110435@id-110435.uxbridge.irccloud.com) (Quit: Connection closed for inactivity) |
| 00:08:16 | × | melonai quits (~mel@rnrd.eu) (Read error: Connection reset by peer) |
| 00:08:27 | <Axman6> | o/ |
| 00:08:56 | × | henninb quits (~henninb@97-116-138-116.mpls.qwest.net) (Quit: leaving) |
| 00:11:28 | → | melonai joins (~mel@rnrd.eu) |
| 00:13:03 | <Bulby[m]> | for megaparsec, how do I deal with `=` being matched before `==` |
| 00:13:20 | <Axman6> | try natching == before = |
| 00:13:23 | <Axman6> | matching* |
| 00:16:47 | × | jgeerds_ quits (~jgeerds@55d45f48.access.ecotel.net) (Ping timeout: 240 seconds) |
| 00:17:03 | × | machinedgod quits (~machinedg@24.105.81.50) (Ping timeout: 276 seconds) |
| 00:20:00 | × | jmcarthur quits (~jmcarthur@c-73-29-224-10.hsd1.nj.comcast.net) (Ping timeout: 258 seconds) |
| 00:24:12 | × | ec quits (~ec@gateway/tor-sasl/ec) (Remote host closed the connection) |
| 00:27:04 | × | azimut quits (~azimut@gateway/tor-sasl/azimut) (Ping timeout: 240 seconds) |
| 00:30:13 | → | ec joins (~ec@gateway/tor-sasl/ec) |
| 00:33:35 | → | wroathe joins (~wroathe@206-55-188-8.fttp.usinternet.com) |
| 00:33:35 | × | wroathe quits (~wroathe@206-55-188-8.fttp.usinternet.com) (Changing host) |
| 00:33:35 | → | wroathe joins (~wroathe@user/wroathe) |
| 00:37:27 | → | nun61 joins (~nun@113.111.33.38) |
| 00:38:53 | × | xff0x quits (~xff0x@b133147.ppp.asahi-net.or.jp) (Ping timeout: 255 seconds) |
| 00:40:34 | × | ec quits (~ec@gateway/tor-sasl/ec) (Ping timeout: 240 seconds) |
| 00:43:30 | → | Lord_of_Life_ joins (~Lord@user/lord-of-life/x-2819915) |
| 00:43:54 | <boxscape> | is a thread I create with forkIO guaranteed to terminate once I terminate the program itself, assuming it's not blocked in any way? |
| 00:44:09 | × | Lord_of_Life quits (~Lord@user/lord-of-life/x-2819915) (Ping timeout: 258 seconds) |
| 00:44:21 | <geekosaur> | it will be terminated even if it is blocked |
| 00:44:29 | <Axman6> | is there an implementation somewhere for a list type with at least n elements? data AtLeast n a = AtLeast (TupleOf n a) [a] - wondering if there's a better representation that making a type family for TupleOf (n :: Nat) a |
| 00:44:29 | <boxscape> | okay, thanks |
| 00:44:38 | <geekosaur> | the main thread is always special and killing it kills all other threads (enforced by the OS) |
| 00:44:43 | <boxscape> | I see |
| 00:44:46 | Lord_of_Life_ | is now known as Lord_of_Life |
| 00:45:31 | <geekosaur> | Axman6, the only ones I've heard of use lists with type level lengths |
| 00:48:00 | <geekosaur> | tuples are a poor choice because that type family's even more of a PITA than type level lengths |
| 00:48:49 | <geekosaur> | and then you have to deal with indexing into the tuple to access the first few elements |
| 00:48:51 | <Axman6> | yeah |
| 00:48:59 | <Axman6> | I guess that porobably is a better implementation |
| 00:49:55 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 244 seconds) |
| 00:54:25 | × | jrm quits (~jrm@156.34.173.250) (Quit: ciao) |
| 00:55:41 | → | jrm joins (~jrm@156.34.173.250) |
| 00:56:05 | <Axman6> | @hoogle IsList |
| 00:56:06 | <lambdabot> | GHC.Exts class IsList l |
| 00:56:06 | <lambdabot> | BasePrelude class IsList l |
| 00:56:06 | <lambdabot> | Data.Generics.Product.HList class IsList (f :: Type) (g :: Type) (as :: [Type]) (bs :: [Type]) | f -> as, g -> bs |
| 00:58:04 | × | littlebobeep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Ping timeout: 240 seconds) |
| 01:01:32 | <Bulby[m]> | how do I get functions called by a Sem w/ State to keep that state/be able to modify it |
| 01:02:47 | <monochrom> | Are you sure you can't find this in the docs or tutorials? |
| 01:02:59 | <Bulby[m]> | lol |
| 01:03:05 | <Bulby[m]> | ok |
| 01:03:37 | × | zincy quits (~zincy@2a00:23c8:970c:4801:2cec:2611:c697:bc3c) (Ping timeout: 260 seconds) |
| 01:05:03 | → | cxd joins (~cxd@240e:369:ec6:4300:39c1:d334:ba15:f1ad) |
| 01:08:49 | × | nun61 quits (~nun@113.111.33.38) (Quit: Connection closed) |
| 01:11:09 | × | albet70 quits (~xxx@2400:8902::f03c:92ff:fe60:98d8) (Remote host closed the connection) |
| 01:13:24 | <Bulby[m]> | that must be true or else modify wouldn't work |
| 01:17:16 | → | albet70 joins (~xxx@2400:8902::f03c:92ff:fe60:98d8) |
| 01:17:44 | × | jrm quits (~jrm@156.34.173.250) (Quit: ciao) |
| 01:18:00 | × | pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Quit: WeeChat 3.5) |
| 01:19:00 | → | jrm joins (~jrm@156.34.173.250) |
| 01:22:06 | × | gurkenglas quits (~gurkengla@dslb-084-057-085-111.084.057.pools.vodafone-ip.de) (Ping timeout: 258 seconds) |
| 01:23:47 | → | [_] joins (~itchyjunk@user/itchyjunk/x-7353470) |
| 01:25:52 | → | xff0x joins (~xff0x@s5.HtokyoFL1.vectant.ne.jp) |
| 01:26:07 | × | [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Ping timeout: 240 seconds) |
| 01:30:18 | × | xff0x quits (~xff0x@s5.HtokyoFL1.vectant.ne.jp) (Ping timeout: 246 seconds) |
| 01:31:38 | → | zincy joins (~zincy@2a00:23c8:970c:4801:2cec:2611:c697:bc3c) |
| 01:32:07 | → | xff0x joins (~xff0x@om126255098208.24.openmobile.ne.jp) |
| 01:32:20 | → | littlebobeep joins (~alMalsamo@gateway/tor-sasl/almalsamo) |
| 01:48:55 | → | sympt3 joins (~sympt@user/sympt) |
| 01:50:17 | × | sympt quits (~sympt@user/sympt) (Ping timeout: 260 seconds) |
| 01:50:17 | sympt3 | is now known as sympt |
| 01:55:07 | × | xff0x quits (~xff0x@om126255098208.24.openmobile.ne.jp) (Ping timeout: 240 seconds) |
| 01:55:27 | → | andrey_ joins (~andrey@p200300dbcf1607007715c2deb780d806.dip0.t-ipconnect.de) |
| 01:57:25 | → | xff0x joins (~xff0x@s5.HtokyoFL1.vectant.ne.jp) |
| 01:57:42 | → | frost joins (~frost@user/frost) |
| 01:58:32 | × | andrey__ quits (~andrey@p200300dbcf08d40049142574c09c31d2.dip0.t-ipconnect.de) (Ping timeout: 272 seconds) |
| 01:58:37 | → | ezzieygu1wuf joins (~Unknown@user/ezzieyguywuf) |
| 01:59:27 | ezzieygu1wuf | is now known as ezzieyguywuf |
| 02:02:42 | → | nate1 joins (~nate@98.45.169.16) |
| 02:05:40 | → | nuh^ joins (~off@128-092-173-218.biz.spectrum.com) |
| 02:07:32 | × | nate1 quits (~nate@98.45.169.16) (Ping timeout: 255 seconds) |
| 02:16:12 | × | waleee quits (~waleee@2001:9b0:213:7200:cc36:a556:b1e8:b340) (Ping timeout: 244 seconds) |
| 02:19:52 | <brettgilio> | Is uncurrying possible in base haskell? |
| 02:21:06 | <brettgilio> | I guess one could simulate them using tuples |
| 02:21:13 | <brettgilio> | but is that actually uncurrying or just simulating it? |
| 02:24:18 | <dsal> | brettgilio: What do you mean? |
| 02:24:21 | <dsal> | :t uncurry |
| 02:24:22 | <lambdabot> | (a -> b -> c) -> (a, b) -> c |
| 02:24:34 | <brettgilio> | wasnt aware |
| 02:24:34 | <brettgilio> | thanks |
| 02:24:38 | <jackdk> | All functions in haskell take one argument - this is true whether the function is "curried" or "uncurried" |
| 02:24:45 | <brettgilio> | but it looks like what I said is true |
| 02:24:53 | <dibblego> | all of them? |
| 02:24:54 | <dsal> | It's still a tuple. It's not clear what you're looking for. |
| 02:24:58 | <dsal> | :t all |
| 02:24:59 | <lambdabot> | Foldable t => (a -> Bool) -> t a -> Bool |
| 02:24:59 | <brettgilio> | because : uncurry simulates uncurrying by tuple |
| 02:25:15 | <dsal> | `all` takes one argument, and then it returns a function that takes another argument. |
| 02:25:24 | <dibblego> | so every single one? |
| 02:25:25 | <jackdk> | dibblego: perhaps I'm being too firm. Can you elaborate? |
| 02:25:31 | <brettgilio> | dibblego that is my question |
| 02:25:37 | <dibblego> | nah just checking that's all |
| 02:25:56 | <brettgilio> | like, in lambda calculus functions are curried by default |
| 02:26:04 | <brettgilio> | and I know haskell as a thin wrapper on lambda calculus |
| 02:26:06 | <jackdk> | I'm not across all the exotic function arrows, linearity, levity polymorphism stuff |
| 02:26:10 | <brettgilio> | but wasnt sure how firm that rule is in haskell |
| 02:26:21 | <dsal> | It's just a dream, Bender. There's no such thing as two. |
| 02:26:40 | <jackdk> | but I'm pretty sure that every function I interacted with took one argument, and we say things like "this function takes two arguments" as a convenience |
| 02:27:13 | <dibblego> | what about this one? (->) |
| 02:27:46 | <brettgilio> | :i uncurry |
| 02:28:01 | <brettgilio> | Data.Tuple |
| 02:28:03 | <brettgilio> | heh |
| 02:28:03 | <jackdk> | Is that even a function dibblego ? I think of it as a type constructor, and a special primitive one |
| 02:28:04 | <dsal> | :t (->) |
| 02:28:05 | <lambdabot> | error: parse error on input ‘->’ |
| 02:28:09 | <jackdk> | :i (->) |
| 02:28:11 | <dibblego> | :k (->) |
| 02:28:12 | <lambdabot> | * -> * -> * |
| 02:28:17 | <dibblego> | looks like a function to me! |
| 02:28:24 | <brettgilio> | -> is a constructor |
| 02:28:30 | <dsal> | `,` also looks like a function and I get in a lot of arguments with people about that. |
| 02:28:38 | <brettgilio> | , is also a constructor |
| 02:28:40 | <dibblego> | it takes argument(s?) and return(s?) values innit? |
| 02:29:13 | <dsal> | In Haskell, we don't say a function "returns" a value. We say it "pures" a value. |
| 02:29:18 | <jackdk> | dibblego: You could think of a type constructor as a sort of function over types. I was mainly thinking at the value level |
| 02:29:22 | <jackdk> | dsal: wut |
| 02:29:33 | <dibblego> | :k (->) Int |
| 02:29:35 | <lambdabot> | * -> * |
| 02:29:43 | <dibblego> | phew ok, so aaallll of them |
| 02:30:15 | <dibblego> | there is one exception though, depending on if you call it a function (I don't) |
| 02:30:42 | <dibblego> | @type if True |
| 02:30:43 | <lambdabot> | error: |
| 02:30:43 | <lambdabot> | parse error (possibly incorrect indentation or mismatched brackets) |
| 02:30:46 | <dibblego> | oh no! |
| 02:31:01 | <dsal> | if isn't a function, it's an abomination. |
| 02:31:09 | <dibblego> | me, you, we are friends now |
| 02:31:12 | <dsal> | :t bool |
| 02:31:14 | <lambdabot> | a -> a -> Bool -> a |
| 02:31:16 | <brettgilio> | is the composition of a function always associative? |
| 02:31:47 | <dibblego> | yeppers |
| 02:33:17 | × | kicky quits (~saarsecjb@190.90.86.91) (K-Lined) |
| 02:35:12 | × | zincy quits (~zincy@2a00:23c8:970c:4801:2cec:2611:c697:bc3c) (Ping timeout: 260 seconds) |
| 02:39:27 | × | jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 244 seconds) |
| 02:41:24 | <brettgilio> | is there a way to get ghci :t to explicitly show associative parenthesis? |
| 02:44:17 | × | terrorjack quits (~terrorjac@2a01:4f8:1c1e:509a::1) (Quit: The Lounge - https://thelounge.chat) |
| 02:45:33 | → | terrorjack joins (~terrorjac@2a01:4f8:1c1e:509a::1) |
| 02:49:18 | → | zincy joins (~zincy@2a00:23c8:970c:4801:2cec:2611:c697:bc3c) |
| 02:51:10 | → | finn_elija joins (~finn_elij@user/finn-elija/x-0085643) |
| 02:51:10 | × | FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Killed (NickServ (Forcing logout FinnElija -> finn_elija))) |
| 02:51:10 | finn_elija | is now known as FinnElija |
| 02:52:27 | [_] | is now known as [itchyjunk] |
| 02:53:27 | × | zincy quits (~zincy@2a00:23c8:970c:4801:2cec:2611:c697:bc3c) (Ping timeout: 240 seconds) |
| 03:07:01 | → | zincy joins (~zincy@2a00:23c8:970c:4801:2cec:2611:c697:bc3c) |
| 03:07:31 | × | nuh^ quits (~off@128-092-173-218.biz.spectrum.com) (Ping timeout: 258 seconds) |
| 03:11:26 | × | zincy quits (~zincy@2a00:23c8:970c:4801:2cec:2611:c697:bc3c) (Ping timeout: 255 seconds) |
| 03:15:43 | → | nuh^ joins (~nuh@128-092-173-218.biz.spectrum.com) |
| 03:17:04 | × | littlebobeep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Ping timeout: 240 seconds) |
| 03:24:06 | → | zincy joins (~zincy@2a00:23c8:970c:4801:2cec:2611:c697:bc3c) |
| 03:24:29 | → | littlebobeep joins (~alMalsamo@gateway/tor-sasl/almalsamo) |
| 03:25:56 | → | nate1 joins (~nate@98.45.169.16) |
| 03:29:04 | × | littlebobeep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Ping timeout: 240 seconds) |
| 03:29:31 | → | littlebobeep joins (~alMalsamo@gateway/tor-sasl/almalsamo) |
| 03:30:54 | × | nate1 quits (~nate@98.45.169.16) (Ping timeout: 258 seconds) |
| 03:35:21 | <hololeap> | brettgilio: what do you mean by "associative parenthesis"? associativity means that it's the same no matter how you write the parenthesis |
| 03:40:44 | <hololeap> | e.g: (f . g) . (h . i) = f . (g . (h . i)) = ((f . g) . h) . i |
| 03:41:18 | <dibblego> | I expect it means |
| 03:41:23 | <dibblego> | :assoc a - b - c |
| 03:41:27 | <dibblego> | (a - b) - c |
| 03:52:22 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 03:56:41 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 04:01:05 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 244 seconds) |
| 04:11:30 | → | Infinite joins (~Infinite@49.39.123.25) |
| 04:15:01 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 04:17:15 | → | king_gs joins (~Thunderbi@2806:103e:29:8f28:b322:3d0e:88ce:8d85) |
| 04:19:07 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 04:24:55 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 04:25:40 | → | chomwitt joins (~chomwitt@2a02:587:dc11:7d00:a7f0:c7db:e9b3:6e1d) |
| 04:26:37 | × | zincy quits (~zincy@2a00:23c8:970c:4801:2cec:2611:c697:bc3c) (Ping timeout: 260 seconds) |
| 04:27:24 | × | vglfr quits (~vglfr@coupling.penchant.volia.net) (Ping timeout: 246 seconds) |
| 04:29:07 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 04:36:56 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 04:38:26 | × | Infinite quits (~Infinite@49.39.123.25) (Quit: Client closed) |
| 04:40:19 | → | zincy joins (~zincy@2a00:23c8:970c:4801:2cec:2611:c697:bc3c) |
| 04:41:17 | → | bajskorfven joins (~bajskorfv@90-231-13-185-no3430.tbcn.telia.com) |
| 04:45:10 | → | coot joins (~coot@2a02:a310:e241:1b00:ec1a:e9df:79ac:66ba) |
| 04:45:43 | × | Typedfern quits (~Typedfern@27.red-83-37-28.dynamicip.rima-tde.net) (Ping timeout: 256 seconds) |
| 04:47:11 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 04:53:47 | × | king_gs quits (~Thunderbi@2806:103e:29:8f28:b322:3d0e:88ce:8d85) (Ping timeout: 240 seconds) |
| 04:53:57 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 04:55:48 | → | mbuf joins (~Shakthi@171.61.198.110) |
| 04:58:18 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 04:59:27 | → | Typedfern joins (~Typedfern@202.red-83-37-35.dynamicip.rima-tde.net) |
| 04:59:27 | × | Unicorn_Princess quits (~Unicorn_P@93-103-228-248.dynamic.t-2.net) (Remote host closed the connection) |
| 05:07:39 | × | nuh^ quits (~nuh@128-092-173-218.biz.spectrum.com) (Ping timeout: 246 seconds) |
| 05:08:00 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 05:10:44 | × | noteness quits (~noteness@user/noteness) (Remote host closed the connection) |
| 05:11:29 | → | noteness joins (~noteness@user/noteness) |
| 05:16:42 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 276 seconds) |
| 05:20:40 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 05:23:10 | → | vglfr joins (~vglfr@46.96.180.249) |
| 05:24:47 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 244 seconds) |
| 05:25:36 | → | Qudit joins (~user@user/Qudit) |
| 05:33:18 | × | [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Remote host closed the connection) |
| 05:36:39 | → | michalz joins (~michalz@185.246.204.125) |
| 05:37:34 | × | littlebobeep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Ping timeout: 240 seconds) |
| 05:41:17 | × | rembo10 quits (~rembo10@main.remulis.com) (Quit: ZNC 1.8.2 - https://znc.in) |
| 05:41:17 | × | jushur quits (~human@user/jushur) (Quit: ¯\_(ツ)_/¯) |
| 05:42:09 | → | rembo10 joins (~rembo10@main.remulis.com) |
| 05:44:22 | → | nate1 joins (~nate@98.45.169.16) |
| 05:45:04 | → | alp joins (~alp@user/alp) |
| 05:49:07 | × | nate1 quits (~nate@98.45.169.16) (Ping timeout: 240 seconds) |
| 05:49:51 | × | dextaa quits (~DV@user/dextaa) (Ping timeout: 276 seconds) |
| 05:54:26 | × | hgolden quits (~hgolden2@cpe-172-251-233-141.socal.res.rr.com) (Quit: Konversation terminated!) |
| 05:55:57 | × | vglfr quits (~vglfr@46.96.180.249) (Ping timeout: 246 seconds) |
| 06:04:14 | × | wroathe quits (~wroathe@user/wroathe) (Ping timeout: 255 seconds) |
| 06:06:22 | → | dextaa joins (~DV@user/dextaa) |
| 06:09:59 | × | alp quits (~alp@user/alp) (Ping timeout: 258 seconds) |
| 06:11:56 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 06:13:08 | → | littlebobeep joins (~alMalsamo@gateway/tor-sasl/almalsamo) |
| 06:13:31 | → | odnes joins (~odnes@5-203-243-73.pat.nym.cosmote.net) |
| 06:14:17 | × | cods quits (~fred@82-65-232-44.subs.proxad.net) (Ping timeout: 248 seconds) |
| 06:16:12 | → | cods joins (~fred@82-65-232-44.subs.proxad.net) |
| 06:16:30 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 06:16:59 | → | supersven joins (sid501114@id-501114.ilkley.irccloud.com) |
| 06:18:04 | × | littlebobeep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Ping timeout: 240 seconds) |
| 06:18:47 | → | bontaq joins (~user@ool-45779fe5.dyn.optonline.net) |
| 06:19:35 | → | azimut joins (~azimut@gateway/tor-sasl/azimut) |
| 06:27:14 | → | lortabac joins (~lortabac@2a01:e0a:541:b8f0:dae4:93ae:95ab:d19f) |
| 06:29:00 | → | acidjnk joins (~acidjnk@p200300d0c7068b75806cd13413d03a05.dip0.t-ipconnect.de) |
| 06:33:13 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 06:34:05 | × | azimut quits (~azimut@gateway/tor-sasl/azimut) (Remote host closed the connection) |
| 06:34:26 | × | Sgeo quits (~Sgeo@user/sgeo) (Read error: Connection reset by peer) |
| 06:36:55 | → | planitia joins (~planitia@c-76-126-44-243.hsd1.ca.comcast.net) |
| 06:37:35 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 06:37:43 | × | Qudit quits (~user@user/Qudit) (Remote host closed the connection) |
| 06:40:46 | → | nehsou^ joins (~nehsou@128-092-173-218.biz.spectrum.com) |
| 06:41:43 | ← | jakalx parts (~jakalx@base.jakalx.net) () |
| 06:43:33 | → | littlebobeep joins (~alMalsamo@gateway/tor-sasl/almalsamo) |
| 06:43:46 | → | jayalahbr joins (~tailu@vps-a637c981.vps.ovh.ca) |
| 06:47:40 | → | jakalx joins (~jakalx@base.jakalx.net) |
| 06:49:15 | → | vglfr joins (~vglfr@46.96.180.249) |
| 06:49:52 | × | zincy quits (~zincy@2a00:23c8:970c:4801:2cec:2611:c697:bc3c) (Ping timeout: 272 seconds) |
| 06:50:05 | → | mncheck joins (~mncheck@193.224.205.254) |
| 06:50:54 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 06:55:21 | → | jargon joins (~jargon@184.101.87.126) |
| 06:55:29 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 256 seconds) |
| 06:56:40 | × | coot quits (~coot@2a02:a310:e241:1b00:ec1a:e9df:79ac:66ba) (Quit: coot) |
| 07:00:45 | → | azimut joins (~azimut@gateway/tor-sasl/azimut) |
| 07:02:14 | × | tzh quits (~tzh@c-24-21-73-154.hsd1.or.comcast.net) (Quit: zzz) |
| 07:04:14 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 07:05:57 | × | nehsou^ quits (~nehsou@128-092-173-218.biz.spectrum.com) (Ping timeout: 258 seconds) |
| 07:06:40 | → | alp joins (~alp@user/alp) |
| 07:10:34 | × | littlebobeep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Ping timeout: 240 seconds) |
| 07:12:05 | → | Guest|30 joins (~Guest|30@219.159.159.77) |
| 07:16:47 | → | tromp joins (~textual@dhcp-077-249-230-040.chello.nl) |
| 07:18:36 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 07:21:16 | → | razetime joins (~quassel@117.254.34.58) |
| 07:28:01 | → | coot joins (~coot@213.134.190.95) |
| 07:29:48 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 07:31:40 | × | jayalahbr quits (~tailu@vps-a637c981.vps.ovh.ca) (Remote host closed the connection) |
| 07:32:09 | → | littlebobeep joins (~alMalsamo@gateway/tor-sasl/almalsamo) |
| 07:34:14 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 255 seconds) |
| 07:35:01 | → | nehsou^ joins (~nehsou@128-092-173-218.biz.spectrum.com) |
| 07:39:41 | → | zincy joins (~zincy@host86-160-236-152.range86-160.btcentralplus.com) |
| 07:39:47 | → | shinjipf joins (~shinjipf@vmi826685.contaboserver.net) |
| 07:39:48 | → | mc47 joins (~mc47@xmonad/TheMC47) |
| 07:41:18 | → | benin joins (~benin@183.82.177.185) |
| 07:41:35 | → | cfricke joins (~cfricke@user/cfricke) |
| 07:42:29 | × | odnes quits (~odnes@5-203-243-73.pat.nym.cosmote.net) (Quit: Leaving) |
| 07:48:36 | → | machinedgod joins (~machinedg@24.105.81.50) |
| 07:51:14 | → | chddr joins (~Thunderbi@91.226.34.169) |
| 07:53:42 | → | cosimone joins (~user@2001:b07:ae5:db26:c24a:d20:4d91:1e20) |
| 07:53:42 | → | titibandit joins (~thibaut@2a00:8a60:c000:1:8a13:bf74:b2:8d47) |
| 08:00:16 | × | chddr quits (~Thunderbi@91.226.34.169) (Quit: chddr) |
| 08:00:27 | × | nehsou^ quits (~nehsou@128-092-173-218.biz.spectrum.com) (Ping timeout: 240 seconds) |
| 08:04:02 | × | mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection) |
| 08:07:34 | × | littlebobeep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Ping timeout: 240 seconds) |
| 08:08:17 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 08:12:02 | → | zeenk joins (~zeenk@2a02:2f04:a104:ef00:10:581:f80f:b980) |
| 08:13:10 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 260 seconds) |
| 08:13:17 | × | Guest|30 quits (~Guest|30@219.159.159.77) (Quit: Connection closed) |
| 08:18:56 | × | tromp quits (~textual@dhcp-077-249-230-040.chello.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 08:21:19 | → | jayalahbr joins (~tailu@36.72.129.252) |
| 08:24:28 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 08:28:18 | × | coot quits (~coot@213.134.190.95) (Quit: coot) |
| 08:29:02 | × | shriekingnoise quits (~shrieking@201.231.16.156) (Quit: Quit) |
| 08:29:30 | → | trisolaran joins (~ye@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) |
| 08:29:48 | <trisolaran> | is there a way to add a bunch package imports in the .ghci file? |
| 08:29:56 | <trisolaran> | so that i dont have to add them everytime? |
| 08:31:49 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 08:32:12 | → | zer0bitz joins (~zer0bitz@2001:2003:f444:8f00:19f4:9aa:ac4b:7369) |
| 08:34:34 | → | coot joins (~coot@213.134.190.95) |
| 08:34:51 | × | razetime quits (~quassel@117.254.34.58) (Ping timeout: 246 seconds) |
| 08:36:33 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 08:36:37 | <tomsmeding> | trisolaran: `:set -package thing`? |
| 08:36:57 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) (Remote host closed the connection) |
| 08:37:33 | × | planitia quits (~planitia@c-76-126-44-243.hsd1.ca.comcast.net) (Ping timeout: 276 seconds) |
| 08:37:37 | <trisolaran> | tomsmeding: import thing |
| 08:37:50 | <trisolaran> | -package thing only says it needs the whole package |
| 08:37:55 | <tomsmeding> | trisolaran: `:m +Thing`? |
| 08:38:45 | → | spacenautx joins (~spacenaut@user/spacenautx) |
| 08:39:01 | <trisolaran> | that works:_ |
| 08:39:04 | <trisolaran> | :_ |
| 08:39:06 | <trisolaran> | :) |
| 08:39:38 | <tomsmeding> | trisolaran: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ghci.html#ghci-module-cmd |
| 08:39:48 | → | planitia joins (~planitia@c-76-126-44-243.hsd1.ca.comcast.net) |
| 08:40:06 | <trisolaran> | thx! |
| 08:40:47 | × | zincy quits (~zincy@host86-160-236-152.range86-160.btcentralplus.com) (Ping timeout: 240 seconds) |
| 08:41:27 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 276 seconds) |
| 08:43:45 | <dragestil> | It looks to me there were significant changes in the GHC API from 8.10.7 to the next version 9.0.2. Is there documentation about major changes in this update? https://hackage.haskell.org/package/ghc-8.10.7 https://hackage.haskell.org/package/ghc-9.0.2 |
| 08:46:47 | × | planitia quits (~planitia@c-76-126-44-243.hsd1.ca.comcast.net) (Ping timeout: 260 seconds) |
| 08:47:48 | → | littlebobeep joins (~alMalsamo@gateway/tor-sasl/almalsamo) |
| 08:48:11 | → | gehmehgeh joins (~user@user/gehmehgeh) |
| 08:48:17 | <dragestil> | more specifically, I want to know what happened to PackageConfig. It was in 8.10.7 but not 9.0.2. whether it's been moved to a module outside of ghc https://hackage.haskell.org/package/ghc-8.10.7/docs/PackageConfig.html |
| 08:48:50 | → | takuan joins (~takuan@178-116-218-225.access.telenet.be) |
| 08:49:24 | × | spacenautx quits (~spacenaut@user/spacenautx) (Quit: WeeChat 3.0) |
| 08:49:25 | → | Guest|30 joins (~Guest|30@219.159.159.77) |
| 08:49:46 | <Hecate> | dragestil: you will have better answers on #ghc |
| 08:49:49 | → | spacenautx joins (~spacenaut@user/spacenautx) |
| 08:50:22 | <trisolaran> | tomsmeding: i didn't find a import qualified option in the doc |
| 08:50:35 | <Guest|30> | https://uploads.kiwiirc.com/files/0d7aceb39b2524dc6f5f1391da4e9e2c/image.png |
| 08:50:48 | <trisolaran> | tomsmeding: do you happen to know? :m +Thing qualified as ... |
| 08:50:58 | <Guest|30> | I cannot install ghcup with powershell, this is windows10 system |
| 08:51:11 | <dragestil> | Hecate: ok thanks |
| 08:52:02 | → | [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470) |
| 08:53:02 | × | Hash quits (~Hash@tunnel686959-pt.tunnel.tserv15.lax1.ipv6.he.net) (Quit: ZNC - https://znc.in) |
| 08:53:41 | <tomsmeding> | trisolaran: hm good point, I think you can't do that with :m. There might be a workaround: create a .hs file with your desired imports, and :l it and :m* it in your .ghci. Not sure how all this interacts with doing 'cabal repl' in a project :p |
| 08:54:34 | → | Hash joins (~Hash@tunnel686959-pt.tunnel.tserv15.lax1.ipv6.he.net) |
| 08:54:35 | × | HotblackDesiato quits (~HotblackD@gateway/tor-sasl/hotblackdesiato) (Remote host closed the connection) |
| 08:54:54 | → | HotblackDesiato joins (~HotblackD@gateway/tor-sasl/hotblackdesiato) |
| 08:55:42 | × | econo quits (uid147250@user/econo) (Quit: Connection closed for inactivity) |
| 08:56:31 | → | razetime joins (~quassel@117.254.34.58) |
| 08:57:34 | × | littlebobeep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Ping timeout: 240 seconds) |
| 08:57:35 | × | Hash quits (~Hash@tunnel686959-pt.tunnel.tserv15.lax1.ipv6.he.net) (Client Quit) |
| 08:58:32 | → | Hash joins (~Hash@tunnel686959-pt.tunnel.tserv15.lax1.ipv6.he.net) |
| 08:58:49 | → | Pickchea joins (~private@user/pickchea) |
| 09:00:06 | × | hughjfchen[m] quits (~hughjfche@2001:470:69fc:105::c29d) (Quit: You have been kicked for being idle) |
| 09:00:10 | × | kadoban quits (~kadoban@user/kadoban) (Quit: You have been kicked for being idle) |
| 09:01:15 | × | HotblackDesiato quits (~HotblackD@gateway/tor-sasl/hotblackdesiato) (Remote host closed the connection) |
| 09:01:15 | × | gehmehgeh quits (~user@user/gehmehgeh) (Remote host closed the connection) |
| 09:01:33 | × | zaquest quits (~notzaques@5.130.79.72) (Remote host closed the connection) |
| 09:01:43 | × | Hash quits (~Hash@tunnel686959-pt.tunnel.tserv15.lax1.ipv6.he.net) (Max SendQ exceeded) |
| 09:01:59 | → | gehmehgeh joins (~user@user/gehmehgeh) |
| 09:02:40 | → | zaquest joins (~notzaques@5.130.79.72) |
| 09:02:50 | → | Hash joins (~Hash@tunnel686959-pt.tunnel.tserv15.lax1.ipv6.he.net) |
| 09:04:28 | → | HotblackDesiato joins (~HotblackD@gateway/tor-sasl/hotblackdesiato) |
| 09:05:55 | → | littlebobeep joins (~alMalsamo@gateway/tor-sasl/almalsamo) |
| 09:06:18 | × | cosimone quits (~user@2001:b07:ae5:db26:c24a:d20:4d91:1e20) (Read error: Connection reset by peer) |
| 09:07:12 | × | jargon quits (~jargon@184.101.87.126) (Remote host closed the connection) |
| 09:08:34 | → | cosimone joins (~user@93-44-186-171.ip98.fastwebnet.it) |
| 09:11:12 | → | littlebo1eep joins (~alMalsamo@gateway/tor-sasl/almalsamo) |
| 09:11:26 | → | zincy joins (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) |
| 09:12:20 | × | Hash quits (~Hash@tunnel686959-pt.tunnel.tserv15.lax1.ipv6.he.net) (Ping timeout: 255 seconds) |
| 09:13:25 | × | bliminse quits (~bliminse@host86-164-169-5.range86-164.btcentralplus.com) (Quit: leaving) |
| 09:14:04 | × | littlebobeep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Ping timeout: 240 seconds) |
| 09:15:54 | × | zincy quits (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) (Ping timeout: 258 seconds) |
| 09:16:36 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 09:18:08 | → | tromp joins (~textual@dhcp-077-249-230-040.chello.nl) |
| 09:19:10 | → | Hash joins (~Hash@tunnel686959-pt.tunnel.tserv15.lax1.ipv6.he.net) |
| 09:21:16 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 09:21:29 | → | calleum joins (~calleum@user/calleum) |
| 09:23:07 | <trisolaran> | tomsmeding: thx |
| 09:28:32 | × | spacenautx quits (~spacenaut@user/spacenautx) (Quit: WeeChat 3.0) |
| 09:28:44 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 09:29:04 | × | littlebo1eep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Ping timeout: 240 seconds) |
| 09:29:58 | → | gurkenglas joins (~gurkengla@dslb-084-057-085-111.084.057.pools.vodafone-ip.de) |
| 09:30:34 | → | zincy joins (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) |
| 09:31:03 | × | benin quits (~benin@183.82.177.185) (Quit: The Lounge - https://thelounge.chat) |
| 09:32:08 | <Guest|30> | Anyone knows how to install ghcup in win10? |
| 09:33:05 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 260 seconds) |
| 09:37:23 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) |
| 09:38:33 | × | adium quits (adium@user/adium) (Ping timeout: 246 seconds) |
| 09:41:27 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) (Ping timeout: 240 seconds) |
| 09:45:01 | → | littlebobeep joins (~alMalsamo@gateway/tor-sasl/almalsamo) |
| 09:45:53 | → | nate1 joins (~nate@98.45.169.16) |
| 09:50:41 | → | spacenautx joins (~spacenaut@user/spacenautx) |
| 09:50:47 | × | nate1 quits (~nate@98.45.169.16) (Ping timeout: 258 seconds) |
| 09:54:18 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 09:54:53 | <maerwald[m]> | Guest|30: yeah, why |
| 09:55:14 | <maerwald[m]> | https://youtu.be/bB4fmQiUYPw |
| 09:58:27 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 10:02:40 | → | kn07_ joins (~kn07_@2a02:2f0a:c707:c800:bd85:ae3c:c97b:36f9) |
| 10:02:41 | <kn07_> | https://github.com/antonpuiu/CV/raw/main/resume.pdf |
| 10:03:03 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 10:03:47 | × | razetime quits (~quassel@117.254.34.58) (Ping timeout: 244 seconds) |
| 10:03:49 | → | Neuromancer joins (~Neuromanc@user/neuromancer) |
| 10:04:11 | → | razetime joins (~quassel@117.254.34.118) |
| 10:04:14 | → | __monty__ joins (~toonn@user/toonn) |
| 10:05:03 | × | gehmehgeh quits (~user@user/gehmehgeh) (Remote host closed the connection) |
| 10:05:03 | × | littlebobeep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Remote host closed the connection) |
| 10:05:03 | × | HotblackDesiato quits (~HotblackD@gateway/tor-sasl/hotblackdesiato) (Remote host closed the connection) |
| 10:05:51 | <Guest|30> | I found problems when install the ghcup in win10 |
| 10:05:54 | → | gehmehgeh joins (~user@user/gehmehgeh) |
| 10:06:25 | × | kaskal quits (~kaskal@2001:4bb8:2e8:3abf:bc97:9581:8b80:8f4b) (Quit: ZNC - https://znc.in) |
| 10:06:41 | → | pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) |
| 10:06:44 | → | kaskal joins (~kaskal@089144209011.atnat0018.highway.a1.net) |
| 10:07:07 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 10:07:26 | → | HotblackDesiato joins (~HotblackD@gateway/tor-sasl/hotblackdesiato) |
| 10:10:59 | × | razetime quits (~quassel@117.254.34.118) (Ping timeout: 256 seconds) |
| 10:11:00 | → | razetime_ joins (~quassel@117.254.34.217) |
| 10:11:00 | × | razetime_ quits (~quassel@117.254.34.217) (Client Quit) |
| 10:12:15 | <maerwald[m]> | Guest|30: but you're not gonna tell us what problems? |
| 10:12:31 | × | kn07_ quits (~kn07_@2a02:2f0a:c707:c800:bd85:ae3c:c97b:36f9) (Quit: Leaving) |
| 10:12:44 | <Guest|30> | https://uploads.kiwiirc.com/files/0d7aceb39b2524dc6f5f1391da4e9e2c/image.png |
| 10:13:34 | → | CiaoSen joins (~Jura@p200300c95731a0002a3a4dfffe84dbd5.dip0.t-ipconnect.de) |
| 10:16:10 | <yushyin> | Guest|30: 404 "upload not found" |
| 10:16:59 | <Guest|30> | Uploaded file: https://uploads.kiwiirc.com/files/925dc0524da8db5f470993828e93a466/image.png |
| 10:17:14 | × | acidjnk quits (~acidjnk@p200300d0c7068b75806cd13413d03a05.dip0.t-ipconnect.de) (Ping timeout: 258 seconds) |
| 10:17:40 | <Guest|30> | I try to install it via powershell, but failed. |
| 10:18:54 | → | kuribas joins (~user@ptr-17d51en27t9vm7gh39a.18120a2.ip6.access.telenet.be) |
| 10:19:02 | → | raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 10:19:23 | × | xff0x quits (~xff0x@s5.HtokyoFL1.vectant.ne.jp) (Ping timeout: 255 seconds) |
| 10:19:45 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 10:20:05 | <maerwald[m]> | Guest|30: what are the contenta of C:\\ghcup\\bin |
| 10:20:05 | <maerwald[m]> | *contents |
| 10:20:31 | → | `2jt joins (~jtomas@182.red-88-17-61.dynamicip.rima-tde.net) |
| 10:20:54 | × | causal quits (~user@50.35.83.177) (Quit: WeeChat 3.5) |
| 10:23:10 | <Guest|30> | Just a ghcup.exe file |
| 10:23:35 | <Guest|30> | but it's 0 byte. |
| 10:23:49 | × | `2jt quits (~jtomas@182.red-88-17-61.dynamicip.rima-tde.net) (Remote host closed the connection) |
| 10:24:08 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 10:25:08 | × | averell quits (~averell@user/averell) (Ping timeout: 250 seconds) |
| 10:25:39 | → | littlebobeep joins (~alMalsamo@gateway/tor-sasl/almalsamo) |
| 10:25:52 | → | jgeerds_ joins (~jgeerds@55d45f48.access.ecotel.net) |
| 10:26:02 | <maerwald[m]> | Guest|30: do you have antivirus? |
| 10:26:22 | <Guest|30> | Finally I download a single ghcup.exe file and put it into the folder, it works! |
| 10:26:28 | <Guest|30> | Thx a lot! |
| 10:27:15 | → | averell joins (~averell@user/averell) |
| 10:27:44 | × | coot quits (~coot@213.134.190.95) (Quit: coot) |
| 10:28:35 | → | acidjnk joins (~acidjnk@p200300d0c7068b751c2d9dbe7b089481.dip0.t-ipconnect.de) |
| 10:33:37 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 10:34:20 | × | zincy quits (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) (Ping timeout: 260 seconds) |
| 10:34:51 | → | nahcetan joins (~nate@98.45.169.16) |
| 10:35:36 | × | raym quits (~raym@user/raym) (Ping timeout: 246 seconds) |
| 10:36:42 | → | raym joins (~raym@user/raym) |
| 10:37:04 | × | littlebobeep quits (~alMalsamo@gateway/tor-sasl/almalsamo) (Ping timeout: 240 seconds) |
| 10:37:53 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 244 seconds) |
| 10:40:47 | × | nahcetan quits (~nate@98.45.169.16) (Ping timeout: 252 seconds) |
| 10:43:16 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 10:44:25 | × | forell quits (~forell@user/forell) (Ping timeout: 256 seconds) |
| 10:47:25 | × | Guest|30 quits (~Guest|30@219.159.159.77) (Quit: Connection closed) |
| 10:47:45 | → | zincy joins (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) |
| 10:48:06 | → | forell joins (~forell@user/forell) |
| 10:50:03 | → | wonko joins (~wjc@user/wonko) |
| 10:50:12 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 10:52:07 | × | bajskorfven quits (~bajskorfv@90-231-13-185-no3430.tbcn.telia.com) (Read error: Connection reset by peer) |
| 10:52:45 | × | trisolaran quits (~ye@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) (Ping timeout: 246 seconds) |
| 10:53:07 | × | dextaa quits (~DV@user/dextaa) (Read error: Connection reset by peer) |
| 10:53:24 | → | dextaa joins (~DV@user/dextaa) |
| 11:01:49 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 11:05:50 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 11:06:50 | → | bliminse joins (~bliminse@host86-164-169-5.range86-164.btcentralplus.com) |
| 11:08:26 | × | gehmehgeh quits (~user@user/gehmehgeh) (Remote host closed the connection) |
| 11:09:21 | → | gehmehgeh joins (~user@user/gehmehgeh) |
| 11:10:29 | × | averell quits (~averell@user/averell) (Ping timeout: 252 seconds) |
| 11:13:23 | × | vglfr quits (~vglfr@46.96.180.249) (Ping timeout: 255 seconds) |
| 11:14:22 | → | vglfr joins (~vglfr@46.96.180.249) |
| 11:15:02 | × | __monty__ quits (~toonn@user/toonn) (Quit: leaving) |
| 11:15:21 | → | xff0x joins (~xff0x@b133147.ppp.asahi-net.or.jp) |
| 11:16:01 | → | __monty__ joins (~toonn@user/toonn) |
| 11:17:42 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 11:19:36 | → | bajskorfven joins (~bajskorfv@90-231-13-185-no3430.tbcn.telia.com) |
| 11:23:44 | × | calleum quits (~calleum@user/calleum) (Ping timeout: 255 seconds) |
| 11:27:26 | × | califax quits (~califax@user/califx) (Remote host closed the connection) |
| 11:28:06 | × | jayalahbr quits (~tailu@36.72.129.252) (Ping timeout: 246 seconds) |
| 11:28:35 | → | jayalahbr joins (~tailu@180.251.226.50) |
| 11:29:26 | → | califax joins (~califax@user/califx) |
| 11:30:29 | → | Unicorn_Princess joins (~Unicorn_P@93-103-228-248.dynamic.t-2.net) |
| 11:33:15 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 260 seconds) |
| 11:33:50 | × | perrierjouet quits (~perrier-j@modemcable012.251-130-66.mc.videotron.ca) (Quit: WeeChat 3.5) |
| 11:35:50 | × | califax quits (~califax@user/califx) (Remote host closed the connection) |
| 11:36:26 | → | pretty_d1 joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) |
| 11:36:29 | × | pretty_d1 quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Client Quit) |
| 11:37:01 | → | califax joins (~califax@user/califx) |
| 11:38:35 | × | tromp quits (~textual@dhcp-077-249-230-040.chello.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 11:38:47 | × | pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Ping timeout: 240 seconds) |
| 11:39:16 | → | trisolaran joins (~ye@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) |
| 11:39:29 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) |
| 11:42:47 | → | pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) |
| 11:42:54 | × | pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Client Quit) |
| 11:44:04 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) (Ping timeout: 248 seconds) |
| 11:45:03 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 11:48:47 | × | alp quits (~alp@user/alp) (Ping timeout: 240 seconds) |
| 11:48:50 | → | sympt7 joins (~sympt@user/sympt) |
| 11:50:09 | → | coot joins (~coot@213.134.190.95) |
| 11:50:16 | × | Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Read error: Connection reset by peer) |
| 11:50:27 | → | Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) |
| 11:50:32 | × | sympt quits (~sympt@user/sympt) (Ping timeout: 260 seconds) |
| 11:50:32 | sympt7 | is now known as sympt |
| 11:51:55 | → | alp joins (~alp@user/alp) |
| 11:52:17 | × | zincy quits (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) (Ping timeout: 260 seconds) |
| 11:58:25 | × | califax quits (~califax@user/califx) (Remote host closed the connection) |
| 12:00:41 | → | califax joins (~califax@user/califx) |
| 12:05:32 | → | AlexNoo_ joins (~AlexNoo@178.34.150.59) |
| 12:08:42 | × | Alex_test quits (~al_test@178.34.160.101) (Ping timeout: 246 seconds) |
| 12:08:48 | × | cxd quits (~cxd@240e:369:ec6:4300:39c1:d334:ba15:f1ad) (Quit: Leaving) |
| 12:09:10 | × | AlexNoo quits (~AlexNoo@178.34.160.101) (Ping timeout: 258 seconds) |
| 12:09:11 | × | AlexZenon quits (~alzenon@178.34.160.101) (Ping timeout: 255 seconds) |
| 12:10:03 | × | jayalahbr quits (~tailu@180.251.226.50) (Remote host closed the connection) |
| 12:10:24 | × | frost quits (~frost@user/frost) (Quit: Client closed) |
| 12:10:28 | → | henninb joins (~henninb@97-116-138-116.mpls.qwest.net) |
| 12:13:20 | → | Alex_test joins (~al_test@178.34.150.59) |
| 12:13:38 | → | AlexZenon joins (~alzenon@178.34.150.59) |
| 12:13:56 | AlexNoo_ | is now known as AlexNoo |
| 12:14:39 | <trisolaran> | is there a way to ask ghci to load a package environment such as .ghc.environment.x86_64-linux-9.2.2 |
| 12:15:01 | × | Pickchea quits (~private@user/pickchea) (Ping timeout: 244 seconds) |
| 12:15:57 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 276 seconds) |
| 12:16:31 | <geekosaur> | a package environment behaves like a p0ackage db; you don't load those all at once, it just tells ghc/ghci where to find packages |
| 12:16:45 | <geekosaur> | that said you can do :set -package <pkgname> |
| 12:18:18 | <Las[m]> | Does anyone have *any* idea what could cause `/nix/store/...-binutils-2.35.2/bin/ld.gold: error: /nix/store/...-ghc-9.2.2/lib/ghc-9.2.2/rts/libHSrts.a(Globals.o): multiple definition of 'ghc_unique_counter'` ? |
| 12:18:20 | → | calleum joins (~calleum@user/calleum) |
| 12:18:39 | <Las[m]> | This happens while compiling fourmolu (0.6.0.0 and 0.7.0.0) with GHC 9.2.2 |
| 12:19:57 | → | tromp joins (~textual@dhcp-077-249-230-040.chello.nl) |
| 12:20:09 | × | califax quits (~califax@user/califx) (Remote host closed the connection) |
| 12:20:44 | → | califax joins (~califax@user/califx) |
| 12:22:59 | <Las[m]> | oh there's a GH issue... https://github.com/input-output-hk/haskell.nix/issues/1488 |
| 12:23:17 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 12:23:47 | × | chomwitt quits (~chomwitt@2a02:587:dc11:7d00:a7f0:c7db:e9b3:6e1d) (Ping timeout: 260 seconds) |
| 12:25:30 | × | calleum quits (~calleum@user/calleum) (Ping timeout: 246 seconds) |
| 12:27:33 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 256 seconds) |
| 12:29:47 | × | Maxdamantus quits (~Maxdamant@user/maxdamantus) (Ping timeout: 240 seconds) |
| 12:30:02 | × | Kaiepi quits (~Kaiepi@156.34.47.253) (Read error: Connection reset by peer) |
| 12:33:01 | → | odnes joins (~odnes@5-203-211-146.pat.nym.cosmote.net) |
| 12:36:18 | → | polezaivsani joins (~polezaivs@orangeshoelaces.net) |
| 12:38:36 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 12:38:51 | → | zincy joins (~zincy@host86-160-236-152.range86-160.btcentralplus.com) |
| 12:39:28 | → | averell joins (~averell@user/averell) |
| 12:39:38 | → | nehsou^ joins (~nehsou@128-092-173-218.biz.spectrum.com) |
| 12:40:26 | → | hgolden joins (~hgolden2@cpe-172-251-233-141.socal.res.rr.com) |
| 12:43:47 | × | nehsou^ quits (~nehsou@128-092-173-218.biz.spectrum.com) (Ping timeout: 240 seconds) |
| 12:44:29 | <polezaivsani> | skimming through the notes, i've just stumbled upon a transcript of somebody helping me out here, and thought i'd call a huge thank you to everybody here just in case somebody missed it last time :) |
| 12:46:54 | → | liz joins (~liz@host86-159-158-175.range86-159.btcentralplus.com) |
| 12:50:47 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 12:55:43 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 12:59:24 | → | o-90 joins (~o-90@gateway/tor-sasl/o-90) |
| 13:01:27 | × | califax quits (~califax@user/califx) (Remote host closed the connection) |
| 13:02:33 | → | califax joins (~califax@user/califx) |
| 13:02:45 | → | frost joins (~frost@user/frost) |
| 13:03:36 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 13:04:09 | → | Pickchea joins (~private@user/pickchea) |
| 13:06:00 | → | Maxdamantus joins (~Maxdamant@user/maxdamantus) |
| 13:08:53 | × | o-90 quits (~o-90@gateway/tor-sasl/o-90) (Remote host closed the connection) |
| 13:09:16 | × | acidjnk quits (~acidjnk@p200300d0c7068b751c2d9dbe7b089481.dip0.t-ipconnect.de) (Ping timeout: 244 seconds) |
| 13:11:35 | × | califax quits (~califax@user/califx) (Remote host closed the connection) |
| 13:12:37 | → | califax joins (~califax@user/califx) |
| 13:13:19 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 13:14:11 | → | planitia joins (~planitia@c-76-126-44-243.hsd1.ca.comcast.net) |
| 13:16:46 | → | dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net) |
| 13:17:22 | × | Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Read error: Connection reset by peer) |
| 13:17:36 | × | dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Client Quit) |
| 13:18:30 | → | Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) |
| 13:24:10 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 13:25:21 | × | odnes quits (~odnes@5-203-211-146.pat.nym.cosmote.net) (Ping timeout: 246 seconds) |
| 13:30:05 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 13:31:05 | × | Pickchea quits (~private@user/pickchea) (Ping timeout: 255 seconds) |
| 13:33:29 | → | moonsheep joins (~user@user/moonsheep) |
| 13:36:41 | → | nehsou^ joins (~nehsou@128-092-173-218.biz.spectrum.com) |
| 13:38:50 | × | planitia quits (~planitia@c-76-126-44-243.hsd1.ca.comcast.net) (Ping timeout: 240 seconds) |
| 13:42:17 | × | dextaa quits (~DV@user/dextaa) (Read error: Connection reset by peer) |
| 13:43:12 | × | zincy quits (~zincy@host86-160-236-152.range86-160.btcentralplus.com) (Ping timeout: 246 seconds) |
| 13:43:47 | × | cfricke quits (~cfricke@user/cfricke) (Ping timeout: 240 seconds) |
| 13:44:33 | → | dextaa joins (~DV@user/dextaa) |
| 13:46:12 | × | nehsou^ quits (~nehsou@128-092-173-218.biz.spectrum.com) (Remote host closed the connection) |
| 13:46:38 | × | xff0x quits (~xff0x@b133147.ppp.asahi-net.or.jp) (Ping timeout: 250 seconds) |
| 13:47:23 | → | nate1 joins (~nate@98.45.169.16) |
| 13:49:26 | → | wroathe joins (~wroathe@206-55-188-8.fttp.usinternet.com) |
| 13:49:26 | × | wroathe quits (~wroathe@206-55-188-8.fttp.usinternet.com) (Changing host) |
| 13:49:26 | → | wroathe joins (~wroathe@user/wroathe) |
| 13:49:36 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 13:52:03 | → | xff0x joins (~xff0x@b133147.ppp.asahi-net.or.jp) |
| 13:52:33 | × | nate1 quits (~nate@98.45.169.16) (Ping timeout: 256 seconds) |
| 13:56:42 | → | planitia joins (~planitia@23.sub-166-167-195.myvzw.com) |
| 13:57:23 | × | raym quits (~raym@user/raym) (Quit: kernel update, rebooting...) |
| 13:58:42 | × | kaskal quits (~kaskal@089144209011.atnat0018.highway.a1.net) (Quit: ZNC - https://znc.in) |
| 13:59:00 | → | kaskal joins (~kaskal@089144209011.atnat0018.highway.a1.net) |
| 13:59:28 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 13:59:53 | × | moonsheep quits (~user@user/moonsheep) (Remote host closed the connection) |
| 14:00:13 | → | raym joins (~raym@user/raym) |
| 14:02:19 | → | yosef``` joins (~user@2409:8a55:e214:41a0:58b9:4cff:fea0:d9) |
| 14:03:29 | × | yosef`` quits (~user@user/yosef/x-3154124) (Ping timeout: 255 seconds) |
| 14:04:07 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 260 seconds) |
| 14:06:03 | → | zincy joins (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) |
| 14:08:21 | × | pavonia quits (~user@user/siracusa) (Quit: Bye!) |
| 14:10:34 | → | Sgeo joins (~Sgeo@user/sgeo) |
| 14:10:41 | × | zincy quits (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) (Ping timeout: 258 seconds) |
| 14:12:50 | → | moonsheep joins (~user@iespladelestany.xtec.cat) |
| 14:13:36 | × | moonsheep quits (~user@iespladelestany.xtec.cat) (Changing host) |
| 14:13:36 | → | moonsheep joins (~user@user/moonsheep) |
| 14:13:56 | × | lortabac quits (~lortabac@2a01:e0a:541:b8f0:dae4:93ae:95ab:d19f) (Quit: WeeChat 2.8) |
| 14:17:10 | × | gurkenglas quits (~gurkengla@dslb-084-057-085-111.084.057.pools.vodafone-ip.de) (Ping timeout: 260 seconds) |
| 14:17:27 | × | trisolaran quits (~ye@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) (Ping timeout: 240 seconds) |
| 14:18:50 | × | xstill- quits (xstill@fimu/xstill) (Ping timeout: 240 seconds) |
| 14:18:50 | × | xsarnik quits (xsarnik@lounge.fi.muni.cz) (Ping timeout: 240 seconds) |
| 14:20:17 | × | phma quits (~phma@2001:5b0:211f:4518:bf0d:fbb9:9134:fb7a) (Read error: Connection reset by peer) |
| 14:20:20 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 14:21:17 | × | moonsheep quits (~user@user/moonsheep) (Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)) |
| 14:23:42 | → | xstill- joins (xstill@fimu/xstill) |
| 14:24:27 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 14:24:32 | → | jollygood2 joins (www-data@2607:5300:60:8be::1) |
| 14:25:39 | → | zincy joins (~zincy@host86-160-236-152.range86-160.btcentralplus.com) |
| 14:26:56 | × | aeka quits (~aeka@2606:6080:1001:16:3492:5f11:f1fb:66ae) (Ping timeout: 250 seconds) |
| 14:28:01 | → | xsarnik joins (xsarnik@lounge.fi.muni.cz) |
| 14:31:43 | → | jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) |
| 14:32:53 | → | waleee joins (~waleee@2001:9b0:213:7200:cc36:a556:b1e8:b340) |
| 14:33:26 | → | sympt2 joins (~sympt@user/sympt) |
| 14:34:29 | × | sympt quits (~sympt@user/sympt) (Ping timeout: 256 seconds) |
| 14:34:30 | sympt2 | is now known as sympt |
| 14:34:33 | × | planitia quits (~planitia@23.sub-166-167-195.myvzw.com) (Read error: Connection reset by peer) |
| 14:34:43 | → | planitia joins (~planitia@93.sub-166-167-14.myvzw.com) |
| 14:34:44 | → | mmhat joins (~mmh@p200300f1c71bc3d0ee086bfffe095315.dip0.t-ipconnect.de) |
| 14:35:48 | × | planitia quits (~planitia@93.sub-166-167-14.myvzw.com) (Read error: Connection reset by peer) |
| 14:35:48 | → | aeka joins (~aeka@2606:6080:1001:16:3492:5f11:f1fb:66ae) |
| 14:36:50 | × | frost quits (~frost@user/frost) (Ping timeout: 252 seconds) |
| 14:38:40 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 14:38:56 | → | slack1256 joins (~slack1256@181.43.227.124) |
| 14:40:52 | × | wroathe quits (~wroathe@user/wroathe) (Ping timeout: 260 seconds) |
| 14:40:52 | × | alp quits (~alp@user/alp) (Ping timeout: 260 seconds) |
| 14:40:57 | × | myme quits (~myme@2a01:799:d5a:cd00:ca17:d4bb:5fc8:9461) (Remote host closed the connection) |
| 14:41:21 | → | myme joins (~myme@2a01:799:d5a:cd00:a688:b867:c411:edfd) |
| 14:42:00 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) |
| 14:42:53 | → | wroathe joins (~wroathe@206-55-188-8.fttp.usinternet.com) |
| 14:42:54 | × | wroathe quits (~wroathe@206-55-188-8.fttp.usinternet.com) (Changing host) |
| 14:42:54 | → | wroathe joins (~wroathe@user/wroathe) |
| 14:43:18 | → | pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) |
| 14:44:48 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 276 seconds) |
| 14:46:18 | → | Kaiepi joins (~Kaiepi@156.34.47.253) |
| 14:46:55 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) (Ping timeout: 260 seconds) |
| 14:48:51 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 14:49:03 | → | moonsheep joins (~user@user/moonsheep) |
| 14:49:50 | × | moonsheep quits (~user@user/moonsheep) (Client Quit) |
| 14:51:16 | → | shriekingnoise joins (~shrieking@201.231.16.156) |
| 14:51:55 | → | motherfsck joins (~motherfsc@user/motherfsck) |
| 14:53:22 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 250 seconds) |
| 14:58:27 | × | juri_ quits (~juri@178.63.35.222) (Ping timeout: 276 seconds) |
| 14:59:56 | → | juri_ joins (~juri@178.63.35.222) |
| 15:04:57 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 15:06:36 | → | gurkenglas joins (~gurkengla@dslb-084-057-085-111.084.057.pools.vodafone-ip.de) |
| 15:07:13 | × | dextaa quits (~DV@user/dextaa) (Read error: Connection reset by peer) |
| 15:09:17 | → | dextaa joins (~DV@user/dextaa) |
| 15:09:20 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 15:14:27 | × | averell quits (~averell@user/averell) (Ping timeout: 240 seconds) |
| 15:14:49 | → | Hemmo joins (~IceChat95@85-76-165-183-nat.elisa-mobile.fi) |
| 15:17:29 | <Hemmo> | Hey! Is there a way to remove the "Just" from my instance of show? Right now I have a phone data type which with certain input shows (123456 (Just Other)) and I would like it to be (123456 (Other)) |
| 15:17:50 | <Hemmo> | Am using a maybe in the mix, so that's why I'm asking. |
| 15:18:28 | <Hemmo> | Code is here -> https://paste.tomsmeding.com/IkHUeKQx |
| 15:19:24 | <Hemmo> | So my point is that when I use the readPhone function, that it would omit the "Just" from the country code as well as phone type... |
| 15:19:32 | → | averell joins (~averell@user/averell) |
| 15:21:38 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 15:22:57 | <Hemmo> | And also as a side note, I need to use the Maybe in the constructor of the Phone, because the country code and phone type are supposed to be optional. |
| 15:23:18 | <[Leary]> | Hemmo: You're using "==" and a grand excess of if-then-else where you should be pattern matching. That would also solve your problem, more or less. Something like `show (Phone (Just pt) (Just cc) pn) = ...; show (Phone Nothing (Just cc) pn) = ...` etc. |
| 15:24:37 | → | slac22272 joins (~slack1256@191.125.99.204) |
| 15:25:50 | × | zincy quits (~zincy@host86-160-236-152.range86-160.btcentralplus.com) (Ping timeout: 240 seconds) |
| 15:27:03 | × | slack1256 quits (~slack1256@181.43.227.124) (Ping timeout: 276 seconds) |
| 15:28:24 | → | nate1 joins (~nate@98.45.169.16) |
| 15:28:47 | <[Leary]> | Though, it looks like you can factor the logic a bit better and write it all in one case. |
| 15:29:07 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 15:30:59 | × | liz quits (~liz@host86-159-158-175.range86-159.btcentralplus.com) (Quit: Lost terminal) |
| 15:32:04 | → | nahcetan joins (~nate@98.45.169.16) |
| 15:33:22 | × | hgolden quits (~hgolden2@cpe-172-251-233-141.socal.res.rr.com) (Remote host closed the connection) |
| 15:34:22 | <Hemmo> | [Leary]: Thanks a ton! Wasn't in the know on how to pattern match with an instance! |
| 15:34:39 | <Hemmo> | [Leary]: You mean using the "case" keyword somehow? Haven't used it thus far at all |
| 15:35:01 | × | CiaoSen quits (~Jura@p200300c95731a0002a3a4dfffe84dbd5.dip0.t-ipconnect.de) (Ping timeout: 258 seconds) |
| 15:35:30 | × | nate1 quits (~nate@98.45.169.16) (Ping timeout: 276 seconds) |
| 15:36:56 | <tomsmeding> | > case Just 3 of { Nothing -> "it was nothing" ; Just n -> "it was " ++ show n } |
| 15:36:59 | <lambdabot> | "it was 3" |
| 15:37:06 | <[Leary]> | It doesn't have anything to do with *instances* per se; pattern matching is always available in this manner when you define a function. And I didn't mean a case-of expression, though you could use that if you preferred. |
| 15:37:19 | × | coot quits (~coot@213.134.190.95) (Quit: coot) |
| 15:37:19 | <tomsmeding> | Hemmo: except please use newlines instead of the { ; } :) |
| 15:37:47 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) |
| 15:37:58 | <[Leary]> | > foldMap (show <> " ") (Just 3) |
| 15:38:00 | <lambdabot> | error: |
| 15:38:00 | <lambdabot> | • Couldn't match expected type ‘a0 -> String’ |
| 15:38:00 | <lambdabot> | with actual type ‘[Char]’ |
| 15:38:13 | <tomsmeding> | [Leary]: karma for trying to make it too complicated :p |
| 15:38:17 | <[Leary]> | Oh, right... |
| 15:38:29 | <tomsmeding> | > foldMap (show <> const " ") (Just 3) |
| 15:38:30 | <lambdabot> | "3 " |
| 15:38:45 | <[Leary]> | True. In my defence, I was going to call it magic. But we could have that IsString instance. |
| 15:39:49 | <[Leary]> | > foldMap (\x -> show x ++ " ") Nothing ++ "something" |
| 15:39:52 | <lambdabot> | "something" |
| 15:39:59 | <tomsmeding> | @let instance IsString a => IsString (b -> a) where fromString = const . fromString |
| 15:40:00 | <lambdabot> | /sandbox/tmp/.L.hs:152:10: error: |
| 15:40:00 | <lambdabot> | Not in scope: type constructor or class ‘IsString’ |
| 15:40:00 | <lambdabot> | Perhaps you meant one of these: |
| 15:40:06 | <tomsmeding> | @import Data.String |
| 15:40:06 | <lambdabot> | Unknown command, try @list |
| 15:40:11 | <tomsmeding> | @let import Data.String |
| 15:40:13 | <lambdabot> | Defined. |
| 15:40:16 | <tomsmeding> | @let instance IsString a => IsString (b -> a) where fromString = const . fromString |
| 15:40:17 | <lambdabot> | Defined. |
| 15:40:25 | <tomsmeding> | > foldMap (show <> " ") (Just 3) |
| 15:40:27 | <lambdabot> | error: |
| 15:40:27 | <lambdabot> | • Couldn't match expected type ‘a0 -> String’ |
| 15:40:27 | <lambdabot> | with actual type ‘[Char]’ |
| 15:40:36 | <[Leary]> | Hemmo: I meant that you could deal with the maybes like that, without having to expliticly match on them. |
| 15:40:42 | <tomsmeding> | meh no OverloadedStrings |
| 15:41:38 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 15:43:38 | × | Kaiepi quits (~Kaiepi@156.34.47.253) (Ping timeout: 250 seconds) |
| 15:44:09 | <Hemmo> | Cheers! I have to experiment with that now! |
| 15:51:07 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 15:55:31 | → | zincy joins (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) |
| 15:55:37 | → | dost^ joins (~dost@128-092-173-218.biz.spectrum.com) |
| 15:56:18 | × | jgeerds_ quits (~jgeerds@55d45f48.access.ecotel.net) (Ping timeout: 276 seconds) |
| 15:56:20 | × | [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Remote host closed the connection) |
| 15:56:26 | × | waleee quits (~waleee@2001:9b0:213:7200:cc36:a556:b1e8:b340) (Ping timeout: 272 seconds) |
| 15:56:34 | → | [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470) |
| 15:57:09 | → | Kaiepi joins (~Kaiepi@156.34.47.253) |
| 15:58:40 | → | jmdaemon joins (~jmdaemon@user/jmdaemon) |
| 16:00:09 | × | Andy[m] quits (~anparrama@2001:470:69fc:105::1:6826) (Quit: You have been kicked for being idle) |
| 16:01:26 | → | lyle joins (~lyle@104.246.145.85) |
| 16:02:26 | × | Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Read error: Connection reset by peer) |
| 16:03:01 | → | Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) |
| 16:03:58 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 16:09:18 | → | tzh joins (~tzh@c-24-21-73-154.hsd1.or.comcast.net) |
| 16:10:21 | → | geranim0 joins (~geranim0@modemcable242.171-178-173.mc.videotron.ca) |
| 16:10:47 | → | econo joins (uid147250@user/econo) |
| 16:12:15 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) (Remote host closed the connection) |
| 16:12:53 | → | jmd_ joins (~jmdaemon@user/jmdaemon) |
| 16:13:59 | × | jmdaemon quits (~jmdaemon@user/jmdaemon) (Ping timeout: 255 seconds) |
| 16:18:45 | × | Hemmo quits (~IceChat95@85-76-165-183-nat.elisa-mobile.fi) (Quit: A fine is a tax for doing wrong. A tax is a fine for doing well.) |
| 16:18:50 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) |
| 16:20:17 | × | titibandit quits (~thibaut@2a00:8a60:c000:1:8a13:bf74:b2:8d47) (Remote host closed the connection) |
| 16:25:10 | × | xsarnik quits (xsarnik@lounge.fi.muni.cz) (Ping timeout: 240 seconds) |
| 16:25:10 | × | xstill- quits (xstill@fimu/xstill) (Ping timeout: 240 seconds) |
| 16:26:31 | → | xstill- joins (xstill@fimu/xstill) |
| 16:26:40 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 260 seconds) |
| 16:28:44 | → | xsarnik joins (xsarnik@lounge.fi.muni.cz) |
| 16:28:55 | × | slac22272 quits (~slack1256@191.125.99.204) (Read error: Connection reset by peer) |
| 16:30:17 | → | slack1256 joins (~slack1256@181.43.227.124) |
| 16:32:19 | bgamari_ | is now known as bgamari |
| 16:32:49 | × | tromp quits (~textual@dhcp-077-249-230-040.chello.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 16:34:38 | × | gnyeki quits (~gnyeki@user/gnyeki) (Quit: leaving) |
| 16:34:39 | × | nahcetan quits (~nate@98.45.169.16) (Ping timeout: 276 seconds) |
| 16:34:48 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) (Remote host closed the connection) |
| 16:37:38 | → | gnyeki joins (~gnyeki@user/gnyeki) |
| 16:38:47 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 16:39:34 | → | ec joins (~ec@gateway/tor-sasl/ec) |
| 16:39:45 | → | wootehfoot joins (~wootehfoo@user/wootehfoot) |
| 16:40:30 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) |
| 16:40:49 | ← | jakalx parts (~jakalx@base.jakalx.net) () |
| 16:42:29 | → | cfricke joins (~cfricke@user/cfricke) |
| 16:44:00 | → | jakalx joins (~jakalx@base.jakalx.net) |
| 16:44:16 | → | alp joins (~alp@user/alp) |
| 16:45:07 | × | polezaivsani quits (~polezaivs@orangeshoelaces.net) (Ping timeout: 240 seconds) |
| 16:46:51 | → | jgeerds_ joins (~jgeerds@55d45f48.access.ecotel.net) |
| 16:50:48 | × | vglfr quits (~vglfr@46.96.180.249) (Ping timeout: 250 seconds) |
| 16:52:27 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 16:54:02 | × | Kaiepi quits (~Kaiepi@156.34.47.253) (Ping timeout: 255 seconds) |
| 16:55:42 | × | cfricke quits (~cfricke@user/cfricke) (Ping timeout: 246 seconds) |
| 16:55:47 | → | mildewed joins (~mildewed@dsl-hkibng11-50dca3-234.dhcp.inet.fi) |
| 16:57:14 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 272 seconds) |
| 16:59:20 | → | raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 16:59:58 | → | slac14953 joins (~slack1256@191.126.99.204) |
| 17:00:17 | × | zincy quits (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) (Ping timeout: 260 seconds) |
| 17:01:47 | × | slack1256 quits (~slack1256@181.43.227.124) (Ping timeout: 240 seconds) |
| 17:04:13 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 17:07:10 | × | mildewed quits (~mildewed@dsl-hkibng11-50dca3-234.dhcp.inet.fi) (Quit: Ping timeout (120 seconds)) |
| 17:07:14 | → | trisolaran joins (~ye@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) |
| 17:08:37 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 256 seconds) |
| 17:10:09 | → | mildewed joins (~mildewed@dsl-hkibng11-50dca3-234.dhcp.inet.fi) |
| 17:10:37 | <mildewed> | hi, a fresh haskell programmer here, I've the following problem. let's say I have a custom data type with a few constructors, each ctor takes one argument (the type of arg is not same for all ctros) |
| 17:10:47 | <mildewed> | is there general way to extract items of specific data constructor from that list? |
| 17:11:07 | <mildewed> | I can create list comprehension for each ctor but that feels a little bit silly |
| 17:11:19 | <mildewed> | I mean something like this: https://pastebin.com/ZAzPZYy0 |
| 17:11:59 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 17:12:34 | <mildewed> | or is the approach completely wrong? |
| 17:15:05 | → | zincy joins (~zincy@host86-160-236-152.range86-160.btcentralplus.com) |
| 17:15:30 | <[Leary]> | :t partitionEithers |
| 17:15:31 | <lambdabot> | [Either a b] -> ([a], [b]) |
| 17:15:35 | <lyxia> | it's a bit fishy to not remove the constructor as well but it's not inconceivable. |
| 17:15:58 | <[Leary]> | mildewed: I suggest you write your own version of that for your datatype. |
| 17:16:51 | <lyxia> | that doesn't seem better than these getCs functions to me. |
| 17:20:20 | <mildewed> | agree, sounds that I'll end up writing the same kind of stuff with that approach |
| 17:20:53 | × | dcoutts__ quits (~duncan@host86-144-78-203.range86-144.btcentralplus.com) (Remote host closed the connection) |
| 17:21:15 | → | dcoutts__ joins (~duncan@host86-144-78-203.range86-144.btcentralplus.com) |
| 17:21:35 | <[Leary]> | It just prevents pointlessly re-traversing the list when you want more than one of the outputs. |
| 17:22:31 | <[Leary]> | And it's nice to match like (as, bs, _) = .... |
| 17:26:03 | → | jmdaemon joins (~jmdaemon@user/jmdaemon) |
| 17:27:20 | × | jmd_ quits (~jmdaemon@user/jmdaemon) (Ping timeout: 260 seconds) |
| 17:27:51 | → | Guest|62 joins (~Guest|62@c-71-205-105-44.hsd1.co.comcast.net) |
| 17:28:38 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 244 seconds) |
| 17:29:27 | <mildewed> | yep, the actual end result that I'd like to achieve is to extract the specific values if the list contains those types. I know that the certain type can occur only 0 or 1 time in the list |
| 17:30:57 | × | mbuf quits (~Shakthi@171.61.198.110) (Quit: Leaving) |
| 17:34:04 | × | ubert quits (~Thunderbi@p548c97e3.dip0.t-ipconnect.de) (Quit: ubert) |
| 17:35:31 | → | epolanski joins (uid312403@id-312403.helmsley.irccloud.com) |
| 17:37:02 | → | Kaiepi joins (~Kaiepi@156.34.47.253) |
| 17:37:14 | → | tenniscp25 joins (~tenniscp2@2001:fb1:fd:fc2f:a1aa:a872:c102:fe07) |
| 17:38:10 | × | tenniscp25 quits (~tenniscp2@2001:fb1:fd:fc2f:a1aa:a872:c102:fe07) (Client Quit) |
| 17:39:15 | <[Leary]> | Uhh. In that case, it's something of a questionable representation. If you're the one producing the value, I would consider using something like `data Foo f a b c = Foo (f a) (f b) (f c)` with f = Maybe. |
| 17:39:57 | <[Leary]> | Then the property is in the type, and your implementation is just a pattern match. |
| 17:40:27 | → | Henkru joins (henkru@kapsi.fi) |
| 17:41:06 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 17:43:10 | ← | Henkru parts (henkru@kapsi.fi) (haskell.fi) |
| 17:43:32 | → | tromp joins (~textual@dhcp-077-249-230-040.chello.nl) |
| 17:44:11 | → | Henkru joins (henkru@kapsi.fi) |
| 17:46:27 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 17:51:29 | <dminuoso> | Why is it that I have to go through withForeignPtr to read/manipulate foreign objects? |
| 17:51:44 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 17:52:02 | <dminuoso> | What the subtlety that it does, that I couldnt do with the ForeignPtr itself? (i.e. why isnt `type ForeignPtr = Ptr`) |
| 17:52:16 | <dminuoso> | Im staring at the implementation and I cant make sense of it |
| 17:52:48 | <geekosaur> | ForeignPtrs have finalizers attached, iirc. and therefore need to be kept alive with some kind of "touch" primitive so they don't get prematurely gced |
| 17:52:52 | × | mmhat quits (~mmh@p200300f1c71bc3d0ee086bfffe095315.dip0.t-ipconnect.de) (Quit: WeeChat 3.5) |
| 17:54:08 | × | jrm quits (~jrm@156.34.173.250) (Changing host) |
| 17:54:08 | → | jrm joins (~jrm@user/jrm) |
| 17:54:09 | <geekosaur> | so withForeignPtr extracts the Ptr so you can use it, while keeping the ForeignPtr alive so it's not gced behind your back |
| 17:54:30 | <dminuoso> | Well yes, but if `type ForeignPtr = Ptr` it wouldnt be GCed behind my back |
| 17:54:52 | <geekosaur> | but then you have the problem that when it is, nothing tells the foreign side to release it |
| 17:54:59 | <geekosaur> | which is what the finalizer part is for |
| 17:55:00 | <dolio> | Yes, it could. |
| 17:56:42 | <dminuoso> | geekosaur: Alright but I think I get the idea. Thanks. |
| 17:57:20 | <dminuoso> | dolio: Care to elaborate? How could a ptr be GCed behind my back while I still have references to it? |
| 17:59:02 | × | mildewed quits (~mildewed@dsl-hkibng11-50dca3-234.dhcp.inet.fi) (Quit: Client closed) |
| 18:00:13 | × | gehmehgeh quits (~user@user/gehmehgeh) (Quit: Leaving) |
| 18:00:17 | <dolio> | Because the last occurrence of the pointer in your Haskell code might not be the duration it's required to stay live for. |
| 18:00:53 | <dolio> | withForeignPtr keeps it live for the entire scope. |
| 18:01:59 | × | Adam_ quits (uid555638@id-555638.lymington.irccloud.com) (Quit: Connection closed for inactivity) |
| 18:02:04 | <dminuoso> | Ah I think I understand. withForeignPtr might hand a pointer off to a foreign function, and then not reference the ptr anymore. But the foreign code could still reference it |
| 18:02:22 | → | KoboldChieftain joins (~jwhittle@170.10.187.19) |
| 18:02:23 | <dolio> | You might have `do foreignStuff ptr ; ... ; moreForeignStuffThatDependsOnPtr ...` |
| 18:02:25 | <dminuoso> | Right |
| 18:02:45 | <dminuoso> | Yeah that sounds very motivating to me. |
| 18:06:26 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 18:08:15 | → | simendsjo joins (~user@84.211.91.241) |
| 18:13:46 | → | waleee joins (~waleee@2001:9b0:213:7200:cc36:a556:b1e8:b340) |
| 18:15:05 | × | zincy quits (~zincy@host86-160-236-152.range86-160.btcentralplus.com) (Remote host closed the connection) |
| 18:15:17 | → | zincy joins (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) |
| 18:16:07 | × | wonko quits (~wjc@user/wonko) (Ping timeout: 260 seconds) |
| 18:19:08 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 18:21:06 | × | simendsjo quits (~user@84.211.91.241) (Ping timeout: 246 seconds) |
| 18:22:54 | × | slac14953 quits (~slack1256@191.126.99.204) (Read error: Connection reset by peer) |
| 18:23:39 | → | slack1256 joins (~slack1256@181.43.227.124) |
| 18:25:54 | → | stackdroid18 joins (14094@user/stackdroid) |
| 18:28:37 | → | hungry_caterpill joins (~hungry_ca@pool-173-79-64-34.washdc.fios.verizon.net) |
| 18:28:59 | × | dost^ quits (~dost@128-092-173-218.biz.spectrum.com) (Ping timeout: 255 seconds) |
| 18:29:26 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 18:29:29 | → | dost^ joins (~dost@128-092-173-218.biz.spectrum.com) |
| 18:30:04 | × | hungry_caterpill quits (~hungry_ca@pool-173-79-64-34.washdc.fios.verizon.net) (Client Quit) |
| 18:31:18 | × | ashln quits (~ashln@98.38.236.123) (Quit: Lost terminal) |
| 18:31:22 | → | hungry_caterpill joins (~hungry_ca@pool-173-79-64-34.washdc.fios.verizon.net) |
| 18:32:00 | → | nahcetan joins (~nate@98.45.169.16) |
| 18:32:33 | × | kuribas quits (~user@ptr-17d51en27t9vm7gh39a.18120a2.ip6.access.telenet.be) (Quit: ERC (IRC client for Emacs 26.3)) |
| 18:33:20 | × | hungry_caterpill quits (~hungry_ca@pool-173-79-64-34.washdc.fios.verizon.net) (Client Quit) |
| 18:33:34 | → | hungry_caterpill joins (~hungry_ca@pool-173-79-64-34.washdc.fios.verizon.net) |
| 18:34:08 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 272 seconds) |
| 18:34:49 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 18:36:09 | × | nahcetan quits (~nate@98.45.169.16) (Ping timeout: 246 seconds) |
| 18:39:10 | → | coot joins (~coot@213.134.190.95) |
| 18:39:24 | × | hungry_caterpill quits (~hungry_ca@pool-173-79-64-34.washdc.fios.verizon.net) (Quit: hungry_caterpill) |
| 18:40:47 | × | tromp quits (~textual@dhcp-077-249-230-040.chello.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 18:41:19 | → | slac40827 joins (~slack1256@191.125.99.204) |
| 18:42:05 | → | Axma46431 joins (~Axman6@user/axman6) |
| 18:43:28 | → | whatsupdoc joins (uid509081@id-509081.hampstead.irccloud.com) |
| 18:43:37 | × | slack1256 quits (~slack1256@181.43.227.124) (Ping timeout: 258 seconds) |
| 18:43:46 | → | [_] joins (~itchyjunk@user/itchyjunk/x-7353470) |
| 18:43:52 | × | [_] quits (~itchyjunk@user/itchyjunk/x-7353470) (Remote host closed the connection) |
| 18:44:17 | × | Axman6 quits (~Axman6@user/axman6) (Ping timeout: 265 seconds) |
| 18:44:34 | → | Tuplanolla joins (~Tuplanoll@91-159-68-39.elisa-laajakaista.fi) |
| 18:44:46 | × | alp quits (~alp@user/alp) (Ping timeout: 258 seconds) |
| 18:47:54 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 276 seconds) |
| 18:50:50 | → | alp joins (~alp@user/alp) |
| 18:56:16 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 19:02:15 | × | simeon quits (~pi@dslb-088-069-178-224.088.069.pools.vodafone-ip.de) (Remote host closed the connection) |
| 19:03:59 | → | simeon joins (~pi@dslb-088-069-178-224.088.069.pools.vodafone-ip.de) |
| 19:05:07 | × | jmdaemon quits (~jmdaemon@user/jmdaemon) (Ping timeout: 260 seconds) |
| 19:06:30 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 19:07:50 | × | zincy quits (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) (Remote host closed the connection) |
| 19:11:53 | × | wroathe quits (~wroathe@user/wroathe) (Quit: Lost terminal) |
| 19:13:47 | × | kmein quits (~weechat@user/kmein) (Quit: ciao kakao) |
| 19:14:23 | → | kmein joins (~weechat@user/kmein) |
| 19:17:05 | → | king_gs joins (~Thunderbi@2806:103e:29:1c22:4139:b427:94dc:fff2) |
| 19:19:52 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 19:22:50 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) (Remote host closed the connection) |
| 19:30:34 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 244 seconds) |
| 19:30:43 | → | tromp joins (~textual@dhcp-077-249-230-040.chello.nl) |
| 19:32:23 | → | _ht joins (~quassel@231-169-21-31.ftth.glasoperator.nl) |
| 19:33:21 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 19:38:22 | × | jollygood2 quits (www-data@2607:5300:60:8be::1) (Quit: CGI:IRC (Session timeout)) |
| 19:38:56 | → | polezaivsani joins (~polezaivs@orangeshoelaces.net) |
| 19:39:50 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 19:42:11 | × | tromp quits (~textual@dhcp-077-249-230-040.chello.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 19:43:19 | → | acidjnk joins (~acidjnk@p200300d0c7068b751c2d9dbe7b089481.dip0.t-ipconnect.de) |
| 19:49:01 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 19:50:26 | × | king_gs quits (~Thunderbi@2806:103e:29:1c22:4139:b427:94dc:fff2) (Quit: king_gs) |
| 19:51:43 | × | wootehfoot quits (~wootehfoo@user/wootehfoot) (Quit: Leaving) |
| 19:52:07 | <maerwald> | wai is really a pain to use with transformers |
| 19:52:41 | <Bulby[m]> | your local polysemy person suggests you try polysemy 🙂 |
| 19:52:49 | <EvanR> | transformer stack hell |
| 19:52:55 | <maerwald> | Bulby[m]: definitely not |
| 19:53:29 | <maerwald> | and https://hackage.haskell.org/package/wai-transformers-0.1.0/docs/Network-Wai-Trans.html#t:ApplicationT uses the old MonadBaseControl instead of MonadUnliftIO |
| 19:54:18 | <maerwald> | All started with this: https://hackage.haskell.org/package/servant-rate-limit-0.2.0.0/docs/Servant-RateLimit-Types.html#v:policyGetIdentifier |
| 19:54:20 | → | tromp joins (~textual@dhcp-077-249-230-040.chello.nl) |
| 19:54:36 | <maerwald> | which runs in IO instead of something MonadIO (which isn't hard per se in servant) |
| 19:54:43 | <maerwald> | but the whole wai ecosystem forces IO on you |
| 19:54:56 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) |
| 19:55:31 | <maerwald> | Monads don't compose ;) |
| 19:56:19 | <Bulby[m]> | idk monads are composing fairly well for me |
| 19:56:35 | <maerwald> | they somehow realized this problem and guess what the README example does hence: https://github.com/mbg/wai-rate-limit#usage-with-servant |
| 19:56:42 | <maerwald> | unsafePerformIO |
| 19:56:57 | <EvanR> | o_O |
| 19:57:22 | <maerwald> | so I'm using the whole servant type stuff and then plug unsafePerformIO into my instance stack, because wai is broken |
| 19:57:31 | <maerwald> | gg |
| 19:59:41 | <EvanR> | randomly inserting unsafePerformIO to fix something is fine in this case because it's web tech |
| 19:59:59 | <Bulby[m]> | haha |
| 20:00:08 | <EvanR> | no one will realize it's weird by comparison |
| 20:00:12 | <maerwald> | right, let's put the JWK into a global variable... uhm |
| 20:01:03 | <EvanR> | "your haskell webstack has a single random unsafePerformIO? that's amazing" -- ruby stack |
| 20:01:09 | <maerwald> | I'm getting eczema |
| 20:01:38 | o | is now known as niko |
| 20:02:09 | <maerwald> | not sure if it's from wai or the radiation poisoning |
| 20:03:16 | <EvanR> | is your office located next to a nuclear plant or |
| 20:03:34 | × | ec quits (~ec@gateway/tor-sasl/ec) (Ping timeout: 240 seconds) |
| 20:03:41 | <maerwald> | no, but I got a hit today |
| 20:04:43 | × | lyle quits (~lyle@104.246.145.85) (Quit: Lost terminal) |
| 20:06:32 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) (Remote host closed the connection) |
| 20:06:33 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 276 seconds) |
| 20:07:05 | → | ec joins (~ec@gateway/tor-sasl/ec) |
| 20:08:13 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 20:10:12 | × | _ht quits (~quassel@231-169-21-31.ftth.glasoperator.nl) (Remote host closed the connection) |
| 20:11:08 | × | tromp quits (~textual@dhcp-077-249-230-040.chello.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 20:11:28 | → | Pickchea joins (~private@user/pickchea) |
| 20:12:03 | × | Sgeo quits (~Sgeo@user/sgeo) (Ping timeout: 246 seconds) |
| 20:15:24 | → | zebrag joins (~chris@user/zebrag) |
| 20:15:30 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) |
| 20:16:09 | × | Unicorn_Princess quits (~Unicorn_P@93-103-228-248.dynamic.t-2.net) (Remote host closed the connection) |
| 20:20:36 | × | raym quits (~raym@user/raym) (Ping timeout: 258 seconds) |
| 20:22:03 | → | zincy joins (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) |
| 20:22:13 | × | zincy quits (~zincy@2a00:23c8:970c:4801:10b4:e123:1cab:7458) (Remote host closed the connection) |
| 20:24:47 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 20:25:34 | → | nate1 joins (~nate@98.45.169.16) |
| 20:30:02 | × | nate1 quits (~nate@98.45.169.16) (Ping timeout: 255 seconds) |
| 20:31:41 | × | barrucadu quits (~barrucadu@carcosa.barrucadu.co.uk) (Quit: Updating...) |
| 20:34:37 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 20:36:58 | × | zeenk quits (~zeenk@2a02:2f04:a104:ef00:10:581:f80f:b980) (Quit: Konversation terminated!) |
| 20:43:50 | → | Guest|85 joins (~Guest|85@136.226.18.52) |
| 20:44:31 | → | Sgeo joins (~Sgeo@user/sgeo) |
| 20:44:46 | <Bulby[m]> | how do you do left associative operators with megaparsec? I think i accidentally made all of my operators right associative |
| 20:45:20 | × | KoboldChieftain quits (~jwhittle@170.10.187.19) (Ping timeout: 255 seconds) |
| 20:45:20 | <monochrom> | chainl |
| 20:47:03 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 20:47:06 | → | nate1 joins (~nate@98.45.169.16) |
| 20:47:27 | <Guest|85> | hello! having trouble installing GHCup on windows 10. I ran the appropriate command in powershell [https://www.haskell.org/ghcup/] but had errors caused by failed downloads (mingw32.db, mingw64.db, ucrt64.db, clang32.db, clang64.db). did I miss a step? |
| 20:47:57 | → | gehmehgeh joins (~user@user/gehmehgeh) |
| 20:48:11 | → | KoboldChieftain joins (~jwhittle@170.10.187.19) |
| 20:48:54 | <Bulby[m]> | that doesn't work for megaparsec does it? |
| 20:50:57 | → | barrucadu joins (~barrucadu@carcosa.barrucadu.co.uk) |
| 20:51:10 | × | zer0bitz quits (~zer0bitz@2001:2003:f444:8f00:19f4:9aa:ac4b:7369) (Ping timeout: 244 seconds) |
| 20:51:36 | <geekosaur> | don't you normally use makeExprParser, which offers an InfixR constructor? |
| 20:51:59 | <Bulby[m]> | i just found out that existed |
| 20:52:01 | <geekosaur> | (see parser-combinators_ |
| 20:52:05 | <geekosaur> | ) |
| 20:54:20 | × | [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Ping timeout: 255 seconds) |
| 20:54:34 | ← | jakalx parts (~jakalx@base.jakalx.net) (Error from remote client) |
| 20:55:53 | → | jakalx joins (~jakalx@base.jakalx.net) |
| 20:58:29 | → | [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470) |
| 21:00:22 | × | geranim0 quits (~geranim0@modemcable242.171-178-173.mc.videotron.ca) (Remote host closed the connection) |
| 21:00:37 | → | hgolden joins (~hgolden2@cpe-172-251-233-141.socal.res.rr.com) |
| 21:01:21 | → | jmdaemon joins (~jmdaemon@user/jmdaemon) |
| 21:01:45 | → | shalokshalom joins (~quassel@2a02:8109:b40:42f4:4f45:338b:3ba8:8f20) |
| 21:01:48 | <shalokshalom> | hi |
| 21:02:59 | <geekosaur> | hi |
| 21:04:06 | <shalokshalom> | can anybody tell me how to explain my girlfriend, who is a student of mathematics, why having a time factor in a function makes it impure |
| 21:04:23 | × | takuan quits (~takuan@178-116-218-225.access.telenet.be) (Remote host closed the connection) |
| 21:04:31 | <shalokshalom> | in her world, t being time is completly fine for a "pure function" |
| 21:04:41 | <shalokshalom> | (all functions are pure for her, of course) |
| 21:04:58 | <monochrom> | I can't. I think it's a pure function too. |
| 21:05:27 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) (Remote host closed the connection) |
| 21:05:45 | <EvanR> | in math they call pure functions simply "functions", such as functions of time |
| 21:05:58 | <EvanR> | i thought you were going to say, how do I explain to her what an impure function is |
| 21:05:59 | <shalokshalom> | but isnt the time factor something that changes and gives a different return, based on when you call it |
| 21:06:10 | <shalokshalom> | yes |
| 21:06:21 | <monochrom> | Is this an XY problem? |
| 21:06:36 | <shalokshalom> | idk |
| 21:06:50 | <shalokshalom> | i am just interested in functional programming and never thought about that difference |
| 21:06:57 | <shalokshalom> | thought here is the right place to ask :) |
| 21:07:10 | <EvanR> | if time is an explicit argument it's a pure function of time |
| 21:07:26 | <EvanR> | but if it's like, an unspoken "this means whatever time is currently on the wall", it's impure |
| 21:07:33 | <shalokshalom> | i always got explained, that time being unstable means its not pure |
| 21:07:41 | <shalokshalom> | since it gives different results when called |
| 21:08:05 | <shalokshalom> | EvanR How to differ these two examples? |
| 21:08:11 | <EvanR> | what the function signature is |
| 21:08:13 | <shalokshalom> | How would the second look like in math terms |
| 21:08:14 | <EvanR> | Time -> A |
| 21:08:18 | <monochrom> | But we don't have a "time variable" in functional programming either, pure or impure. |
| 21:08:33 | <monochrom> | Nor in imperative programming. |
| 21:08:55 | <EvanR> | you do have a time variable often present in a shader program xD |
| 21:09:13 | <EvanR> | but it's more like the pure version |
| 21:09:20 | → | td_ joins (~td@muedsl-82-207-238-004.citykom.de) |
| 21:09:33 | <monochrom> | OK, we have a lot of impure programs and they are not because of time. |
| 21:09:36 | <shalokshalom> | What means Time -> A? |
| 21:10:29 | → | tromp joins (~textual@dhcp-077-249-230-040.chello.nl) |
| 21:10:43 | <shalokshalom> | Like, how would << an unspoken "this means whatever time is currently on the wall" >> look like as a math formula |
| 21:10:50 | <shalokshalom> | if even applicible. |
| 21:11:31 | <EvanR> | also, "time is unstable" sounds more like quantum gravity than programming or math |
| 21:12:02 | <monochrom> | Sounds like BS to me. |
| 21:12:10 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 21:12:14 | <EvanR> | Time -> A is a function type in haskell syntax |
| 21:12:31 | <EvanR> | if Time is a type, and A is a type, then Time -> A is a (function) type |
| 21:12:41 | × | Guest|85 quits (~Guest|85@136.226.18.52) (Quit: Connection closed) |
| 21:16:02 | × | acidjnk quits (~acidjnk@p200300d0c7068b751c2d9dbe7b089481.dip0.t-ipconnect.de) (Ping timeout: 252 seconds) |
| 21:16:34 | × | nate1 quits (~nate@98.45.169.16) (Read error: Connection reset by peer) |
| 21:16:58 | → | nate1 joins (~nate@98.45.169.16) |
| 21:19:41 | × | nate1 quits (~nate@98.45.169.16) (Read error: Connection reset by peer) |
| 21:19:48 | → | nate2 joins (~nate@98.45.169.16) |
| 21:19:58 | <tomsmeding> | shalokshalom: that unspoken thing would look like "get_current_time_now()" |
| 21:20:01 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 21:20:04 | <tomsmeding> | which makes no sense in math |
| 21:20:19 | <tomsmeding> | but it makes perfect sense in C, Python, JS, Java, C#, Go, name your language |
| 21:20:50 | <tomsmeding> | but not in haskell! Or, well, in the IO monad you can, but then you can model that purely as well |
| 21:21:33 | <tomsmeding> | the real escape hatch in haskell is `unsafePerformIO :: IO a -> a`, but that "function"'s whole _intention_ is to make break the rules in some sense |
| 21:21:42 | <tomsmeding> | s/make break/break/ |
| 21:21:58 | <maerwald> | tomsmeding: some people believe it's a design pattern |
| 21:22:04 | <tomsmeding> | what is? |
| 21:22:41 | <tomsmeding> | maerwald: oh I suddenly recall your wai complaint lol |
| 21:22:43 | <maerwald> | unsafePerformIO |
| 21:22:51 | <maerwald> | no, I actually mean something else |
| 21:22:57 | <maerwald> | lemme see if I can find that gem |
| 21:23:17 | → | acidjnk joins (~acidjnk@p200300d0c7068b758cef14057e9476fe.dip0.t-ipconnect.de) |
| 21:23:23 | <tomsmeding> | I mean the fact that it breaks the normal rules doesn't mean that it doesn't have its uses in programming |
| 21:23:23 | <Bulby[m]> | ReaderT? |
| 21:24:00 | <tomsmeding> | you just have to leave the world of pure functions, and suddenly have to reason about the much more complicated world of the GHC RTS |
| 21:24:18 | <[Leary]> | The case where you can prove it safe with the types is pretty cool, but I think I've only seen that in ST, and once isn't a pattern. |
| 21:24:21 | <tomsmeding> | doesn't mean that it's impossible, or not sometimes (hopefully not often) the right idea |
| 21:24:45 | <geekosaur> | Debug.Trace? :þ |
| 21:25:08 | × | slac40827 quits (~slack1256@191.125.99.204) (Read error: Connection reset by peer) |
| 21:25:08 | <tomsmeding> | ST is awesome, I recently saw a paper (haven't read it) that claims to prove that the ST design is safe: the internal side-effects don't leak out of the abstraction |
| 21:25:22 | <tomsmeding> | it's a complicated paper, judging from the figures :p |
| 21:25:45 | <tomsmeding> | geekosaur: Debug.Trace is Unreasonably Effective (tm) |
| 21:25:51 | <monochrom> | maerwald, is that the "var :: IORef Int; var = unsafePerformIO (newIORef 0)" pattern? |
| 21:26:16 | tomsmeding | has used that :p |
| 21:26:43 | <Bulby[m]> | i think i've used that before too |
| 21:27:58 | <tomsmeding> | oh actually not quite, just a global constant with an unsafePerformIO initialiser (reading some environment vars for config0 |
| 21:28:01 | <tomsmeding> | s/0/)/ |
| 21:28:03 | <romes[m]> | hello everyone, I'm going to be extending a functional programming course for 1st year CS students, but am still in the process of proposing what "lecture modules" I'll add. These modules will come after the already existing course, therefore I want to showcase some fun Haskell things (but which will still be relevant in the following years). I am looking for ideas, I'm thinking FRP might be cool, something game development related too, or |
| 21:28:03 | <romes[m]> | perhaps implementing a simple programming language |
| 21:29:01 | <tomsmeding> | romes[m]: 1st year??? |
| 21:29:13 | <dminuoso> | FRP in first year CS. |
| 21:29:19 | <romes[m]> | :P |
| 21:29:22 | <dminuoso> | You seem to have an interesting notion of "fun" |
| 21:29:27 | <romes[m]> | HAHA |
| 21:29:31 | <tomsmeding> | our 2nd years wouldn't be ready for FRP at the end of the 7.5 ECTS course we're giving them |
| 21:29:36 | <tomsmeding> | like, at all |
| 21:29:56 | <tomsmeding> | (well, some might, but those are exceptions) |
| 21:30:00 | <[exa]> | (I'd also say that FRP might not really be ready for students yet) |
| 21:30:00 | <romes[m]> | Really? :) I was thinking it might be acceptable bc of some university having it in their curriculum |
| 21:30:27 | <tomsmeding> | or maybe your students are smarter than ours :p |
| 21:30:54 | <dminuoso> | [exa]: Some might way FRP might not be really ready for production either. |
| 21:30:55 | <[exa]> | romes[m]: what was the "top" contents of the course? |
| 21:31:00 | <romes[m]> | tomsmeding: Nope, I wouldn't know yet, I'll value your opinion on that |
| 21:31:51 | <dminuoso> | selectViewListWithKey_ :: (Adjustable t m, Ord k, PostBuild t m, MonadHold t m, MonadFix m) => Dynamic t k -> Dynamic t (Map k v) -> (k -> Dynamic t v -> Dynamic t Bool -> m (Event t a)) -> m (Event t k) |
| 21:31:57 | <dminuoso> | Is not my idea of a fun night |
| 21:31:58 | <tomsmeding> | O.o |
| 21:32:11 | <tomsmeding> | Dynamic O.O |
| 21:32:15 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:f072:4241:498:eedf) |
| 21:32:21 | <romes[m]> | for reference, here was the FRP module I saw :https://www.seas.upenn.edu/~cis194/fall16/lectures/11-frp.html |
| 21:32:21 | <tomsmeding> | oh wait this is not base:Dynamic |
| 21:32:24 | <dminuoso> | Yes, Dynamic is an associated data type of this fun class: |
| 21:32:27 | <dminuoso> | class (MonadHold t (PushM t), MonadSample t (PullM t), MonadFix (PushM t), Functor (Dynamic t), Applicative (Dynamic t), Monad (Dynamic t)) => Reflex t where |
| 21:32:29 | <dminuoso> | It's all clear now! |
| 21:32:39 | <dminuoso> | No this is from reflex |
| 21:33:00 | × | michalz quits (~michalz@185.246.204.125) (Remote host closed the connection) |
| 21:33:33 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 21:33:51 | <romes[m]> | [exa]: think "first steps, data modelling, abstract data types, functional data structures, type-classes, functors, parsing, monads" |
| 21:34:32 | <[exa]> | romes[m]: I'd make very sure that they try out monadic parsers (just for the sake of understanding that parsing is super easy if you don't use a shit language), and lenses (and doing lensish sql atop of aeson, because they will remember it with love the next time they touch javascripts) |
| 21:35:16 | <dmj`> | does warp actually respect timeouts |
| 21:35:16 | <dminuoso> | I second parser combinators. |
| 21:35:40 | <dminuoso> | dmj`: Yes |
| 21:35:55 | <[exa]> | also pretty useful to show some networking, like, "making a telnet chatserver without suffering a stroke from the polling complexity", haskell is super easy that way. And scotty helps too |
| 21:36:49 | <dminuoso> | dmj`: Though can you specify what kind of timeouts you are looking for? |
| 21:37:47 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 21:38:02 | <romes[m]> | [exa] dminuoso I think parser combinators are mentioned but not actually looked at, so that would be cool, but I'd hope to motivate parser combinators with a fun example, do you think writing a parser for idk something lisp-like be too much/would not motivate them for apparent complexity? |
| 21:38:16 | <[exa]> | just parse json |
| 21:38:25 | × | euandreh quits (~euandreh@2804:14c:33:966c:2059:6e22:1326:6607) (Ping timeout: 258 seconds) |
| 21:38:47 | <[exa]> | with a few simplifications (doubles) it's literally 1 slide of code, with pretty big letters |
| 21:38:59 | <dmj`> | dminuoso: just the time it takes to return from the handler, server should close the connection |
| 21:39:23 | <dminuoso> | dmj`: Use a timeout manager |
| 21:39:26 | <dminuoso> | https://hackage.haskell.org/package/warp-3.0.9/docs/Network-Wai-Handler-Warp-Timeout.html |
| 21:39:39 | <romes[m]> | [exa]: simple chatserver-like networking sounds super cool! thank you |
| 21:40:20 | × | dextaa quits (~DV@user/dextaa) (Ping timeout: 258 seconds) |
| 21:40:21 | <dminuoso> | dmj`: Or I think by default you have 30s timeouts |
| 21:40:31 | <dmj`> | dminuoso: in warp when I do `setTimeout 10` and in the handler `forever $ pure ()` it doesn't end the connection after 30s |
| 21:40:58 | → | szkl joins (uid110435@id-110435.uxbridge.irccloud.com) |
| 21:41:06 | × | [exa] quits (exa@srv3.blesmrt.net) (Changing host) |
| 21:41:06 | → | [exa] joins (exa@user/exa/x-3587197) |
| 21:42:12 | <romes[m]> | [exa]: * I think they might say "what the is json", and therefore not see great motivation from "see how simple we can write a json parser", while something like a PL is something more palpable to them which they definitely have no idea how to approach, but might be curious to do so |
| 21:42:24 | <dminuoso> | Well, introduce json then? |
| 21:42:29 | <romes[m]> | but I'm quite new to this so I'll take your expert word |
| 21:42:48 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 21:42:55 | <[exa]> | romes[m]: how they survive in 2022 computing without json? |
| 21:43:00 | <dminuoso> | It seems like a motivating example. "Here's this common machine-exchange data format, lets write a parser for it" |
| 21:43:50 | <romes[m]> | dminuoso: and even more so if we can use json for said chatserver! |
| 21:44:15 | <romes[m]> | [exa]: I thiink first years will be pretty clueless about it |
| 21:45:06 | <[exa]> | I'm kinda astonished by the level of contrast between "they should do frp" and "no json" tbh, but okay :D |
| 21:45:24 | <romes[m]> | [exa]: Ahah! I was wrong about that indeed |
| 21:45:38 | <[exa]> | btw check PM, I sent you some of my stuff |
| 21:46:50 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 21:46:50 | → | romesrf joins (~romes@44.190.189.46.rev.vodafone.pt) |
| 21:46:55 | × | coot quits (~coot@213.134.190.95) (Quit: coot) |
| 21:47:06 | → | dextaa joins (~DV@user/dextaa) |
| 21:47:07 | <dmj`> | dminuoso: lmao |
| 21:47:36 | <dmj`> | dminuoso: I thought, "just introduce json" was directed at me |
| 21:47:49 | <hpc> | make them write a yaml parser instead |
| 21:47:59 | <hpc> | they don't have to worry about all those brackets, so it should be much easier! :P |
| 21:49:02 | × | nate2 quits (~nate@98.45.169.16) (Ping timeout: 260 seconds) |
| 21:49:18 | <dminuoso> | YAML is hellish to parse. :( |
| 21:49:22 | <jackdk> | hpc: you are cruel |
| 21:49:42 | <romesrf> | LOL :) |
| 21:49:49 | <dminuoso> | I think parsing XML is easier. |
| 21:50:10 | <maerwald> | dminuoso: except now you also want to parse html |
| 21:50:17 | → | perrierjouet joins (~perrier-j@modemcable012.251-130-66.mc.videotron.ca) |
| 21:51:02 | <monochrom> | "they don't have to worry about close tags, so it should be much easier" >:) |
| 21:52:05 | <maerwald> | and enjoy script tags that may have unescaped garbage |
| 21:54:04 | × | KoboldChieftain quits (~jwhittle@170.10.187.19) (Remote host closed the connection) |
| 21:54:13 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 21:56:30 | <hpc> | and cdata |
| 21:57:01 | <c_wraith> | parsing xml is easy until you get into the features like remote entities |
| 21:57:15 | <[exa]> | dminuoso: I almost got triggered by "parsing xml is easier" before I managed to comprehend you're complaining to yaml |
| 21:57:18 | <[exa]> | :D |
| 21:57:23 | <[exa]> | parsing yaml is harder than parsing c++ |
| 21:58:03 | <hpc> | i would rather parse perl than yaml |
| 21:58:11 | <hpc> | at least by the end of writing the perl parser i can also run perl code |
| 21:58:20 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 244 seconds) |
| 21:59:01 | × | romesrf quits (~romes@44.190.189.46.rev.vodafone.pt) (Quit: WeeChat 3.4.1) |
| 22:01:32 | × | gehmehgeh quits (~user@user/gehmehgeh) (Quit: Leaving) |
| 22:06:41 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 22:10:39 | × | shalokshalom quits (~quassel@2a02:8109:b40:42f4:4f45:338b:3ba8:8f20) (Quit: https://quassel-irc.org - Komfortabler Chat. Überall.) |
| 22:11:21 | × | tromp quits (~textual@dhcp-077-249-230-040.chello.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 22:12:11 | <jackdk> | c_wraith: are remote entities like the outer gods in H.P. Lovecraft's writing? |
| 22:12:37 | <c_wraith> | very similar, if you're worried about security... |
| 22:15:15 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 276 seconds) |
| 22:21:23 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 22:24:38 | → | calleum joins (~calleum@user/calleum) |
| 22:24:45 | × | toluene quits (~toluene@user/toulene) (Read error: Connection reset by peer) |
| 22:25:12 | × | __monty__ quits (~toonn@user/toonn) (Quit: leaving) |
| 22:26:19 | → | toluene joins (~toluene@user/toulene) |
| 22:26:34 | × | cosimone quits (~user@93-44-186-171.ip98.fastwebnet.it) (Ping timeout: 272 seconds) |
| 22:27:05 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 256 seconds) |
| 22:27:41 | × | toluene quits (~toluene@user/toulene) (Read error: Connection reset by peer) |
| 22:29:14 | → | toluene joins (~toluene@user/toulene) |
| 22:30:50 | × | bontaq quits (~user@ool-45779fe5.dyn.optonline.net) (Remote host closed the connection) |
| 22:32:15 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 22:33:14 | × | jgeerds_ quits (~jgeerds@55d45f48.access.ecotel.net) (Ping timeout: 258 seconds) |
| 22:33:15 | × | dextaa quits (~DV@user/dextaa) (Read error: Connection reset by peer) |
| 22:35:28 | → | dextaa joins (~DV@user/dextaa) |
| 22:36:04 | × | spacenautx quits (~spacenaut@user/spacenautx) (Quit: WeeChat 3.0) |
| 22:36:43 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 256 seconds) |
| 22:38:00 | × | Tuplanolla quits (~Tuplanoll@91-159-68-39.elisa-laajakaista.fi) (Quit: Leaving.) |
| 22:40:00 | × | Benzi-Junior quits (~BenziJuni@dsl-149-64-179.hive.is) (Ping timeout: 260 seconds) |
| 22:40:56 | → | euandreh joins (~euandreh@2804:14c:33:966c:2059:6e22:1326:6607) |
| 22:41:21 | → | pavonia joins (~user@user/siracusa) |
| 22:41:45 | × | acidjnk quits (~acidjnk@p200300d0c7068b758cef14057e9476fe.dip0.t-ipconnect.de) (Ping timeout: 260 seconds) |
| 22:41:53 | → | zeenk joins (~zeenk@2a02:2f04:a104:ef00:10:581:f80f:b980) |
| 22:42:47 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 22:42:57 | × | trisolaran quits (~ye@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) (Ping timeout: 256 seconds) |
| 22:58:30 | × | motherfsck quits (~motherfsc@user/motherfsck) (Quit: quit) |
| 23:02:10 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 23:06:21 | × | calleum quits (~calleum@user/calleum) (Ping timeout: 246 seconds) |
| 23:11:30 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 23:14:59 | → | motherfsck joins (~motherfsc@user/motherfsck) |
| 23:15:08 | × | epolanski quits (uid312403@id-312403.helmsley.irccloud.com) (Quit: Connection closed for inactivity) |
| 23:18:07 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 23:18:53 | × | pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Quit: WeeChat 3.5) |
| 23:21:09 | × | DigitalKiwi quits (~kiwi@137.184.156.191) (Quit: quite.) |
| 23:21:12 | → | calleum joins (~calleum@user/calleum) |
| 23:21:41 | <Bulby[m]> | with the op parsing in parser combinators, I don't quite understand how to fail in megaparsec when defining an operator... |
| 23:21:49 | → | DigitalKiwi joins (~kiwi@137.184.156.191) |
| 23:21:55 | <Bulby[m]> | i'm making the assign operator and want to fail if the left hand side isn't an identifier |
| 23:22:38 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 23:25:57 | × | calleum quits (~calleum@user/calleum) (Ping timeout: 246 seconds) |
| 23:26:16 | <sm> | Bulby: fail the current parser, allowing mp to try others ? or end parsing altogether ? |
| 23:27:47 | <sm> | for the latter, I think you have to transform with ExceptT as mp doesn't have that built in |
| 23:28:47 | <Bulby[m]> | I mean, I have to do a parser of `Expr -> Expr -> Expr` because of https://hackage.haskell.org/package/parser-combinators-1.3.0/docs/Control-Monad-Combinators-Expr.html |
| 23:29:07 | <Bulby[m]> | idk how i would fail iff left isn't ident |
| 23:29:40 | × | Pickchea quits (~private@user/pickchea) (Ping timeout: 248 seconds) |
| 23:31:18 | <sm> | maybe just calling fail is enough ? |
| 23:31:27 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 240 seconds) |
| 23:31:55 | <Bulby[m]> | calling fail inside the function makes it `Expr -> Expr -> Parser Expr`, not `Parser (Expr -> Expr -> Expr)` |
| 23:32:27 | <sm> | ah, sorry, don't know |
| 23:32:39 | <Bulby[m]> | glad to know i'm not stupid 🙂 |
| 23:33:25 | <sm> | that type signature implies it may not fail, eh |
| 23:34:07 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 23:35:27 | <sm> | this must not be the right place to enforce that more specific limitation |
| 23:36:11 | <EvanR> | i was under the impression Parser A may or may not fail, without more info |
| 23:36:22 | <EvanR> | like Maybe A |
| 23:38:46 | <sm> | Bulby isn't defining an ordinary parser, but providing a combining function to a generic parser builder provided by mp |
| 23:38:47 | × | ehammarstrom quits (~ehammarst@62-20-203-39-no182.tbcn.telia.com) (Ping timeout: 258 seconds) |
| 23:39:03 | <sm> | I think |
| 23:39:58 | <sm> | (so it's not right to call that a parser) |
| 23:42:28 | → | raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 23:49:06 | × | szkl quits (uid110435@id-110435.uxbridge.irccloud.com) (Quit: Connection closed for inactivity) |
| 23:51:43 | → | ehammarstrom joins (~ehammarst@62-20-203-39-no182.tbcn.telia.com) |
| 23:55:39 | × | stackdroid18 quits (14094@user/stackdroid) (Quit: hasta la vista... tchau!) |
| 23:58:24 | Axma46431 | is now known as Axman6 |
| 23:59:15 | × | dost^ quits (~dost@128-092-173-218.biz.spectrum.com) (Ping timeout: 276 seconds) |
All times are in UTC on 2022-05-31.