Questions tagged [happstack]

Happstack is a fast and flexible Haskell web framework.

Happstack is a fast and flexible Haskell web framework.

111 questions
0
votes
1 answer

Trying to bring HSP and Acid-state together in a form with Happstack

I followed the Happstack Crash Course and now I am trying to bring different things together: From "Type-Safe Form processing using reform" (http://happstack.com/docs/crashcourse/Reform.html#reform) I have coded this register form: register ::…
Flo
  • 459
  • 4
  • 7
0
votes
1 answer

Setting a SSL + Happstack Server Example fails with file error

I trying to write a simple Happstack application that uses SSL. With this source code: module Main where import Happstack.Server( ok ) import Happstack.Server.SimpleHTTPS( TLSConf(..), nullTLSConf, simpleHTTPS ) conf :: TLSConf conf =…
Zhen
  • 4,171
  • 5
  • 38
  • 57
0
votes
1 answer

Directly outputting pre-generated HTML with Happstack

I'm playing around with Haskell and Happstack and I'm trying to output string-based HTML directly without using formal Happstack functions. Specifically I'm trying to output SVG directly into the page (with ... ) which comes from another…
amr
  • 806
  • 8
  • 16
0
votes
1 answer

Can a session cookie be sufficient for authentication?

I'm trying to implement simple password-based authentication for a web application written using the Happstack framework. My user presents an ID and password, which I hash using bcrypt and check against by database. If the hashed password is in…
Norman Ramsey
  • 198,648
  • 61
  • 360
  • 533
0
votes
1 answer

web-routes different return type

Going through happstack-lite tutorial: we build functions that have return type of ServerPart Reponse: homePage :: ServerPart Response however, in web-routes crash course, our functions change signature to the following: homePage :: RouteT Sitemap…
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
-1
votes
1 answer

What's the type of LazyIO.readFile?

I am trying to find the type of privacyContents in privacyContents <- LazyIO.readFile $ markdownPath ++ "PRIVACY.md" Is the type of this variable defined by the return type of LazyIO.readFile? And if the answer is yes, what is the return type of…
Mia.M
  • 97
  • 1
  • 1
  • 8
1 2 3 4 5 6 7
8