snap-extras
snap-extras copied to clipboard
A collection of handler, splice and other primitive helpers that are commonly needed in web applications
If we write an instance of a `ToJSON` data type using `writeJSON`, it doesn't handle correctly utf-8 text with contains accented letters. This is an excerpt of an italian text,...
The docs here http://hackage.haskell.org/package/snap-extras are broken due to seemingly a misconfigured dependency. The log of failed attempts are here: http://hackage.haskell.org/package/snap-extras-0.12.2.0/reports/
Added two extra functions, writeJSONWrapped, and writeJSONUnprotected. The original writeJSON is renamed to writeJSONUnprotected writeJSON prefixes with ")]}',\n" which is stripped away by AngularJS by default. writeJSONWrapped can wrap with...
Stylish Haskell appears to have re-ordered a few things and re-indented some of the files I have touched. If you don't like that I can revert all of it and...
Hello Oz, days ago I had the need of writing a rest authenticator (just a fancy name for an handler combinator) to be able to "access" some routes just if...