Logs: freenode/#haskell
| 2020-11-23 03:13:46 | × | urodna quits (~urodna@unaffiliated/urodna) (Quit: urodna) |
| 2020-11-23 03:15:26 | → | cr3 joins (~cr3@192-222-143-195.qc.cable.ebox.net) |
| 2020-11-23 03:16:28 | × | clynamen quits (~clynamen@net-2-35-88-16.cust.vodafonedsl.it) (Read error: Connection reset by peer) |
| 2020-11-23 03:16:30 | <dibblego> | yes |
| 2020-11-23 03:16:42 | <dibblego> | makePrisms makes that prism among other things |
| 2020-11-23 03:16:51 | → | justsomeguy joins (~justsomeg@216.186.218.241) |
| 2020-11-23 03:16:51 | × | justsomeguy quits (~justsomeg@216.186.218.241) (Changing host) |
| 2020-11-23 03:16:51 | → | justsomeguy joins (~justsomeg@unaffiliated/--/x-3805311) |
| 2020-11-23 03:19:04 | × | noteness quits (noteness@unaffiliated/nessessary129) (Quit: I'LL BE BACK) |
| 2020-11-23 03:19:23 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 2020-11-23 03:20:04 | → | clynamen joins (~clynamen@37.183.22.31) |
| 2020-11-23 03:21:14 | → | shatriff joins (~vitaliish@176.52.219.10) |
| 2020-11-23 03:22:39 | → | Lowl3v3l joins (~Lowl3v3l@dslb-088-072-167-013.088.072.pools.vodafone-ip.de) |
| 2020-11-23 03:24:50 | → | dftxbs3e_ joins (~dftxbs3e@unaffiliated/dftxbs3e) |
| 2020-11-23 03:24:52 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 256 seconds) |
| 2020-11-23 03:27:49 | × | dftxbs3e quits (~dftxbs3e@unaffiliated/dftxbs3e) (Ping timeout: 264 seconds) |
| 2020-11-23 03:28:03 | × | dftxbs3e_ quits (~dftxbs3e@unaffiliated/dftxbs3e) (Remote host closed the connection) |
| 2020-11-23 03:29:43 | × | Sarma quits (~Amras@unaffiliated/amras0000) (Ping timeout: 272 seconds) |
| 2020-11-23 03:31:15 | × | koala_man quits (~vidar@unaffiliated/koala-man/x-2491903) (Remote host closed the connection) |
| 2020-11-23 03:35:55 | → | Stanley00 joins (~stanley00@unaffiliated/stanley00) |
| 2020-11-23 03:39:06 | × | cr3 quits (~cr3@192-222-143-195.qc.cable.ebox.net) (Ping timeout: 265 seconds) |
| 2020-11-23 03:40:27 | × | shatriff quits (~vitaliish@176.52.219.10) (Remote host closed the connection) |
| 2020-11-23 03:42:25 | lagothrix | is now known as Guest16478 |
| 2020-11-23 03:42:25 | × | Guest16478 quits (~lagothrix@unaffiliated/lagothrix) (Killed (orwell.freenode.net (Nickname regained by services))) |
| 2020-11-23 03:42:31 | → | lagothrix joins (~lagothrix@unaffiliated/lagothrix) |
| 2020-11-23 03:43:03 | → | drbean joins (~drbean@TC210-63-209-85.static.apol.com.tw) |
| 2020-11-23 03:48:06 | × | theDon quits (~td@muedsl-82-207-238-007.citykom.de) (Ping timeout: 256 seconds) |
| 2020-11-23 03:48:59 | → | whatisRT joins (~whatisRT@2002:5b41:6a33:0:d589:f18c:8211:e758) |
| 2020-11-23 03:49:56 | × | jlamothe quits (~jlamothe@198.251.55.207) (Ping timeout: 240 seconds) |
| 2020-11-23 03:50:00 | → | theDon joins (~td@94.134.91.120) |
| 2020-11-23 03:55:36 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2020-11-23 03:58:54 | <ezzieyguywuf> | in hledger do I have to use $ for dollars, or can I use "USD" like in beancount? |
| 2020-11-23 04:00:49 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 264 seconds) |
| 2020-11-23 04:00:49 | → | z0 joins (~z0@188.251.79.4) |
| 2020-11-23 04:01:28 | × | z0 quits (~z0@188.251.79.4) (Client Quit) |
| 2020-11-23 04:01:52 | <jle`> | ezzieyguywuf: there are no built-in currencies i believe, either are valid currency labels |
| 2020-11-23 04:02:01 | <ezzieyguywuf> | jle`: 👍️ |
| 2020-11-23 04:02:01 | <jle`> | so there is no special-casing for dollars |
| 2020-11-23 04:02:05 | <ezzieyguywuf> | gotcha |
| 2020-11-23 04:02:15 | <ezzieyguywuf> | I'm used to the USD now, so I think I'll just go with that |
| 2020-11-23 04:02:37 | × | hekkaidekapus quits (~tchouri@gateway/tor-sasl/hekkaidekapus) (Remote host closed the connection) |
| 2020-11-23 04:03:08 | → | hekkaidekapus joins (~tchouri@gateway/tor-sasl/hekkaidekapus) |
| 2020-11-23 04:06:46 | <MarcelineVQ> | there's a #hledger channel too that's quite helpful |
| 2020-11-23 04:06:58 | <MarcelineVQ> | in particular due to sm[m] |
| 2020-11-23 04:15:28 | <texasmynsted> | Where may I find more information about how to best unit test modules. Specifically if you use something like hunit, how do you test code in a module that is not exported? |
| 2020-11-23 04:15:46 | × | boxscape quits (54a35f37@gateway/web/cgi-irc/kiwiirc.com/ip.84.163.95.55) (Ping timeout: 246 seconds) |
| 2020-11-23 04:17:45 | × | Jonkimi727406120 quits (~Jonkimi@113.87.161.66) (Ping timeout: 240 seconds) |
| 2020-11-23 04:19:05 | × | machinedgod quits (~machinedg@135-23-192-217.cpe.pppoe.ca) (Ping timeout: 240 seconds) |
| 2020-11-23 04:19:38 | → | Saukk joins (~Saukk@2001:998:f9:2914:1c59:9bb5:b94c:4) |
| 2020-11-23 04:20:07 | → | keep_learning joins (~keep_lear@43.231.26.152) |
| 2020-11-23 04:22:07 | <hololeap> | is hledger really more useful than a spreadsheet? |
| 2020-11-23 04:22:46 | <MarcelineVQ> | idk but it's pretty nice |
| 2020-11-23 04:23:14 | <sleblanc> | hololeap, for one, hledger supports currencies and ad-hoc commodities |
| 2020-11-23 04:23:15 | → | cosimone joins (~cosimone@5.171.24.44) |
| 2020-11-23 04:23:35 | <hololeap> | i took a look at it once and didn't understand what was so good about it. i'm sure i didn't give it enough of a chance. |
| 2020-11-23 04:24:00 | <sleblanc> | hololeap, I hope no one is trying to sell it to you |
| 2020-11-23 04:24:34 | <hololeap> | no, i was just looking for a ledger program, and i like haskell. seemed like a natural choice to check it out. |
| 2020-11-23 04:25:58 | <hololeap> | it seems popular enough, though |
| 2020-11-23 04:26:07 | <MarcelineVQ> | I find it really convenient to edit plaintext files rather than work in a spreadsheet, especially to add more-specific/sub accounts on the fly |
| 2020-11-23 04:28:09 | → | jlamothe joins (~jlamothe@198.251.55.207) |
| 2020-11-23 04:29:36 | <jle`> | hololeap: for me i sort of juts treat it like spreadsheet with built in command line tools for querying and stuff |
| 2020-11-23 04:30:08 | <jle`> | so i don't have to implement it all myself |
| 2020-11-23 04:30:49 | × | Tario quits (~Tario@201.192.165.173) (Ping timeout: 264 seconds) |
| 2020-11-23 04:30:57 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2020-11-23 04:32:06 | <jle`> | it makes it more simple to do double-entry accounting too |
| 2020-11-23 04:37:38 | <dsal> | texasmynsted: You don't test stuff that's not exported. You can't import it to test it. What kind of testing are you doing? hunit style is usually my second choice. |
| 2020-11-23 04:39:30 | × | awk quits (~mnrmnaugh@unaffiliated/mnrmnaugh) (Remote host closed the connection) |
| 2020-11-23 04:43:38 | × | vicfred quits (~vicfred@unaffiliated/vicfred) (Quit: Leaving) |
| 2020-11-23 04:43:48 | × | keep_learning quits (~keep_lear@43.231.26.152) (Quit: Leaving) |
| 2020-11-23 04:43:50 | <sm[m]> | hail hololeap! It's a good question, I think each is good at certain things |
| 2020-11-23 04:44:53 | <texasmynsted> | Have some routines to read TSV files for redirects and things. I only export the data and the functions needed. I wanted to add and test some validation. I have a redirect so two URLs per record. |
| 2020-11-23 04:45:32 | <texasmynsted> | I want to validate that the first URL is relative, not absolute and does not start with /. I would not export this validation function but I would like to test it. |
| 2020-11-23 04:46:38 | × | cosimone quits (~cosimone@5.171.24.44) (Quit: cosimone) |
| 2020-11-23 04:46:46 | → | falafel joins (~falafel@2601:547:1303:b30:7811:313f:d0f3:f9f4) |
| 2020-11-23 04:46:52 | <texasmynsted> | How would you handle this? |
| 2020-11-23 04:47:15 | → | SanchayanMaity joins (~Sanchayan@106.200.254.25) |
| 2020-11-23 04:51:51 | → | Jonkimi727406120 joins (~Jonkimi@113.87.161.66) |
| 2020-11-23 04:52:08 | <texasmynsted> | It seems like if it is exported it is a bit more like an integration test than a unit test. |
| 2020-11-23 04:52:24 | <texasmynsted> | I do not care what it is called though |
| 2020-11-23 04:55:47 | × | MrSalt quits (DirefulSal@gateway/vpn/privateinternetaccess/direfulsalt) (Remote host closed the connection) |
| 2020-11-23 04:56:19 | → | fxg joins (~fxg@unaffiliated/fxg) |
| 2020-11-23 04:58:22 | <dsal> | My first choice is usually property tests. Define what a kinds of things make up a valid relative URL. Verify you parse it as such. |
| 2020-11-23 05:00:48 | <dsal> | You can get a massive amount of test coverage (usually including things you didn't think of) this way. I assume you've got a RelativeURL type. You just need an Arbitrary instance and a way to serialize it to a string in the format the parser wants. Then you just ask if there's any valid RelativeURL that can't be parsed as a RelativeURL. |
| 2020-11-23 05:02:01 | × | ddellacosta quits (dd@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 264 seconds) |
| 2020-11-23 05:05:14 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 256 seconds) |
| 2020-11-23 05:07:22 | × | Jonkimi727406120 quits (~Jonkimi@113.87.161.66) (Ping timeout: 272 seconds) |
| 2020-11-23 05:07:52 | × | whatisRT quits (~whatisRT@2002:5b41:6a33:0:d589:f18c:8211:e758) (Quit: ZNC 1.7.5 - https://znc.in) |
| 2020-11-23 05:08:17 | <dsal> | Your test could be something like this: |
| 2020-11-23 05:08:18 | <dsal> | @check read . show >>= (===) |
| 2020-11-23 05:08:20 | <lambdabot> | +++ OK, passed 100 tests. |
| 2020-11-23 05:09:14 | <dsal> | I use that kind of thing when I hand-write read or show (or do some other kind of parser/serialize thing). |
| 2020-11-23 05:16:07 | → | ggole joins (~ggole@2001:8003:8119:7200:1c3c:45be:a6d:c507) |
| 2020-11-23 05:19:03 | <texasmynsted> | :-) |
| 2020-11-23 05:19:25 | <texasmynsted> | nice |
| 2020-11-23 05:19:27 | <texasmynsted> | thank you |
| 2020-11-23 05:20:26 | → | Gurkenglas joins (~Gurkengla@unaffiliated/gurkenglas) |
| 2020-11-23 05:21:31 | hackage | time 1.11.1 - A time library https://hackage.haskell.org/package/time-1.11.1 (AshleyYakeley) |
| 2020-11-23 05:28:02 | × | Fractalis quits (~Fractalis@2601:987:280:8d40:eda9:f9e1:2072:cea7) (Ping timeout: 260 seconds) |
| 2020-11-23 05:31:31 | × | heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection) |
| 2020-11-23 05:32:01 | × | texasmynsted quits (~texasmyns@212.102.45.121) (Remote host closed the connection) |
All times are in UTC.