Newest at the top
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 +0200 | dhruvasagar | (~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 +0200 | lystra | (~lystra@208.59.105.41) (Ping timeout: 246 seconds) |
2024-09-19 03:47:27 +0200 | rosco | (~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 +0200 | dhruvasagar | (~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 +0200 | zzz | zero |
2024-09-19 03:31:08 +0200 | zero | (~z@user/zero) (Read error: Connection reset by peer) |
2024-09-19 03:30:44 +0200 | zzz | (~z@user/zero) |
2024-09-19 03:29:10 +0200 | institor | (~henricus@user/institor) (Killed (ozone (No Spam))) |
2024-09-19 03:28:43 +0200 | ZharMeny | (~ZharMeny@user/ZharMeny) (Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)) |
2024-09-19 03:22:42 +0200 | xff0x | (~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 +0200 | dhruvasagar | (~dhruvasag@49.207.204.156) (Ping timeout: 246 seconds) |
2024-09-19 03:20:01 +0200 | st_aldini | (~Thunderbi@136.48.22.91) |
2024-09-19 03:19:40 +0200 | st_aldini | (~Thunderbi@136.48.22.91) (Remote host closed the connection) |
2024-09-19 03:19:24 +0200 | blober | (~blober@185.98.172.26) |
2024-09-19 03:19:11 +0200 | lisbeths | (uid135845@id-135845.lymington.irccloud.com) |
2024-09-19 03:14:37 +0200 | Tuplanolla | (~Tuplanoll@91-159-69-59.elisa-laajakaista.fi) (Quit: Leaving.) |
2024-09-19 03:13:59 +0200 | dhruvasagar | (~dhruvasag@49.207.204.156) |
2024-09-19 03:12:24 +0200 | weary-traveler | (~user@user/user363627) (Remote host closed the connection) |
2024-09-19 03:06:13 +0200 | mceresa | (~mceresa@user/mceresa) |
2024-09-19 03:05:37 +0200 | machinedgod | (~machinedg@d50-99-47-73.abhsia.telus.net) (Ping timeout: 265 seconds) |
2024-09-19 03:04:44 +0200 | emmanuelux | (~emmanuelu@user/emmanuelux) (Quit: au revoir) |
2024-09-19 03:04:10 +0200 | mceresa | (~mceresa@user/mceresa) (Ping timeout: 265 seconds) |
2024-09-19 02:40:55 +0200 | rosco | (~rosco@175.136.158.234) |
2024-09-19 02:36:09 +0200 | peterbecich | (~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 260 seconds) |
2024-09-19 02:32:57 +0200 | Angelz | (Angelz@2605:6400:30:fc15:9bd1:2217:41cd:bb15) |
2024-09-19 02:29:45 +0200 | dhruvasagar | (~dhruvasag@49.207.204.156) (Ping timeout: 246 seconds) |
2024-09-19 02:29:41 +0200 | xff0x | (~xff0x@2405:6580:b080:900:6729:dbd:b464:a963) (Ping timeout: 248 seconds) |