packages feed

salvia-demo-1.0.0: salvia-demo.cabal

Name:             salvia-demo
Version:          1.0.0
Synopsis:         Demo Salvia servers.
Description:
  This package contains six simple example programs that show how to use the
  Salvia web application framework. The first demo, /salvia-demo/, contains a
  bigger example showing off some of the more advanced features and handler
  running on the default Salvia server implementation. The second demo,
  /salvia-cgi/ show how to switch the Salvia back-end and run a Salvia handler
  in CGI mode. The third example, /salvia-serve/, is a simple file server that
  uses the /c10k-server/ back-end and the /send-file/ package to server static
  files and directories. The other demos illustrate how to use some simple
  aspects of the web framework.

Category:         Network, Web
License:          BSD3
License-file:     LICENSE
Author:           Sebastiaan Visser
Maintainer:       sfvisser@cs.uu.nl
Cabal-version:    >= 1.6
Build-Type:       Simple

Data-Files:       www/data/users.db
                  www/demo.cgi
                  www/index.ccss
                  www/index.html
                  www/login.html
                  www/signup.html

Library
  GHC-Options:      -Wall
  HS-Source-Dirs:   src

  Build-Depends:    base ==4.*,
                    transformers ==0.1.*,
                    monads-fd ==0.0.*,
                    threadmanager ==0.1.*,
                    stm ==2.1.*,
                    c10k ==0.2.0,
                    filestore ==0.3.*,
                    fclabels ==0.4.*,
                    network >= 2.2.1.7 && < 2.3,
                    salvia ==1.0.*,
                    salvia-protocol ==1.0.*,
                    salvia-extras ==1.0.*,
                    salvia-sessions ==1.0.*,
                    salvia-websocket ==1.0.*

Executable          salvia-demo
  Executable:       salvia-demo
  Main-is:          Demo.hs
  GHC-Options:      -threaded -Wall -fno-warn-orphans
  HS-Source-Dirs:   src 

Executable          salvia-serve
  Executable:       salvia-serve
  Main-is:          ServeDemo.hs
  GHC-Options:      -threaded -Wall -fno-warn-orphans
  HS-Source-Dirs:   src 

Executable          salvia.cgi
  Executable:       salvia.cgi
  Main-is:          CgiDemo.hs
  GHC-Options:      -threaded -Wall -fno-warn-orphans
  HS-Source-Dirs:   src 

Executable          salvia-helloworld
  Executable:       salvia-helloworld
  Main-is:          HelloWorld.hs
  GHC-Options:      -threaded -Wall -fno-warn-orphans
  HS-Source-Dirs:   src

Executable          salvia-query
  Executable:       salvia-query
  Main-is:          QueryParams.hs
  GHC-Options:      -threaded -Wall -fno-warn-orphans
  HS-Source-Dirs:   src

Executable          salvia-directories
  Executable:       salvia-directories
  Main-is:          DirectoryHandling.hs
  GHC-Options:      -threaded -Wall -fno-warn-orphans
  HS-Source-Dirs:   src