Awesome Open Source
Awesome Open Source


Build status Hackage Hackage Spock-Core


Another Haskell web framework for rapid development. To get started with Spock, check our tutorial or take a look at our example project funblog!

Mailing list

Please join our mailing list at [email protected]


Another Haskell web framework for rapid development: This toolbox provides everything you need to get a quick start into web hacking with haskell:

  • fast typesafe routing
  • middleware
  • json
  • sessions
  • cookies
  • database helper
  • csrf-protection
  • typesafe contexts

Important Links




The following Spock extensions exist:

Works well with Spock


If you'd like to use your application via HTTPS, there are two options:

  • Use nginx/haproxy/... as reverse proxy in front of the Spock application.
  • Convert the Spock application to a wai-application using the spockAsApp. Then use the warp-tls package to run it.


Since version Spock drops simple routing in favor of typesafe routing and drops safe actions in favor of the "usual" way of csrf protection with a token.

Since version Spock supports typesafe routing. If you wish to continue using the untyped version of Spock you can Use Web.Spock.Simple. The implementation of the routing is implemented in a separate haskell package called reroute.

Since version Spock is no longer built on top of scotty. The design and interface is still influenced by scotty, but the internal implementation differs from scotty's.

Thanks to


Pull requests are welcome! Please consider creating an issue beforehand, so we can discuss what you would like to do. Code should be written in a consistent style throughout the project. Avoid whitespace that is sensible to conflicts. (E.g. alignment of = signs in functions definitions)

Note that by sending a pull request you agree that your contribution can be released under the BSD3 License as part of the Spock package or related packages.


Officially Supported GHC Versions

  • 8.10.7
  • 8.8.4


Released under the BSD3 license. (c) 2013 - 2021 Alexander Thiemann

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Server (65,679
Web (37,778
Http (30,305
Haskell (20,959
Functional Programming (11,113
Routing (5,917
Web Application Framework (2,256
Type Safe (933
Rapid Development (451
Spock (84