<div dir="ltr">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.<div><br></div><div>[1] <a href="https://www.stackage.org/package/file-embed">https://www.stackage.org/package/file-embed</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 3, 2016 at 3:11 PM, Zachary Kessin <span dir="ltr"><<a href="mailto:zkessin@gmail.com" target="_blank">zkessin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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. <div><br></div><div>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?<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div class="m_-3075082200528936066gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Zach Kessin</div><div><a href="http://squaretarget.rocks?utm_source=email-sig" target="_blank">SquareTarget</a></div><div><span style="font-size:12.8px">Twitter: </span><a href="https://twitter.com/zkessin" style="font-size:12.8px" target="_blank">@zkessin</a><br></div><div>Skype: zachkessin<br></div></div></div></div></div></div></div>
</font></span></div></div><span class="HOEnZb"><font color="#888888"><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aemtlc3NpbkBnbWFpbC5jb20%3D&type=zerocontent&guid=93bd4232-6df3-4856-bd36-3ced6bf055cd"><font color="#ffffff" size="1">ᐧ</font></div>
</font></span><br>______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.<br></blockquote></div><br></div>