happstack Questions

0

I'm trying to set up a happstack-lite application using stack. I initialized project with these commands: stack new my-happstack cd my-happstack stack setup I changed package.yaml so it contain...
Palladic asked 21/4, 2019 at 1:41

7

I can't seem to get a few Haskell packages to install on my Mac (10.6.8). I first tried Happstack and it failed and then I tried Snap. Sometimes when I run ghci I get a segmentation fault. Other ...
Transude asked 29/3, 2013 at 18:23

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...
Stigmatic asked 26/4, 2014 at 8:34

1

I know it's rarely used, but is it possible to access the client certificate in Snap? If not, is it possible using a different web stack?
Grau asked 19/3, 2013 at 2:43

2

Can I do long polling in Yesod, or any other Haskell web framework with comparable database facilities? To be precise, I want to delay a HTTP response until something interesting happens. There s...
Hangbird asked 10/6, 2013 at 11:16

2

Solved

I have this code (inside happstack, but could be just the IO monad): accountHandler conn = do sessionId <- optional $ readCookieValue "sessionId" case sessionId of Nothing -> seeOther ("...
Skitter asked 29/11, 2013 at 20:35

2

Solved

I've seen benchmarks on Yesod's homepage, but they are mostly for static files. And the benchmarks on Snap's website are outdated. I'm trying to expose a Haskell module as a service. The server's...
Eluviation asked 3/9, 2013 at 13:18

1

Solved

I can't seem find any documentation, any blogposts or other resources about this subject. From what I have seen so far there seems to be support for FastCGI but the project hasn't had a commit fo...
Bouillon asked 18/6, 2013 at 21:1

2

I'm trying to get more familiar with Haskell by developing web-app-ish services. Say I'm developing a web-server and I want to keep persistent state between requests; a counter, for instance. What...
Aila asked 25/1, 2013 at 19:19

1

Solved

This is a Haskell newb question probably to do with the IO() monad. I've got a function in a Happstack.Server program that generates a response for a file upload. postFile = do methodM POST deco...
Falcon asked 2/11, 2012 at 3:23

2

Solved

I want to create a Happstack application with lots of access to a database. I think that a Monad Stack with IO at the bottom and a Database Write-like monad on top (with log writer in the middle) w...
Kilpatrick asked 18/10, 2011 at 11:33

1

Solved

I'm trying to create a JSON REST api using Happstack. It should allow POSTS with a JSON body. How can I do this? All the functions in happstack's API seem to look things up based on parameter name....
Hyssop asked 14/1, 2012 at 22:16

1

Solved

I'm trying to write an application server using Happstack, Heist, and web-routes, but am having trouble figuring out how to let splices access values that don't originate from my application's mona...
Depravity asked 5/11, 2011 at 20:52

1

Solved

Last week three of us spent two days trying to build a simple web application using Happstack. One of our concerns is authentication, and it appears there was once a Happstack.Auth package that loo...
Ethyl asked 29/8, 2011 at 4:2

2

Solved

I'm starting making Haskell web server. I've decided to start with Happstack and Happstack-state. And I'm feeling hard to understand concept and attribute of Happstack-state. Is it a new kind of da...
Takahashi asked 24/2, 2011 at 3:37
1

© 2022 - 2024 — McMap. All rights reserved.