Logs: freenode/#haskell
| 2021-03-08 17:46:27 | <pavonia> | The quick-and-dirty solution is to just use the Show and Read instances |
| 2021-03-08 17:46:31 | × | bitmagie quits (~Thunderbi@200116b806c05f001879c69ab5903a67.dip.versatel-1u1.de) (Client Quit) |
| 2021-03-08 17:46:33 | <raehik> | ep1ctetus: is this a Haskell-specific question? Aeson can do this for you without much hassle, but it will depend on your data. can you give any more details? |
| 2021-03-08 17:46:42 | × | aggin quits (~ecm@103.88.87.36) (Quit: WeeChat 3.0.1) |
| 2021-03-08 17:46:43 | <raehik> | (*Aeson being a JSON lib for Haskell) |
| 2021-03-08 17:47:40 | <raehik> | pavonia's right, Show and Read is easier but depends further on using simple data types |
| 2021-03-08 17:48:16 | <ep1ctetus> | raehik: sure, It's going to be a list of ~100 entries with a 3-field record. I have a similar system in Python and the files are max 25KB |
| 2021-03-08 17:48:22 | → | nbloomf joins (~nbloomf@2600:1700:ad14:3020:11c5:786:f774:d85e) |
| 2021-03-08 17:48:56 | <ep1ctetus> | so you're saying you would just use show and write the result to a file, then read to get it back out |
| 2021-03-08 17:49:01 | <ep1ctetus> | I don't see anything wrong with that |
| 2021-03-08 17:49:43 | <raehik> | that's quickest and easiest especially if you won't be using the data for anything else inbetween |
| 2021-03-08 17:49:51 | × | muzimuzhi quits (32740d90@50.116.13.144) (Quit: Connection closed) |
| 2021-03-08 17:49:53 | <charukiewicz> | ep1ctetus: The benefit of JSON is that the format is a bit more portable, in case you need to read it from anything other than Haskell |
| 2021-03-08 17:50:29 | <charukiewicz> | If this is a hermetically sealed application, then Show/Read should be fine |
| 2021-03-08 17:50:44 | <ep1ctetus> | no, it's not going to be used for anything in between -- the JSON system I've used before saves from another program and then is read by a Haskell program |
| 2021-03-08 17:50:55 | → | jamm_ joins (~jamm@unaffiliated/jamm) |
| 2021-03-08 17:50:56 | <ep1ctetus> | ok, great! glad I asked |
| 2021-03-08 17:51:00 | → | mirrorbird joins (~dwsjeid91@2a00:801:3f8:23a5:cea1:f987:d427:ba9b) |
| 2021-03-08 17:51:29 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 260 seconds) |
| 2021-03-08 17:51:57 | × | crobbins_ quits (~crobbins@2601:2c1:200:ec50:5478:59f2:999b:c6a1) (Remote host closed the connection) |
| 2021-03-08 17:52:43 | × | geekosaur quits (82650c7a@130.101.12.122) (Ping timeout: 240 seconds) |
| 2021-03-08 17:52:43 | → | crobbins joins (~crobbins@2601:2c1:200:ec50:5478:59f2:999b:c6a1) |
| 2021-03-08 17:53:11 | → | chenshen joins (~chenshen@99-35-21-193.lightspeed.sntcca.sbcglobal.net) |
| 2021-03-08 17:53:20 | → | cole-h joins (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net) |
| 2021-03-08 17:53:26 | × | xff0x quits (~xff0x@2001:1a81:5322:b100:e05:b719:4bf6:4ca9) (Ping timeout: 264 seconds) |
| 2021-03-08 17:53:29 | → | justsomeguy joins (~justsomeg@unaffiliated/--/x-3805311) |
| 2021-03-08 17:53:59 | → | kritzefitz joins (~kritzefit@212.86.56.80) |
| 2021-03-08 17:54:09 | → | xff0x joins (~xff0x@2001:1a81:5322:b100:df37:8603:2266:a7dd) |
| 2021-03-08 17:55:12 | × | chenshen quits (~chenshen@99-35-21-193.lightspeed.sntcca.sbcglobal.net) (Client Quit) |
| 2021-03-08 17:55:14 | → | kiweun joins (~kiweun@2607:fea8:2a62:9600:4005:e720:96ce:453e) |
| 2021-03-08 17:55:19 | → | gitgood joins (~gitgood@82-132-219-97.dab.02.net) |
| 2021-03-08 17:55:33 | × | jamm_ quits (~jamm@unaffiliated/jamm) (Ping timeout: 260 seconds) |
| 2021-03-08 17:55:34 | → | frozenErebus joins (~frozenEre@94.128.82.20) |
| 2021-03-08 17:57:38 | × | crobbins quits (~crobbins@2601:2c1:200:ec50:5478:59f2:999b:c6a1) (Ping timeout: 264 seconds) |
| 2021-03-08 17:59:31 | × | DataComputist quits (~lumeng@50.43.26.251) (Ping timeout: 256 seconds) |
| 2021-03-08 18:00:56 | → | DataComputist joins (~lumeng@50.43.26.251) |
| 2021-03-08 18:01:28 | → | chenshen joins (~chenshen@99-35-21-193.lightspeed.sntcca.sbcglobal.net) |
| 2021-03-08 18:02:18 | → | geekosaur joins (82650c7a@130.101.12.122) |
| 2021-03-08 18:05:39 | × | chenshen quits (~chenshen@99-35-21-193.lightspeed.sntcca.sbcglobal.net) (Read error: Connection reset by peer) |
| 2021-03-08 18:05:42 | × | rj quits (~x@gateway/tor-sasl/rj) (Ping timeout: 268 seconds) |
| 2021-03-08 18:06:00 | × | kuribas quits (~user@ptr-25vy0i90o0bvz8ipj81.18120a2.ip6.access.telenet.be) (Quit: ERC (IRC client for Emacs 26.3)) |
| 2021-03-08 18:06:45 | × | stree quits (~stree@68.36.8.116) (Ping timeout: 246 seconds) |
| 2021-03-08 18:09:02 | × | xff0x quits (~xff0x@2001:1a81:5322:b100:df37:8603:2266:a7dd) (Ping timeout: 264 seconds) |
| 2021-03-08 18:09:13 | → | rj joins (~x@gateway/tor-sasl/rj) |
| 2021-03-08 18:09:22 | → | xff0x joins (~xff0x@2001:1a81:5322:b100:4b34:5fe:a761:7d97) |
| 2021-03-08 18:10:33 | × | kritzefitz quits (~kritzefit@212.86.56.80) (Remote host closed the connection) |
| 2021-03-08 18:10:55 | × | vicfred quits (~vicfred@unaffiliated/vicfred) (Ping timeout: 256 seconds) |
| 2021-03-08 18:11:18 | → | kupi joins (uid212005@gateway/web/irccloud.com/x-iaxkjcceawwlxsuc) |
| 2021-03-08 18:12:10 | → | redmp joins (~redmp@172.58.38.215) |
| 2021-03-08 18:15:31 | × | michalz quits (~user@185.246.204.46) (Remote host closed the connection) |
| 2021-03-08 18:15:49 | → | Mrbuck joins (~Mrbuck@gateway/tor-sasl/mrbuck) |
| 2021-03-08 18:15:58 | → | neiluj joins (~jco@91-167-203-101.subs.proxad.net) |
| 2021-03-08 18:15:58 | × | neiluj quits (~jco@91-167-203-101.subs.proxad.net) (Changing host) |
| 2021-03-08 18:15:58 | → | neiluj joins (~jco@unaffiliated/neiluj) |
| 2021-03-08 18:16:31 | × | heatsink quits (~heatsink@2600:1700:bef1:5e10:9814:d93f:56c2:c87) (Remote host closed the connection) |
| 2021-03-08 18:16:48 | × | rj quits (~x@gateway/tor-sasl/rj) (Ping timeout: 268 seconds) |
| 2021-03-08 18:17:21 | × | elfets quits (~elfets@ip-37-201-23-96.hsi13.unitymediagroup.de) (Ping timeout: 264 seconds) |
| 2021-03-08 18:17:26 | × | Narinas quits (~Narinas@187-178-93-112.dynamic.axtel.net) (Ping timeout: 264 seconds) |
| 2021-03-08 18:18:45 | → | APugNamedPugsley joins (~13052@2601:58a:8300:f6a0:6532:dae5:7d97:31a5) |
| 2021-03-08 18:20:20 | → | stree joins (~stree@68.36.8.116) |
| 2021-03-08 18:21:39 | × | dyeplexer quits (~lol@unaffiliated/terpin) (Remote host closed the connection) |
| 2021-03-08 18:21:49 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-03-08 18:24:25 | → | Narinas joins (~Narinas@187-178-93-112.dynamic.axtel.net) |
| 2021-03-08 18:26:02 | → | bartemius joins (~bartemius@109-252-32-214.nat.spd-mgts.ru) |
| 2021-03-08 18:26:42 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 246 seconds) |
| 2021-03-08 18:29:02 | <curiousgay> | is there a metapackage that installs haskell platform from stack? |
| 2021-03-08 18:30:35 | → | heatsink joins (~heatsink@2600:1700:bef1:5e10:9814:d93f:56c2:c87) |
| 2021-03-08 18:31:13 | × | hiptobecubic quits (~john@unaffiliated/hiptobecubic) (Quit: WeeChat 3.0) |
| 2021-03-08 18:31:48 | → | ozataman joins (~ozataman@pool-100-37-221-69.phlapa.fios.verizon.net) |
| 2021-03-08 18:32:43 | × | mirrorbird quits (~dwsjeid91@2a00:801:3f8:23a5:cea1:f987:d427:ba9b) (Ping timeout: 265 seconds) |
| 2021-03-08 18:34:39 | × | jrqc quits (~rofl@96.78.87.197) (Ping timeout: 245 seconds) |
| 2021-03-08 18:34:39 | × | seanparsons quits (~sean@cpc145088-gill21-2-0-cust281.20-1.cable.virginm.net) (Ping timeout: 256 seconds) |
| 2021-03-08 18:35:44 | <geekosaur> | haskell platform's more or less dead |
| 2021-03-08 18:36:27 | → | seanparsons joins (~sean@cpc145088-gill21-2-0-cust281.20-1.cable.virginm.net) |
| 2021-03-08 18:36:56 | × | bartemius quits (~bartemius@109-252-32-214.nat.spd-mgts.ru) () |
| 2021-03-08 18:37:14 | → | bartemius joins (~bartemius@109-252-32-214.nat.spd-mgts.ru) |
| 2021-03-08 18:37:32 | → | jrqc joins (~rofl@96.78.87.197) |
| 2021-03-08 18:38:55 | × | gitgood quits (~gitgood@82-132-219-97.dab.02.net) (Read error: Connection reset by peer) |
| 2021-03-08 18:39:05 | <APugNamedPugsley> | When setting up stack in Windows 10, the installer asks if I want to set %STACK_ROOT% to C:\sr what does this do? |
| 2021-03-08 18:40:13 | × | rajivr quits (uid269651@gateway/web/irccloud.com/x-tavdfvfumkaqxbyk) (Quit: Connection closed for inactivity) |
| 2021-03-08 18:41:25 | <curiousgay> | after installing stack on void linux `xbps-install -S stack` I can't install anything via it |
| 2021-03-08 18:41:34 | × | bartemius quits (~bartemius@109-252-32-214.nat.spd-mgts.ru) (Client Quit) |
| 2021-03-08 18:41:48 | → | bartemius joins (~bartemius@109-252-32-214.nat.spd-mgts.ru) |
| 2021-03-08 18:42:28 | <curiousgay> | No setup information found for ghc-8.10.4 on your platform. This probably means a GHC bindist has not yet been added for OS key 'linux64-ncurses6'. Supported versions: ghc-7.10.3, ghc-8.0.1, ghc-8.0.2, ghc-8.2.1, ghc-8.2.2 |
| 2021-03-08 18:42:41 | <NieDzejkob> | why does `main = sequence $ print <$> xs where xs = sequence $ replicate n [1..n]` leak space? n=8 takes a gigabyte of RAM |
| 2021-03-08 18:43:45 | <hololeap> | curiousgay, geekosaur: what about https://gitlab.haskell.org/haskell/ghcup-hs#table-of-contents |
| 2021-03-08 18:43:52 | → | danvet joins (~Daniel@2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa) |
| 2021-03-08 18:44:26 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 264 seconds) |
| 2021-03-08 18:45:17 | <curiousgay> | gah, I didn't want to download binaries outside of void linux's repository |
| 2021-03-08 18:49:37 | <ephemient> | NieDzejkob: try `sequence_`? |
| 2021-03-08 18:50:45 | <NieDzejkob> | ephemient: that helps somewhat, now it takes 300m |
| 2021-03-08 18:51:27 | <hololeap> | main = mapM_ print $ sequence_ ... |
| 2021-03-08 18:51:43 | × | geekosaur quits (82650c7a@130.101.12.122) (Ping timeout: 240 seconds) |
| 2021-03-08 18:51:54 | × | DataComputist quits (~lumeng@50.43.26.251) (Ping timeout: 246 seconds) |
| 2021-03-08 18:52:13 | <ephemient> | no, sequence_ @[] doesn't make sense here, only sequence_ @IO |
| 2021-03-08 18:52:18 | <NieDzejkob> | hololeap: I don't think I can use sequence_ in that instance, |
| 2021-03-08 18:52:25 | <NieDzejkob> | yeah, exactly ^ |
| 2021-03-08 18:52:45 | <ephemient> | mapM_ print should have the same behavior as sequence_ . fmap print |
| 2021-03-08 18:53:00 | <NieDzejkob> | though thanks for reminding me about mapM_'s existence :D |
| 2021-03-08 18:53:02 | <ephemient> | so the remaining memory usage is probably due to sequence @[] |
All times are in UTC.