[Haskell-cafe] Creating string resources

Michael Snoyman michael at snoyman.com
Thu Nov 3 14:37:30 UTC 2016


I think you're looking for file-embed[1]. In the Yesod scaffolding, we even
use it to read in a yaml file and parse it at compile time to make
available to the app.

[1] https://www.stackage.org/package/file-embed

On Thu, Nov 3, 2016 at 3:11 PM, Zachary Kessin <zkessin at gmail.com> wrote:

> I have an app with a UX in GHCJS and I want to have  way for a non
> developer to edit the text, but then have it compiled into our code base.
>
> One obvious way would be just to have haskell modules that just has the
> strings in it as constants. But I thought to ask has anyone else come up
> with a solution to this?
>
> --
> Zach Kessin
> SquareTarget <http://squaretarget.rocks?utm_source=email-sig>
> Twitter: @zkessin <https://twitter.com/zkessin>
> Skype: zachkessin
>>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20161103/8c368cfd/attachment.html>


More information about the Haskell-Cafe mailing list