Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Yesod/Persist (and/or general Haskell) problem

23 views
Skip to first unread message

Ecki

unread,
Feb 8, 2013, 4:59:42 AM2/8/13
to
Hello there,

as I'm very new to Haskell, could someone kindly push me into the
correct direction of solving the following problem...?

I started with Yesod's scaffolding application. Serving HTML generated
from database content works fine, but is there an elegant way to create
plain text responses iterating over database tables? Simple plain text
using a Handler like

getTestR = return . RepPlain . toContent ...

works too, but I'd like to serve:

config/models:

File
path Text
Conf
key Text
val Text
file FileId

as plaintext as in the SQL query:

select path, key, val from file, conf order by path, key;

regards
Ecki
0 new messages