2024/09/19

Newest at the top

2024-09-19 04:05:30 +0200lystra(~lystra@208.59.105.41)
2024-09-19 04:04:50 +0200youthlic(~Thunderbi@user/youthlic)
2024-09-19 04:01:11 +0200 <blober> TY
2024-09-19 03:59:17 +0200 <Axman6> but I'd start here: https://hackage.haskell.org/package/HsYAML-0.2.1.4/docs/Data-YAML-Event.html#g:1
2024-09-19 03:58:47 +0200dhruvasagar(~dhruvasag@49.207.204.156) (Ping timeout: 265 seconds)
2024-09-19 03:58:38 +0200 <Axman6> how you use that to change specific parts of the structure I'm not sure
2024-09-19 03:54:59 +0200 <blober> I see
2024-09-19 03:54:40 +0200 <Axman6> I have a feeling you might be able to do it using the event based interface but I can't see how to do it using the Node type
2024-09-19 03:53:17 +0200 <blober> like doing roundtrip and inserting a key
2024-09-19 03:51:41 +0200 <Axman6> I'm not familiar with the library, but it looks like support for comments is in the released version. What do you mean when you say dumping yaml?
2024-09-19 03:51:39 +0200lystra(~lystra@208.59.105.41) (Ping timeout: 246 seconds)
2024-09-19 03:47:27 +0200rosco(~rosco@175.136.158.234) (Quit: Lost terminal)
2024-09-19 03:38:20 +0200 <blober> can you preserve comments when dumping yaml? I see there was some work in https://github.com/haskell-hvr/HsYAML/pull/24 but not sure how to use it
2024-09-19 03:33:44 +0200 <blober> yes, you were correct
2024-09-19 03:33:42 +0200dhruvasagar(~dhruvasag@49.207.204.156)
2024-09-19 03:32:44 +0200 <Axman6> since there's no isntance for FromYAML for Char it doesn't even get to the point of trying to parse.
2024-09-19 03:31:50 +0200 <Axman6> because I think it's actually expecting to parse [[Char]] which is where that error is coming from
2024-09-19 03:31:16 +0200 <Axman6> blober: Does using [Text] work?
2024-09-19 03:31:08 +0200zzzzero
2024-09-19 03:31:08 +0200zero(~z@user/zero) (Read error: Connection reset by peer)
2024-09-19 03:30:44 +0200zzz(~z@user/zero)
2024-09-19 03:29:10 +0200institor(~henricus@user/institor) (Killed (ozone (No Spam)))
2024-09-19 03:28:43 +0200ZharMeny(~ZharMeny@user/ZharMeny) (Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4))
2024-09-19 03:22:42 +0200xff0x(~xff0x@fsb6a9491c.tkyc517.ap.nuro.jp)
2024-09-19 03:22:16 +0200 <blober> ```
2024-09-19 03:22:15 +0200 <blober>     • No instance for ‘FromYAML Char’ arising from a use of ‘decode1’
2024-09-19 03:22:15 +0200 <blober> ```
2024-09-19 03:22:14 +0200 <blober> ```
2024-09-19 03:22:13 +0200 <blober> my_example = decode1 "- foo" :: Either (Pos, String) [String]
2024-09-19 03:22:13 +0200 <blober> ```
2024-09-19 03:22:12 +0200 <blober> the above works, but this doesn't
2024-09-19 03:22:12 +0200 <blober> ```
2024-09-19 03:22:11 +0200 <blober> example = decode1 "- 1\n- 2" :: Either (Pos, String) [Int]
2024-09-19 03:22:11 +0200 <blober> ```
2024-09-19 03:22:10 +0200 <blober> Based on https://hackage.haskell.org/package/HsYAML-0.2.1.4/docs/Data-YAML.html#g:3 , I don't get how
2024-09-19 03:20:09 +0200dhruvasagar(~dhruvasag@49.207.204.156) (Ping timeout: 246 seconds)
2024-09-19 03:20:01 +0200st_aldini(~Thunderbi@136.48.22.91)
2024-09-19 03:19:40 +0200st_aldini(~Thunderbi@136.48.22.91) (Remote host closed the connection)
2024-09-19 03:19:24 +0200blober(~blober@185.98.172.26)
2024-09-19 03:19:11 +0200lisbeths(uid135845@id-135845.lymington.irccloud.com)
2024-09-19 03:14:37 +0200Tuplanolla(~Tuplanoll@91-159-69-59.elisa-laajakaista.fi) (Quit: Leaving.)
2024-09-19 03:13:59 +0200dhruvasagar(~dhruvasag@49.207.204.156)
2024-09-19 03:12:24 +0200weary-traveler(~user@user/user363627) (Remote host closed the connection)
2024-09-19 03:06:13 +0200mceresa(~mceresa@user/mceresa)
2024-09-19 03:05:37 +0200machinedgod(~machinedg@d50-99-47-73.abhsia.telus.net) (Ping timeout: 265 seconds)
2024-09-19 03:04:44 +0200emmanuelux(~emmanuelu@user/emmanuelux) (Quit: au revoir)
2024-09-19 03:04:10 +0200mceresa(~mceresa@user/mceresa) (Ping timeout: 265 seconds)
2024-09-19 02:40:55 +0200rosco(~rosco@175.136.158.234)
2024-09-19 02:36:09 +0200peterbecich(~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 260 seconds)
2024-09-19 02:32:57 +0200Angelz(Angelz@2605:6400:30:fc15:9bd1:2217:41cd:bb15)