Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 34848ac43e
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (45 sloc) 1.689 kb
name: snaplet-mongodb-minimalistic
version: 0.0.3
synopsis: Minimalistic MongoDB Snaplet.
description: Minimalistic MongoDB Snaplet.
license: BSD3
license-file: LICENSE
author: Petr Pilař
maintainer: the.palmik+maintainer@gmail.com
build-type: Simple
cabal-version: >= 1.6
homepage: https://github.com/Palmik/snaplet-mongodb-minimalistic
category: Web
Flag development
Description: Whether to build the server in development (interpreted) mode
Default: False
Library
hs-source-dirs: src
Exposed-modules:
Snap.Snaplet.MongoDB,
Snap.Snaplet.MongoDB.Core,
Snap.Snaplet.MongoDB.Functions,
Snap.Snaplet.MongoDB.Functions.S,
Snap.Snaplet.MongoDB.Functions.M
Build-depends:
base >= 4 && < 5,
mtl >= 2 && < 3,
snap == 0.7.*,
snap-core == 0.7.*,
text >= 0.11 && < 0.12,
mongoDB >= 1.1.1 && < 1.2.0
if flag(development)
cpp-options: -DDEVELOPMENT
-- In development mode, speed is already going to suffer, so skip
-- the fancy optimization flags. Additionally, disable all
-- warnings. The hint library doesn't give an option to execute
-- compiled code when there were also warnings, so disabling
-- warnings allows quicker workflow.
ghc-options: -w
else
if impl(ghc >= 6.12.0)
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
-fno-warn-orphans -fno-warn-unused-do-bind
else
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
-fno-warn-orphans
Jump to Line
Something went wrong with that request. Please try again.