Minimal Warp webserver example
问题 I want to create a website using the Warp webserver in Haskell. As I'm a Haskell beginner, examples like this one are too complex for me. Can anyone show me a simple, minimal example of how to use Warp ? Note: This question intentionally shows no research effort as it was answered Q&A-style. 回答1: Here's a minimal Hello World application using Warp 3.0+. Run it, then navigate to http://localhost:3000 . This example will show Hello world . In order to keep this example minimal, URL paths are