scotty Questions

3

Solved

I am developing an application using Scotty and of course WAI. I would like to be able to limit the size of requests, both for body length and for headers. How can I do that? Is it possible to do i...
Coo asked 15/4, 2015 at 7:25

1

Solved

I wanted to look into web development with haskell for the back-end and elm for the front-end. So i wrote this two simple "hello world" code code snippets elm: import Html exposing (..) import Ht...
Ferriter asked 5/6, 2018 at 18:1

1

Solved

I tried to benchmark Scotty to test the Network I/O efficiency and overall throughput. For this I set up two local servers written in Haskell. One which doesn't do anything and just acts as an API...
Adulterate asked 3/6, 2015 at 4:42

1

Solved

So Real World Haskell says: Every monad transformer is an instance of MonadTrans but I'm playing with Scotty and found out that its base monad transformer ScottyT is not an instance of MonadTr...
Tantamount asked 29/9, 2015 at 22:23

0

While learning Haskell I've made a small web app in Scotty framework. Next I'd like to add user registration. Registration should support email/password and Google/FaceBook login options. If user ...
Beef asked 18/9, 2015 at 10:52

3

Solved

I'm working on a Haskell server using scotty and persistent. Many handlers need access to the database connection pool, so I've taken to passing the pool around throughout the app, in this sort of ...
Neoteny asked 5/2, 2015 at 10:40

1

Solved

I use Persistent orm with scotty web framework. I want to get value from db by id. These id are coming to me from GET request There are "get" function that takes "Key Entity" variable and returns...
Christmas asked 21/1, 2015 at 13:27

1

Solved

I'm trying to make a silly webserver that stores data as State. I'm using Web.Scotty. I've used ReaderT before with scotty to access config, but following the same approach doesn't work here. It re...
Picky asked 16/12, 2014 at 0:1

1

Solved

This is my scotty app, notice how I am logging requests to the console: {-# LANGUAGE OverloadedStrings #-} import Web.Scotty import Network.Wai.Middleware.RequestLogger import Data.Monoid (mconca...
Tempera asked 27/8, 2014 at 21:47

2

Solved

Consider the simplest scotty app: {-# LANGUAGE OverloadedStrings #-} import Web.Scotty import Data.Monoid (mconcat) main = scotty 3000 $ do get "/:word" $ do beam <- param "word" html $ mc...
Flung asked 27/8, 2014 at 15:46

2

Solved

There are trillions of monad tutorial including the reader and it seems all clear when you read about it. But when you actually need to write, it becomes a different matter. I'v never used the Rea...
Brackett asked 28/3, 2014 at 2:49

1

Solved

I'm trying to use Scotty to build a very simple API. I'd like to extend the Scotty monads such that my route handler actions are able to access an unchanging environment. I believe the way to do th...
Iorgo asked 14/4, 2014 at 20:56
1

© 2022 - 2024 — McMap. All rights reserved.