Is there a way to start a http server to serve static files right from shell using ghc -e or runhaskell ?
The wai-app-static
package ships with an executable named warp
. This can be run from the command line to get a static file server. You can look at its implementation to see how you can reimplement that behavior from runhaskell
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With