Re: [elm-discuss] Re: YAML lib for Elm?

2017-01-17 Thread fxmy wang
Indeed, latest YAML spec is 84 pages long =(   silent screaming).

And I'm not using Jekyll at all, it's just commentit.io stores comments
in Jekyll compatible way.

Thanks for mentioning the Combine package though, will see what I can do =)

Cheers.

2017-01-18 0:09 GMT+08:00 Brian Hicks <br...@brianthicks.com>:

> Creating a YAML parser is going to be a ton more work than you bargained
> for. That spec is hairy! That said, it probably would be the best way.
>
> But there are workarounds! Since you're rendering the YAML in Jekyll
> anyway, is there a conversion function to JSON you could use? Or, could you
> add a step in your build process to convert the comments as files to load?
>
>
> On Jan 17, 2017, 8:51 AM -0600, Zinggi <schrott57...@gmail.com>, wrote:
>
> Probably not the answer you'd like, but there doesn't exist one.
> Please do us all a favor and create one yourself ;) (probably with the
> help of this
> <http://package.elm-lang.org/packages/Bogdanp/elm-combine/latest>.)
> If that's too much effort, you can use some JS lib
> <https://www.npmjs.com/search?q=yaml> and use ports to bring it over to
> elm.
>
>
> On Tuesday, 17 January 2017 13:44:41 UTC+1, fxmy wang wrote:
>>
>> Well short story would be: I need to parse some yaml. =)
>>
>> Long version: I'm using commentit.io for storing comments on my handmade
>> blog (powered by Elm of course). And commentit.io stores comments
>> the jekyll way. Hence in format of yaml like this
>> <https://github.com/fxmy/fxmy.github.io/blob/master/_data/comments.yml>.
>>
>> So I need a way to parse and display comments for my blog.
>>
>> Cheers.
>>
>> 2017-01-17 10:12 GMT+08:00 Brian Hicks <br...@brianthicks.com>:
>>
>>> It doesn't look like there is, unfortunately. What are you trying to
>>> accomplish? Maybe there's another way around. :)
>>>
>>>
>>> On Monday, January 16, 2017 at 12:00:45 AM UTC-6, fxmy wang wrote:
>>>>
>>>> Hello guys,
>>>> Is there any yaml parser existing for Elm?
>>>>
>>>> Cherrs.
>>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Elm Discuss" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>> pic/elm-discuss/s8dy6zlQaYM/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> elm-discuss...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Elm Discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/elm-discuss/s8dy6zlQaYM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Elm Discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/elm-discuss/s8dy6zlQaYM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] Re: YAML lib for Elm?

2017-01-17 Thread fxmy wang
Well short story would be: I need to parse some yaml. =)

Long version: I'm using commentit.io for storing comments on my handmade
blog (powered by Elm of course). And commentit.io stores comments
the jekyll way. Hence in format of yaml like this
<https://github.com/fxmy/fxmy.github.io/blob/master/_data/comments.yml>.

So I need a way to parse and display comments for my blog.

Cheers.

2017-01-17 10:12 GMT+08:00 Brian Hicks <br...@brianthicks.com>:

> It doesn't look like there is, unfortunately. What are you trying to
> accomplish? Maybe there's another way around. :)
>
>
> On Monday, January 16, 2017 at 12:00:45 AM UTC-6, fxmy wang wrote:
>>
>> Hello guys,
>> Is there any yaml parser existing for Elm?
>>
>> Cherrs.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Elm Discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/elm-discuss/s8dy6zlQaYM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] YAML lib for Elm?

2017-01-15 Thread fxmy wang
Hello guys,
Is there any yaml parser existing for Elm?

Cherrs.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Period(.) in repository field of elm-package.json generates erroneous code

2016-12-18 Thread fxmy wang


Hello guys, so when I was following some tutorial and decide to build some 
github pages with elm.

So I updated elm-package.json file like this 

"repository": "https://github.com/someguy/someguy.github.io.git;

elm-make didn’t complain a thing. But as soon as I load the page in browser 
I get js error:
Uncaught SyntaxError: Unexpected token .
and the corresponding code :

var _someguy$someguy.github.io$BlogFxmy_Main$subscriptions = function (model) {
return _elm_lang$core$Platform_Sub$none;
};

As long as I remove those periods away everything works fine.

https://github.com/someguy/someguygithubio.git

Just wondering/in case anyone has been bit by this =)
And any possibility to work around this?
​

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.