snap -package:snap-core
Top-level package for the Snap Web Framework
This is the top-level package for the official Snap Framework
libraries. It includes:
- The Snaplets API
- Snaplets for sessions, authentication, and templates
To get started, issue the following sequence of commands:
$ cabal install snap snap-templates
$ mkdir myproject
$ cd myproject
$ snap init
If you have trouble or any questions, see our FAQ page
(
http://snapframework.com/faq) or the documentation
(
http://snapframework.com/docs).
Note: since version 1.0, the "snap" executable program for generating
starter projects is provided by the
snap-templates package.
Event source with a single occurrence at time 0. The value of the
event is obtained by sampling the input at that time.
This module provides convenience exports of the modules most commonly
used when developing with the Snap Framework. For documentation about
Snaplets, see
Snap.Snaplet. For the core web server API, see
Snap.Core.
Snap integration for the WebSockets library
Modifies a
PackageDescription by appending a snapshot number
corresponding to the given date.
Modifies a
Version by appending a snapshot number corresponding
to the given date.
Constructs a url relative to the current snaplet.
A web server for the Snap Framework
Snap is a simple and fast web development framework and server written
in Haskell. For more information or to download the latest version,
you can visit the Snap project website at
http://snapframework.com/.
The Snap HTTP server is a high performance web server library written
in Haskell. Together with the
snap-core library upon which it
depends, it provides a clean and efficient Haskell programming
interface to the HTTP protocol.
A short string describing the Snap server version
Take an atomic snapshot of the current state of the virtual file
system.
Appends a stroked border rectangle inside the given
outline.
The four sides of the border can have different widths and colors.
Creates a new
CairoNode and appends it to the current render
node of
snapshot, without changing the current node.
Creates a new render node drawing the color into the
given bounds and appends it to the current render node
of snapshot.
You should try to avoid calling this function if color
is transparent.
Appends a conic gradient node with the given stops to
snapshot.
A convenience method to fill a path with a color.
See
snapshotPushFill if you need to fill a path with more
complex content than a color.
Since: 4.14
Appends an inset shadow into the box given by outline.
Creates render nodes for rendering
layout in the given
foregound
color and appends them to the current node
of
snapshot without changing the current node. The
current theme's foreground color for a widget can be obtained with
widgetGetColor.
Note that if the layout does not produce any visible output, then
nodes may not be added to the
snapshot.
Appends a linear gradient node with the given stops to
snapshot.
Appends node to the current render node of
snapshot, without changing the current node.
If snapshot does not have a current node yet,
node will become the initial node.
Appends an outset shadow node around the box given by
outline.
Appends a radial gradient node with the given stops to
snapshot.
Appends a repeating linear gradient node with the given stops to
snapshot.
Appends a repeating radial gradient node with the given stops to
snapshot.