[Haskell-cafe] A new yaml module

Chris Wong chrisyco+haskell-cafe at gmail.com
Mon Feb 3 20:07:07 UTC 2014


On Tue, Feb 4, 2014 at 4:40 AM, Joachim Breitner
<mail at joachim-breitner.de> wrote:
> Hi,
>
> Am Montag, den 03.02.2014, 10:23 -0500 schrieb Brandon Allbery:
>> On Mon, Feb 3, 2014 at 3:57 AM, Michael Snoyman <michael at snoyman.com>
>> wrote:
>>         * There are problems with roundtripping, since YAML allows for
>>         ambiguity about the data type of values[2]. For example, in
>>         the yaml snippet `foo: 1234`, is 1234 intended to be numeric
>>         or a string? Either is valid.
>>
>>
>>
>> YAML is a pretty accurate representation of Perl values, so this is
>> inevitable. I'm left wondering if YAML is even appropriate for
>> Haskell....
>
> I’m left wondering if “is ... even appropriate for Haskell” is even
> appropriate. If the task to be solved is „Generate data in this
> particular format“, and picking the format is not part of the task, then
> we still want the language of our choice to be appropriate, don’t we?
>
> YAML may be an inappropriate choice of serialisation format if we are
> free to chose and there is only Haskell code involved.

AFAIK, Yesod uses YAML mainly for configuration files. For that use
case, I've found configurator[1] much easier to use.

[1] http://hackage.haskell.org/package/configurator

> Greetings,
> Joachim
>
>
> --
> Joachim “nomeata” Breitner
>   mail at joachim-breitner.dehttp://www.joachim-breitner.de/
>   Jabber: nomeata at joachim-breitner.de  • GPG-Key: 0x4743206C
>   Debian Developer: nomeata at debian.org
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
Chris Wong, fixpoint conjurer
  e: lambda.fairy at gmail.com
  w: http://lfairy.github.io


More information about the Haskell-Cafe mailing list