scotty-web / scotty

Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository)
http://hackage.haskell.org/package/scotty
BSD 3-Clause "New" or "Revised" License
1.71k stars 132 forks source link

runhaskell doesn't work reliably for all users. Update quickstart in the README #390

Open ocramz opened 3 months ago

ocramz commented 3 months ago

We should point users to stack or cabal.

See #389

pbrinkmeier commented 3 months ago

Hi, I investigated this a little. The readme currently contains this passage:


Run /basic.hs to see Scotty in action:

runghc examples/basic.hs

Setting phasers to stun... (port 3000) (ctrl-c to quit)

Or equivalently with stack:

stack exec -- scotty-basic

My results (using the haskell:9.6.4-slim Docker container):

What works:

packages:

I'd suggest to just change it to cabal run scotty-basic with like a line or two saying that it will take a minute when running it the first time. I can prepare a PR for this :)

ocramz commented 3 months ago

@pbrinkmeier A PR would be very appreciated!