Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-05-16 07:21:03 ixlun joins (~user@109.249.184.235)
2021-05-16 07:21:59 <olligobber> % :t \x -> interact $ parse x "Standard Input"
2021-05-16 07:21:59 <yahb> olligobber: ; <interactive>:1:18: error: Variable not in scope: parse :: t -> String -> String -> String
2021-05-16 07:22:26 <olligobber> wait, you wrote Parser not Parsec
2021-05-16 07:23:37 <olligobber> % :t \x -> getContents >>= parseTest x
2021-05-16 07:23:37 <yahb> olligobber: ; <interactive>:1:23: error: Variable not in scope: parseTest :: t -> String -> IO b
2021-05-16 07:24:25 <olligobber> a6a45081-2b83, what library are you getting Parser from?
2021-05-16 07:25:35 idhugo joins (~idhugo@80-62-116-231-mobile.dk.customer.tdc.net)
2021-05-16 07:27:51 oxide joins (~lambda@unaffiliated/mclaren)
2021-05-16 07:32:36 <charukiewicz> a6a45081-2b83: If you're using SQLite and want something pretty simple, some good options are going to be sqlite-simple and persistent. sqlite3 is going to be linked into each of these during compile time. I recommend using persistent since it allows you to define your database model types in Haskell and gives you type safety when querying your data.
2021-05-16 07:33:21 <a6a45081-2b83> charukiewicz: thanks, that's very informative
2021-05-16 07:34:03 <a6a45081-2b83> olligobber: http-conduit -> aeson -> sqlite-simple . I am trying to get nested objects in json
2021-05-16 07:34:06 <charukiewicz> Keep in mind, however, that persistent has a pretty simple query API and doesn't support joins. If you need joins then you'll need to write raw SQL (persistent has a function that lets you write perpared statements), or you can use the library called Esqueleto, which expands on persistent and introduces a type-safe SQL syntax that supports joins and other more common SQL operations
2021-05-16 07:34:35 <a6a45081-2b83> I am getting confused with the fmaps and <$> I am using to get nested object from Json
2021-05-16 07:37:38 Pickchea joins (~private@unaffiliated/pickchea)
2021-05-16 07:41:45 <olligobber> a6a45081-2b83, I don't see a Parser in any of those packages
2021-05-16 07:42:10 mayleesia is now known as maylee
2021-05-16 07:43:53 <a6a45081-2b83> aeson
2021-05-16 07:46:18 <a6a45081-2b83> probably i should use lens here
2021-05-16 07:47:27 xenon- joins (~bc817c21@217.29.117.252)
2021-05-16 07:48:42 jakalx joins (~jakalx@base.jakalx.net)
2021-05-16 07:51:28 ddellacosta joins (ddellacost@gateway/vpn/mullvad/ddellacosta)
2021-05-16 07:52:08 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-05-16 07:54:07 kuribas joins (~user@ptr-25vy0i8tkv6wdcurvf3.18120a2.ip6.access.telenet.be)
2021-05-16 07:55:49 × ddellacosta quits (ddellacost@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 245 seconds)
2021-05-16 07:57:25 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 260 seconds)
2021-05-16 07:58:04 royal_screwup21 joins (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9)
2021-05-16 07:59:54 fendor_ is now known as fendor
2021-05-16 08:00:20 <pavonia> Is JuicyPixels the best option when dealing with indexed/palletized image formats? For example, it doesn't seem to be able to write PNGs with bit depths smaller than 8. Perhaps there's a better alternative
2021-05-16 08:02:54 × royal_screwup21 quits (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) (Ping timeout: 245 seconds)
2021-05-16 08:07:24 hendursa1 joins (~weechat@gateway/tor-sasl/hendursaga)
2021-05-16 08:10:18 rusua joins (uid124537@gateway/web/irccloud.com/x-cfwpbwrvytymqnad)
2021-05-16 08:10:21 × hendursaga quits (~weechat@gateway/tor-sasl/hendursaga) (Ping timeout: 240 seconds)
2021-05-16 08:14:00 × nyd quits (~nyd@unaffiliated/elysian) (Ping timeout: 268 seconds)
2021-05-16 08:14:27 nyd joins (~nyd@unaffiliated/elysian)
2021-05-16 08:14:56 × nyd quits (~nyd@unaffiliated/elysian) (Client Quit)
2021-05-16 08:24:36 × heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection)
2021-05-16 08:26:12 ddellacosta joins (ddellacost@gateway/vpn/mullvad/ddellacosta)
2021-05-16 08:26:51 × leothrix quits (~leothrix@elastic/staff/leothrix) (Quit: ZNC 1.8.2 - https://znc.in)
2021-05-16 08:28:42 gehmehgeh joins (~ircuser1@gateway/tor-sasl/gehmehgeh)
2021-05-16 08:30:44 × ddellacosta quits (ddellacost@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 246 seconds)
2021-05-16 08:31:13 leothrix joins (~leothrix@elastic/staff/leothrix)
2021-05-16 08:33:04 rond_ joins (5940206b@89-64-32-107.dynamic.chello.pl)
2021-05-16 08:36:27 × jwheare1 quits (~jwheare@178.238.11.35) (Remote host closed the connection)
2021-05-16 08:40:30 star_cloud joins (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com)
2021-05-16 08:43:34 × nbloomf quits (~nbloomf@2600:1700:ad14:3020:8dd2:2363:77ad:18a2) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2021-05-16 08:44:27 Varis joins (~Tadas@unaffiliated/varis)
2021-05-16 08:47:09 _ht joins (~quassel@82-169-194-8.biz.kpn.net)
2021-05-16 08:51:52 × stree quits (~stree@68.36.8.116) (Ping timeout: 252 seconds)
2021-05-16 08:54:54 danvet joins (~Daniel@2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa)
2021-05-16 08:54:55 frozenErebus joins (~frozenEre@37.231.244.249)
2021-05-16 08:55:59 × tromp quits (~tromp@dhcp-077-249-230-040.chello.nl) (Remote host closed the connection)
2021-05-16 08:56:59 davros joins (~davros@host86-185-126-190.range86-185.btcentralplus.com)
2021-05-16 08:59:01 × Sgeo_ quits (~Sgeo@ool-18b9875e.dyn.optonline.net) (Read error: Connection reset by peer)
2021-05-16 09:00:12 × madjestic[m] quits (madjesticm@gateway/shell/matrix.org/x-eyqfvievhcxnqgtl) (Quit: Idle for 30+ days)
2021-05-16 09:01:30 ddellacosta joins (~ddellacos@86.106.143.150)
2021-05-16 09:03:03 oish joins (~charlie@228.25.169.217.in-addr.arpa)
2021-05-16 09:04:39 stree joins (~stree@68.36.8.116)
2021-05-16 09:05:27 chris__ joins (~chris@81.96.113.213)
2021-05-16 09:05:28 × Pickchea quits (~private@unaffiliated/pickchea) (Ping timeout: 252 seconds)
2021-05-16 09:06:11 × ddellacosta quits (~ddellacos@86.106.143.150) (Ping timeout: 240 seconds)
2021-05-16 09:09:50 × chris__ quits (~chris@81.96.113.213) (Ping timeout: 252 seconds)
2021-05-16 09:10:41 × drbean_ quits (~drbean@TC210-63-209-26.static.apol.com.tw) (Ping timeout: 240 seconds)
2021-05-16 09:13:19 kritzefitz joins (~kritzefit@212.86.56.80)
2021-05-16 09:14:11 <a6a45081-2b83> can i limit the elements traversed?
2021-05-16 09:14:29 × frozenErebus quits (~frozenEre@37.231.244.249) (Ping timeout: 246 seconds)
2021-05-16 09:15:47 chris__ joins (~chris@81.96.113.213)
2021-05-16 09:17:55 × shutdown_-h_now quits (~arjan@2001:1c06:2d0b:2312:9164:4bfe:a653:ddb6) (Ping timeout: 276 seconds)
2021-05-16 09:20:17 <kuribas> How do I make a multiparam instance with template haskell?
2021-05-16 09:20:23 LKoen joins (~LKoen@2a01cb0407597a004d60e6b5637735bc.ipv6.abo.wanadoo.fr)
2021-05-16 09:20:23 <kuribas> InstancedD only has one Type.
2021-05-16 09:20:49 tromp joins (~tromp@dhcp-077-249-230-040.chello.nl)
2021-05-16 09:20:59 mikoto-chan joins (~mikoto-ch@gateway/tor-sasl/mikoto-chan)
2021-05-16 09:23:04 shutdown_-h_now joins (~arjan@2001:1c06:2d0b:2312:7021:8404:574b:2446)
2021-05-16 09:24:32 <kuribas> Or do I apply the classname to the types?
2021-05-16 09:24:58 <[exa]> a6a45081-2b83: "limit" as in "traverse only first 10" ?
2021-05-16 09:25:09 heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-05-16 09:25:16 × kritzefitz quits (~kritzefit@212.86.56.80) (Remote host closed the connection)
2021-05-16 09:29:32 × heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 246 seconds)
2021-05-16 09:32:28 _noblegas joins (uid91066@gateway/web/irccloud.com/x-hodotngawpspamdv)
2021-05-16 09:34:08 ddellacosta joins (ddellacost@gateway/vpn/mullvad/ddellacosta)
2021-05-16 09:34:38 knupfer joins (~Thunderbi@2a02:3038:407:42c5:ed2c:8e5a:d2c6:866a)
2021-05-16 09:38:51 <a6a45081-2b83> yeah
2021-05-16 09:38:59 × ddellacosta quits (ddellacost@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 265 seconds)
2021-05-16 09:39:07 <a6a45081-2b83> I think I can do traverse . take n
2021-05-16 09:41:01 __monty__ joins (~toonn@unaffiliated/toonn)
2021-05-16 09:41:36 royal_screwup21 joins (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9)
2021-05-16 09:43:48 <[exa]> a6a45081-2b83: yeah that would work nicely for lists I guess. you might need a generic `take` for more complicated stuff
2021-05-16 09:45:05 <kuribas> take . toList ?
2021-05-16 09:45:33 <[exa]> it was headed that direction, yes.
2021-05-16 09:45:39 × knupfer quits (~Thunderbi@2a02:3038:407:42c5:ed2c:8e5a:d2c6:866a) (Ping timeout: 260 seconds)
2021-05-16 09:47:45 elfets joins (~elfets@ip-37-201-23-96.hsi13.unitymediagroup.de)
2021-05-16 09:47:58 <maerwald> charukiewicz: SQL isn't type safe?
2021-05-16 09:48:56 m0rphism joins (~m0rphism@HSI-KBW-085-216-104-059.hsi.kabelbw.de)
2021-05-16 09:49:40 <kuribas> maerwald: not really
2021-05-16 09:49:54 <kuribas> maerwald: also, defined SQL
2021-05-16 09:50:02 <kuribas> "define SQL"
2021-05-16 09:50:08 <kuribas> every dialect is different.
2021-05-16 09:52:59 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-05-16 09:55:03 frozenErebus joins (~frozenEre@37.231.244.249)

All times are in UTC.