Logs: freenode/#haskell
| 2021-04-22 19:58:20 | → | ryjm joins (sid383513@gateway/web/irccloud.com/x-mfvpahefkuhsmhxj) |
| 2021-04-22 19:58:22 | → | Lord_of_Life_ joins (~Lord@unaffiliated/lord-of-life/x-0885362) |
| 2021-04-22 19:58:24 | → | d0liver joins (sid363046@gateway/web/irccloud.com/x-nemzonvlsnfdjkyk) |
| 2021-04-22 19:58:25 | → | aristid joins (sid1599@gateway/web/irccloud.com/x-iysthznfdzhconze) |
| 2021-04-22 19:58:27 | → | davetapley joins (sid666@gateway/web/irccloud.com/x-zjajcgkktmcxzflu) |
| 2021-04-22 19:58:29 | → | ReinH joins (sid179972@gateway/web/irccloud.com/x-yupwkseagmcsclao) |
| 2021-04-22 19:58:29 | → | b20n joins (sid115913@gateway/web/irccloud.com/x-wvurqfbcjkkidela) |
| 2021-04-22 19:58:37 | → | jared-w joins (uid405292@gateway/web/irccloud.com/x-qitlcehrrgjsxmby) |
| 2021-04-22 19:58:41 | → | wpcarro_ joins (sid397589@gateway/web/irccloud.com/x-ahewuhnoiijbwpmc) |
| 2021-04-22 19:58:52 | → | etrepum joins (sid763@gateway/web/irccloud.com/x-kbeiueugazaifuth) |
| 2021-04-22 19:58:56 | → | SrPx joins (sid108780@gateway/web/irccloud.com/x-yhksykcahzlylxhe) |
| 2021-04-22 19:59:02 | × | Aquazi quits (uid312403@gateway/web/irccloud.com/x-osbdsklzblynzobo) (Quit: Connection closed for inactivity) |
| 2021-04-22 19:59:04 | → | eruditass joins (uid248673@gateway/web/irccloud.com/x-xevwmrtrjszgvhcb) |
| 2021-04-22 19:59:06 | → | sz0 joins (uid110435@gateway/web/irccloud.com/x-cbtqvvpmzwwkflbr) |
| 2021-04-22 19:59:22 | <lovesegfault> | is the only difference that one comes before and the other after? |
| 2021-04-22 19:59:25 | → | bradparker joins (sid262931@gateway/web/irccloud.com/x-ipktkzcrditobyzs) |
| 2021-04-22 19:59:45 | <lovesegfault> | Another Q: In Rust, I can perform a match on std::cmp::Ordering like this: https://github.com/lovesegfault/exercism/blob/5a7f942130c82e60025d9a8787fb7eae8efd0c0e/rust/perfect-numbers/src/lib.rs#L18-L22 |
| 2021-04-22 20:00:00 | <lovesegfault> | I know in Haskell a match is called case, but does a similar Ordering enum exist? |
| 2021-04-22 20:00:16 | <monochrom> | case xxx of { EQ -> ... ; GT -> ... ; LT -> ... } |
| 2021-04-22 20:00:25 | <monochrom> | can also use layout to replace {;} |
| 2021-04-22 20:00:45 | <lovesegfault> | Oh, are EQ,GT,LT just in the prelude? |
| 2021-04-22 20:00:50 | → | usr25 joins (~usr25@unaffiliated/usr25) |
| 2021-04-22 20:01:10 | <tomsmeding> | :t EQ |
| 2021-04-22 20:01:13 | <lambdabot> | Ordering |
| 2021-04-22 20:01:22 | × | Lord_of_Life quits (~Lord@unaffiliated/lord-of-life/x-0885362) (Ping timeout: 260 seconds) |
| 2021-04-22 20:01:22 | Lord_of_Life_ | is now known as Lord_of_Life |
| 2021-04-22 20:01:25 | <c_wraith> | @src Ordering |
| 2021-04-22 20:01:25 | <lambdabot> | data Ordering = LT | EQ | GT |
| 2021-04-22 20:01:27 | <tomsmeding> | :t compare |
| 2021-04-22 20:01:28 | <lambdabot> | Ord a => a -> a -> Ordering |
| 2021-04-22 20:02:14 | <monochrom> | I use "compare" in binary search tree algorithms. |
| 2021-04-22 20:02:21 | × | _ht quits (~quassel@82-169-194-8.biz.kpn.net) (Remote host closed the connection) |
| 2021-04-22 20:03:20 | × | stree quits (~stree@68.36.8.116) (Ping timeout: 268 seconds) |
| 2021-04-22 20:05:12 | × | petersen quits (~petersen@redhat/juhp) (Ping timeout: 240 seconds) |
| 2021-04-22 20:07:13 | → | petersen joins (~petersen@redhat/juhp) |
| 2021-04-22 20:07:55 | <lovesegfault> | Okay, I got it :D |
| 2021-04-22 20:07:56 | <lovesegfault> | https://github.com/lovesegfault/exercism/blob/main/haskell/perfect-numbers/src/PerfectNumbers.hs |
| 2021-04-22 20:08:05 | × | redmp_ quits (~redmp@172.58.22.224) (Quit: reboot) |
| 2021-04-22 20:08:12 | <lovesegfault> | any feedback or ways I can improve? |
| 2021-04-22 20:08:35 | <lovesegfault> | side-note: I really like how "Just" reads in code "Just Perfect", "Just Deficient", lol |
| 2021-04-22 20:09:20 | → | redmp joins (~redmp@172.58.19.67) |
| 2021-04-22 20:10:40 | <tomsmeding> | % let number = 42 in if even number then print "yes" else print "no" |
| 2021-04-22 20:10:40 | <yahb> | tomsmeding: "yes" |
| 2021-04-22 20:10:47 | <tomsmeding> | almost readable |
| 2021-04-22 20:11:11 | × | forgottenone quits (~forgotten@176.42.21.81) (Quit: Konversation terminated!) |
| 2021-04-22 20:11:24 | <geekosaur> | an = id -- :p |
| 2021-04-22 20:12:35 | → | nut joins (~gtk@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) |
| 2021-04-22 20:13:39 | <tomsmeding> | % let is = flip id ; the = id |
| 2021-04-22 20:13:39 | <yahb> | tomsmeding: |
| 2021-04-22 20:13:50 | <tomsmeding> | % let number = 42 in if the number `is` even then print "yes" else print "no" |
| 2021-04-22 20:13:50 | <yahb> | tomsmeding: "yes" |
| 2021-04-22 20:16:08 | → | stree joins (~stree@68.36.8.116) |
| 2021-04-22 20:18:22 | → | pfurla_ joins (~pfurla@ool-182ed2e2.dyn.optonline.net) |
| 2021-04-22 20:18:27 | × | jess quits (jess@freenode/staff/jess) () |
| 2021-04-22 20:18:35 | × | puke quits (~vroom@217.138.252.184) (Quit: puke) |
| 2021-04-22 20:18:40 | → | jess joins (jess@freenode/staff/jess) |
| 2021-04-22 20:20:53 | × | pfurla quits (~pfurla@ool-182ed2e2.dyn.optonline.net) (Ping timeout: 260 seconds) |
| 2021-04-22 20:21:11 | × | gnumonic quits (~gnumonic@c-73-170-91-210.hsd1.ca.comcast.net) (Ping timeout: 246 seconds) |
| 2021-04-22 20:21:33 | → | xcmw joins (~textual@dyn-72-33-2-152.uwnet.wisc.edu) |
| 2021-04-22 20:23:32 | × | alanz quits (sid110616@gateway/web/irccloud.com/x-zzsuvrgaohwilheu) (Ping timeout: 258 seconds) |
| 2021-04-22 20:26:08 | → | alanz joins (sid110616@gateway/web/irccloud.com/x-wrkjabizodqmlyrt) |
| 2021-04-22 20:26:45 | × | sm quits (~user@li229-222.members.linode.com) (Remote host closed the connection) |
| 2021-04-22 20:30:31 | × | kupi quits (uid212005@gateway/web/irccloud.com/x-wwoexcijnelowmiu) (Quit: Connection closed for inactivity) |
| 2021-04-22 20:31:31 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 252 seconds) |
| 2021-04-22 20:32:08 | → | safinaskar joins (~user@109.252.90.136) |
| 2021-04-22 20:32:09 | <safinaskar> | hi |
| 2021-04-22 20:32:54 | <Rembane> | Hi! |
| 2021-04-22 20:33:27 | × | nineonine quits (~nineonine@50.216.62.2) (Remote host closed the connection) |
| 2021-04-22 20:33:52 | <safinaskar> | is there some way to embed tests to my sources? something like this: https://paste.debian.net/1194756/ ? |
| 2021-04-22 20:34:00 | → | nineonine joins (~nineonine@50.216.62.2) |
| 2021-04-22 20:34:49 | × | geowiesnot quits (~user@87-89-181-157.abo.bbox.fr) (Ping timeout: 252 seconds) |
| 2021-04-22 20:37:36 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 2021-04-22 20:38:39 | → | cr3 joins (~cr3@192-222-143-195.qc.cable.ebox.net) |
| 2021-04-22 20:39:43 | <geekosaur> | @hackage cabal-doctest |
| 2021-04-22 20:39:43 | <lambdabot> | https://hackage.haskell.org/package/cabal-doctest |
| 2021-04-22 20:40:24 | → | ep1ctetus_ joins (~epictetus@ip72-194-54-201.sb.sd.cox.net) |
| 2021-04-22 20:42:03 | × | falafel quits (~falafel@pool-96-255-70-50.washdc.fios.verizon.net) (Quit: Leaving) |
| 2021-04-22 20:42:11 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 240 seconds) |
| 2021-04-22 20:42:28 | → | falafel joins (~falafel@pool-96-255-70-50.washdc.fios.verizon.net) |
| 2021-04-22 20:42:46 | <geekosaur> | and http://hackage.haskell.org/package/doctest is the actual tests, as opposed to how to run them |
| 2021-04-22 20:42:56 | → | ep1ctetus joins (~epictetus@ip72-194-54-201.sb.sd.cox.net) |
| 2021-04-22 20:44:01 | → | puke joins (~vroom@217.138.252.56) |
| 2021-04-22 20:44:02 | × | epicte7us quits (~epictetus@ip72-194-54-201.sb.sd.cox.net) (Ping timeout: 268 seconds) |
| 2021-04-22 20:45:03 | pierrot | is now known as canopus |
| 2021-04-22 20:45:12 | × | ep1ctetus_ quits (~epictetus@ip72-194-54-201.sb.sd.cox.net) (Ping timeout: 240 seconds) |
| 2021-04-22 20:45:12 | canopus | is now known as pierrot |
| 2021-04-22 20:49:37 | <safinaskar> | geekosaur: thanks |
| 2021-04-22 20:50:27 | → | elfets joins (~elfets@ip-37-201-23-96.hsi13.unitymediagroup.de) |
| 2021-04-22 20:50:43 | × | danvet quits (~Daniel@2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa) (Ping timeout: 260 seconds) |
| 2021-04-22 20:51:01 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 2021-04-22 20:52:32 | × | nek0 quits (~nek0@mail.nek0.eu) (Remote host closed the connection) |
| 2021-04-22 20:52:41 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 240 seconds) |
| 2021-04-22 20:53:52 | → | elliott_ joins (~elliott@pool-108-18-30-46.washdc.fios.verizon.net) |
| 2021-04-22 20:55:27 | × | cole-h quits (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net) (Quit: Goodbye) |
| 2021-04-22 20:56:10 | → | nek0 joins (~nek0@mail.nek0.eu) |
| 2021-04-22 20:57:25 | × | kenanmarasli quits (1fdf0934@31.223.9.52) (Quit: Connection closed) |
| 2021-04-22 20:57:32 | → | cole-h joins (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net) |
| 2021-04-22 21:04:16 | → | pthariensflame joins (~pthariens@2600:6c52:727f:4200:d1a2:91f7:7953:5009) |
| 2021-04-22 21:04:21 | × | Kaiepi quits (~Kaiepi@47.54.252.148) (Remote host closed the connection) |
| 2021-04-22 21:04:51 | → | Kaiepi joins (~Kaiepi@47.54.252.148) |
All times are in UTC.