Unofficial fork

root / snaplet-file-dialog.cabal

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name:                snaplet-file-dialog
version:             0.1.1
synopsis:            upload, download, browse, and delete files on a web server in a private file transfer area.
license:             BSD3
license-file:        LICENSE
author:              zerobuzz, Germany
maintainer:          Matthias Fischmann <mf@zerobuzz.net>, Soenke Hahn <sh@zerobuzz.net>
category:            Web
build-type:          Simple
cabal-version:       >=1.8

-- on cabal and data files: http://neilmitchell.blogspot.de/2008/02/adding-data-files-using-cabal.html
-- (there is also more info in the snaplet tutorial, but it's a little brief and may need updating.)

extra-source-files:
    ./TODO
    ./snaplets/heist/templates/userform.tpl
    ./snaplets/heist/templates/new_user.tpl
    ./snaplets/heist/templates/login.tpl
    ./snaplets/heist/templates/index.tpl
    ./snaplets/heist/templates/base.tpl
    ./snaplets/heist/templates/frame.tpl
    ./LICENSE
    ./static/screen.css
    ./.boring

data-dir:
    snaplets/filedialog/

data-files:
    templates/filedialog.tpl
    static/filedialog.js

Flag development
  Description: Whether to build the server in development (interpreted) mode
  Default: False

Library
  exposed-modules:
    Snap.Snaplet.FileDialog

  other-modules:
    Paths_snaplet_file_dialog

  build-depends:
    base ==4.*,
    bytestring ==0.9.* || ==0.10.*,
    containers ==0.4.* || ==0.5.*,
    lens == 3.9.*,
    directory ==1.1.* || ==1.2.*,
    filepath ==1.3.*,
    heist ==0.12.*,
    mtl ==2.*,
    old-locale ==1.0.*,
    process ==1.1.*,
    snap ==0.12.*,
    snap-core ==0.9.*,
    snap-server ==0.9.*,
    string-conversions ==0.2.*,
    text ==0.11.*,
    time ==1.4.*,
    unix ==2.*

  hs-source-dirs:
    src

Executable snaplet-file-dialog
  hs-source-dirs: src
  main-is: Main.hs
  other-modules:
    Site
    Application

  Build-depends:
    base ==4.*,
    bytestring (==0.9.* || ==0.10.*) && >= 0.9.1,
    containers ==0.4.* || ==0.5.*,
    unix,
    old-locale,
    filepath,
    process,
    string-conversions,
    transformers,
    directory,
    lens == 3.9.*,
    heist == 0.12.*,
    MonadCatchIO-transformers >= 0.2.1 && < 0.4,
    mtl >= 2 && < 3,
    snap == 0.12.*,
    snap-core   == 0.9.*,
    snap-loader-static == 0.9.*,
    snap-server == 0.9.*,
    text >= 0.11 && < 0.12,
    time >= 1.1 && < 1.5,
    xmlhtml >= 0.1

  if flag(development)
    build-depends:
      snap-loader-dynamic == 0.9.*
    cpp-options: -DDEVELOPMENT
    ghc-options: -threaded -w
  else
    if impl(ghc >= 6.12.0)
      ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields -O2
                   -fno-warn-orphans -fno-warn-unused-do-bind
    else
      ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields -O2
                   -fno-warn-orphans