yesod Questions
2
Solved
I cannot find a way to render a link and then comma or full stop right after
it, without whitespace between the link and punctuation. Here is my initial
attempt:
<p>
You can find more infor...
2
Solved
Based on my previous question I'd like to ask if there's any way to kill all user created threads in a GHCi session?
The reason for this is that when a function exits in GHCi the threads that it s...
Scrunch asked 28/7, 2014 at 16:19
4
Solved
I'm very new to Yesod and I'm having trouble building Yesod statically
so I can deploy to Heroku.
I have changed the default .cabal file to reflect static compilation
if flag(production)
cpp-opt...
Dehydrate asked 28/12, 2011 at 15:40
2
How do I dynamically generate forms with a varying number of input fields?
The closest I managed is:
listEditForm :: [String] -> Html -> MForm App App (FormResult Text, Widget)
listEditForm...
1
Warp has a settingsMaxTotalHeaderLength field which by default is 50*1024 : https://hackage.haskell.org/package/warp-3.3.10/docs/src/Network.Wai.Handler.Warp.Settings.html#defaultSettings
I suppose...
Chalmer asked 22/7, 2020 at 13:22
3
Solved
I'm trying to implement a server for a turn based game in Haskell. My choice would be to use Yesod for adminstration and meta-information (like, what games a user participates in and such).
I'd li...
3
Solved
How to, for example, insert a new User into a database using Yesod application's models? Or is there a better way?
I am dealing with scaffolded application. Now I created App instance and dont kno...
Midwest asked 7/1, 2014 at 9:28
2
Solved
I have used Network.Wai.Middleware.Cors's simpleCors, it worked properly for GET requests, but when I try to make a POST request I get the following problem
OPTIONS /users
Accept: text/html,appli...
1
Solved
Is it possible to rename the endpoints of a subsite in Yesod?
For instance, instead of using the provided /login or /email/register from yesod-auth, I want to call them "/entrar" and "/cadastrar" ...
2
Solved
I know this seems a duplicate to Could not find module `Yesod', but unlike that user, ghc-pkg list does not show Yesod in its output on my computer, they didn't seem to be using stack (I am, an...
Laurinda asked 25/8, 2015 at 9:49
1
Solved
Getting this issue while trying to run my Yesod application. stack build has already been run and gives no output anymore.
$ stack exec -- yesod devel
Executable named yesod not found on path: ["p...
Smaze asked 17/12, 2017 at 2:9
1
Solved
I'm trying to return a ByteString from my Handler function in Yesod:
getHomeR :: Handler ByteString
getHomeR = return "foo"
but I'm getting this error:
/Users/maximiliantagher/Documents/Mercury...
Illness asked 15/12, 2017 at 18:39
3
Solved
I'm trying to build a Data.HashMap structure by grouping multiple Persistent entities by their foreign key field. E.g. say I have these two entities (straight out of the Yesod book)
Person
name S...
2
I've been trying to use a Maybe a in a route. So far I tried
/u/#Maybe UserId
/u/#(Maybe UserId)
/u/#Maybe-UserId
and
/u/#MaybeUserId
where
type MaybeUserId = Maybe UserId
But without muc...
Salonika asked 22/6, 2014 at 15:25
0
I'm currently building a personal website in Yesod 1.4.5, and at the moment I'm implementing authentication. Authenticating with a username and password was easy enough - I used Yesod.Auth.HashDB -...
Misguidance asked 6/10, 2017 at 4:53
2
I have some old code which exposes services on a web API which works basically on HTTP verbs. I'd like to move this project to use hypermedia controls (HATEOAS). I'm wondering if there are any libr...
1
Solved
I have a Yesod app which I am deploying to Heroku in a Docker container. The app uses Amazon SES to send emails. When running the app locally using yesod devel this works fine, but in the container...
Shows asked 20/9, 2017 at 12:59
2
I have an ajax call sending json to a route in Yesod and I want the route to parse the json and insert it directly into the database. In my model file I have
createtime UTCTime default=now()
wh...
2
Solved
When I launch my Yesod application, it generates a file named client_session_key.aes. I don't need it, because I use sessionless authentication. Can I stop Yesod generating this file?
3
Solved
EDIT: For those with similar ailments, I found this is related to the "Extensible Records Problem", something I will personally research more into.
EDIT2: I have started to solve this (weeks lat...
2
How do I declare to Persistent that I have a table the primary key of which is a combination of two fields?
For example, assume I have a table containing first_name and last_name, then in SQL synt...
Laresa asked 3/5, 2012 at 14:13
1
I'm trying to use the cached function to prevent multiple db queries in different widgets and handlers:
newtype CachedBobId key
= CachedBobId { unCachedBobId :: key }
deriving Typeable
getBob' ...
2
I'm trying to figure out how to write the following query using Esqueleto
SELECT COUNT("person"."id")
FROM "person"
WHERE (("person"."admin" = 't' OR "person"."vip" = 't') // 't' as in True
OR "p...
Whispering asked 3/6, 2014 at 16:52
1
Solved
I managed to successfully write a small app using Yesod. Now I am in the phase in which I want to add better interaction to it, and I would like to do this using AngularJS.
As far as I can see, th...
Lucindalucine asked 17/11, 2014 at 10:32
3
Solved
I'm new to both Haskell and Yesod, and am trying to build a simple web application that can answer queries from an external API. I have built a parser (using Parsec), that gets me the ID of an enti...
Treadwell asked 26/12, 2011 at 22:4
1 Next >
© 2022 - 2025 — McMap. All rights reserved.