2010-09-10 02:54:34 +04:00
|
|
|
name: hledger-web
|
2014-05-04 04:18:12 +04:00
|
|
|
version: 0.23.98
|
2014-05-01 19:20:05 +04:00
|
|
|
stability: stable
|
2010-09-10 02:54:34 +04:00
|
|
|
category: Finance
|
2011-04-19 04:50:47 +04:00
|
|
|
synopsis: A web interface for the hledger accounting tool.
|
2010-09-10 02:54:34 +04:00
|
|
|
description:
|
2011-09-02 04:28:27 +04:00
|
|
|
hledger is a library and set of user tools for working
|
|
|
|
with financial data (or anything that can be tracked in a
|
|
|
|
double-entry accounting ledger.) It is a haskell port and
|
|
|
|
friendly fork of John Wiegley's Ledger. hledger provides
|
|
|
|
command-line, curses and web interfaces, and aims to be a
|
|
|
|
reliable, practical tool for daily use.
|
2011-04-19 04:50:47 +04:00
|
|
|
|
2010-09-10 02:54:34 +04:00
|
|
|
license: GPL
|
|
|
|
license-file: LICENSE
|
|
|
|
author: Simon Michael <simon@joyful.com>
|
2010-09-11 05:47:46 +04:00
|
|
|
maintainer: Simon Michael <simon@joyful.com>
|
2010-09-10 02:54:34 +04:00
|
|
|
homepage: http://hledger.org
|
2013-05-03 17:46:23 +04:00
|
|
|
bug-reports: http://hledger.org/bugs
|
2014-04-19 23:16:14 +04:00
|
|
|
tested-with: GHC==7.4.2, GHC==7.6.3, GHC==7.8.2
|
2012-11-15 21:48:48 +04:00
|
|
|
cabal-version: >= 1.8
|
2010-09-10 02:54:34 +04:00
|
|
|
build-type: Simple
|
|
|
|
extra-tmp-files:
|
|
|
|
extra-source-files:
|
2012-11-16 21:08:54 +04:00
|
|
|
messages/en.msg
|
|
|
|
config/routes
|
2014-05-23 20:46:11 +04:00
|
|
|
static/css/bootstrap-theme.css
|
|
|
|
static/css/bootstrap-theme.css.map
|
|
|
|
static/css/bootstrap-theme.min.css
|
2013-01-11 18:49:28 +04:00
|
|
|
static/css/bootstrap.css
|
2014-05-23 20:46:11 +04:00
|
|
|
static/css/bootstrap.css.map
|
|
|
|
static/css/bootstrap.min.css
|
|
|
|
static/fonts/glyphicons-halflings-regular.eot
|
|
|
|
static/fonts/glyphicons-halflings-regular.svg
|
|
|
|
static/fonts/glyphicons-halflings-regular.ttf
|
|
|
|
static/fonts/glyphicons-halflings-regular.woff
|
|
|
|
static/js/bootstrap.js
|
|
|
|
static/js/bootstrap.min.js
|
2014-05-23 21:20:20 +04:00
|
|
|
static/js/excanvas.js
|
|
|
|
static/js/excanvas.min.js
|
|
|
|
static/js/jquery.flot.js
|
|
|
|
static/js/jquery.flot.min.js
|
2014-05-23 20:46:11 +04:00
|
|
|
static/js/jquery.min.js
|
2014-05-23 21:20:20 +04:00
|
|
|
static/js/jquery.url.js
|
2014-05-23 20:46:11 +04:00
|
|
|
static/hledger.css
|
2013-01-11 18:49:28 +04:00
|
|
|
static/hledger.js
|
2014-05-23 20:46:11 +04:00
|
|
|
static/select2-spinner.gif
|
|
|
|
static/select2.css
|
|
|
|
static/select2.js
|
|
|
|
static/select2.min.js
|
|
|
|
static/select2.png
|
2013-01-24 21:07:21 +04:00
|
|
|
templates/default-layout.hamlet
|
|
|
|
templates/default-layout-wrapper.hamlet
|
|
|
|
templates/homepage.hamlet
|
|
|
|
templates/homepage.julius
|
|
|
|
templates/homepage.lucius
|
|
|
|
templates/normalize.lucius
|
2014-04-09 02:52:37 +04:00
|
|
|
CHANGES
|
2010-09-10 02:54:34 +04:00
|
|
|
|
|
|
|
source-repository head
|
2013-05-15 02:36:44 +04:00
|
|
|
type: git
|
|
|
|
location: https://github.com/simonmichael/hledger
|
2011-10-05 03:02:57 +04:00
|
|
|
|
|
|
|
flag threaded
|
2012-03-05 11:52:36 +04:00
|
|
|
Description: Build with support for multithreaded execution.
|
2011-09-14 06:51:31 +04:00
|
|
|
Default: True
|
2010-09-11 05:47:46 +04:00
|
|
|
|
2013-04-19 23:40:29 +04:00
|
|
|
flag blaze_html_0_4
|
2013-05-15 02:36:44 +04:00
|
|
|
description: Use the older 0.4 version of blaze-html. No longer well tested.
|
2013-04-19 23:40:29 +04:00
|
|
|
default: False
|
2012-11-15 21:48:48 +04:00
|
|
|
|
2012-03-05 11:52:36 +04:00
|
|
|
flag dev
|
|
|
|
Description: Turn on development settings, like auto-reload templates.
|
|
|
|
Default: False
|
|
|
|
|
|
|
|
flag library-only
|
|
|
|
Description: Build for use with "yesod devel"
|
2011-05-24 08:27:37 +04:00
|
|
|
Default: False
|
|
|
|
|
2012-03-05 11:52:36 +04:00
|
|
|
library
|
2014-05-04 04:18:12 +04:00
|
|
|
cpp-options: -DVERSION="0.23.98"
|
2013-05-15 02:36:44 +04:00
|
|
|
if flag(dev) || flag(library-only)
|
|
|
|
cpp-options: -DDEVELOPMENT
|
|
|
|
|
|
|
|
ghc-options: -Wall -fno-warn-unused-do-bind
|
|
|
|
|
2013-06-05 05:23:55 +04:00
|
|
|
extensions:
|
2013-05-15 02:36:44 +04:00
|
|
|
CPP
|
|
|
|
MultiParamTypeClasses
|
2013-06-05 05:23:55 +04:00
|
|
|
NoImplicitPrelude
|
|
|
|
OverloadedStrings
|
|
|
|
QuasiQuotes
|
2013-05-15 02:36:44 +04:00
|
|
|
RecordWildCards
|
2013-06-05 05:23:55 +04:00
|
|
|
TemplateHaskell
|
|
|
|
TypeFamilies
|
|
|
|
-- seem to not be needed at present:
|
|
|
|
-- GADTs
|
|
|
|
-- GeneralizedNewtypeDeriving
|
|
|
|
-- FlexibleContexts
|
|
|
|
-- EmptyDataDecls
|
|
|
|
-- NoMonomorphismRestriction
|
2012-03-05 11:52:36 +04:00
|
|
|
|
2013-05-15 02:36:44 +04:00
|
|
|
hs-source-dirs: . app
|
|
|
|
exposed-modules: Application
|
2012-11-15 21:48:48 +04:00
|
|
|
Foundation
|
|
|
|
Import
|
|
|
|
Settings
|
|
|
|
Settings.StaticFiles
|
|
|
|
Settings.Development
|
2012-11-20 06:23:23 +04:00
|
|
|
Handler.Common
|
|
|
|
Handler.JournalEditR
|
|
|
|
Handler.JournalEntriesR
|
|
|
|
Handler.JournalR
|
|
|
|
Handler.Post
|
|
|
|
Handler.RegisterR
|
|
|
|
Handler.RootR
|
2014-06-13 03:14:41 +04:00
|
|
|
Handler.SidebarR
|
2012-11-20 06:23:23 +04:00
|
|
|
Handler.Utils
|
2012-03-05 11:52:36 +04:00
|
|
|
other-modules:
|
2013-05-15 02:36:44 +04:00
|
|
|
Hledger.Web
|
|
|
|
Hledger.Web.Main
|
|
|
|
Hledger.Web.Options
|
2014-05-25 00:36:15 +04:00
|
|
|
-- Setup -- stops yesod devel complaining, requires build-depends: Cabal
|
2013-05-15 02:36:44 +04:00
|
|
|
build-depends:
|
2014-05-04 04:18:12 +04:00
|
|
|
hledger == 0.23.98
|
|
|
|
, hledger-lib == 0.23.98
|
2013-05-15 02:36:44 +04:00
|
|
|
, base >= 4 && < 5
|
|
|
|
, bytestring
|
|
|
|
, clientsession
|
|
|
|
, cmdargs >= 0.10 && < 0.11
|
|
|
|
, data-default
|
|
|
|
, directory
|
|
|
|
, filepath
|
|
|
|
, hjsmin
|
|
|
|
, http-conduit
|
2014-04-15 08:24:32 +04:00
|
|
|
, http-client >= 0.2 && < 0.4
|
2013-05-15 02:36:44 +04:00
|
|
|
, HUnit
|
|
|
|
, network-conduit
|
2014-04-17 18:54:30 +04:00
|
|
|
, conduit-extra
|
2013-05-15 02:36:44 +04:00
|
|
|
, old-locale
|
|
|
|
, parsec
|
|
|
|
, regexpr >= 0.5.1
|
|
|
|
, safe >= 0.2
|
2014-04-19 23:15:20 +04:00
|
|
|
-- http://www.yesodweb.com/blog/2014/04/consolidation-progress
|
|
|
|
-- in order to support both the old and new versions of shakespeare,
|
|
|
|
-- you just need to ensure that you have both the shakespeare and
|
|
|
|
-- deprecated packages listed in your cabal file. In other words, if
|
|
|
|
-- previously you depended on hamlet, now you should depend on hamlet
|
|
|
|
-- and shakespeare. When you're ready to drop backwards compatibility,
|
|
|
|
-- simply put a lower bound of >= 2.0 on shakespeare and remove the
|
|
|
|
-- deprecated packages.
|
|
|
|
, hamlet
|
|
|
|
, shakespeare-text >= 1.0 && < 1.2
|
|
|
|
, shakespeare >= 1.0 && < 2.1
|
2013-05-15 02:36:44 +04:00
|
|
|
, template-haskell
|
|
|
|
, text
|
|
|
|
, time
|
|
|
|
, transformers
|
|
|
|
, wai
|
|
|
|
, wai-extra
|
2014-06-22 07:36:46 +04:00
|
|
|
, wai-handler-launch >= 1.3 && < 3.1
|
|
|
|
, warp >= 1.3 && < 3.1
|
2013-05-15 02:36:44 +04:00
|
|
|
, yaml
|
2013-11-02 22:50:29 +04:00
|
|
|
, yesod >= 1.2 && < 1.3
|
2013-05-15 02:36:44 +04:00
|
|
|
, yesod-core
|
|
|
|
, yesod-static
|
2013-04-22 18:34:33 +04:00
|
|
|
, json
|
tools: fancy .ghci for hledger-web
Some configuration for running hledger-web in ghci, and misc. utilities
including hlint/hoogle/hayoo and a not-yet-working yesod devel-like
reloader from a recent reddit thread. (If enabling these, also uncomment
the required libs in hledger-web.cabal). Although it's not yet
automated, we can now test hledger-web changes without relinking:
>>> :serve
Starting web app on port 3000 with base url http://localhost:3000
Press ctrl-c to quit
C-c C-cInterrupted.
>>> :r
Ok, modules loaded: Settings, Main, Hledger.Web.Main, Application, Hledger.Web.Options, Settings.Development, Import, Handler.RootR, Handler.JournalR, Handler.RegisterR, Handler.SidebarR, Handler.Common, Handler.Utils, Foundation, Settings.StaticFiles, Handler.Post.
>>> :serve
Starting web app on port 3000 with base url http://localhost:3000
2014-07-06 21:38:41 +04:00
|
|
|
-- required by extra ghci utilities:
|
|
|
|
-- , fsnotify
|
|
|
|
-- , hsdev
|
|
|
|
-- , mtl
|
2013-04-22 18:34:33 +04:00
|
|
|
|
2013-05-15 02:36:44 +04:00
|
|
|
if flag(blaze_html_0_4)
|
|
|
|
cpp-options: -DBLAZE_HTML_0_4
|
|
|
|
build-depends:
|
|
|
|
blaze-html >= 0.4 && < 0.5
|
|
|
|
else
|
|
|
|
build-depends:
|
2014-01-27 21:06:32 +04:00
|
|
|
blaze-html >= 0.5 && < 0.8
|
2013-05-15 02:36:44 +04:00
|
|
|
, blaze-markup >= 0.5.1 && < 0.7
|
2011-05-24 08:27:37 +04:00
|
|
|
|
2012-11-15 21:48:48 +04:00
|
|
|
|
2013-05-15 02:36:44 +04:00
|
|
|
executable hledger-web
|
|
|
|
if flag(library-only)
|
|
|
|
Buildable: False
|
|
|
|
|
2014-05-04 04:18:12 +04:00
|
|
|
cpp-options: -DVERSION="0.23.98"
|
2013-05-15 02:36:44 +04:00
|
|
|
if flag(dev)
|
2012-11-15 21:48:48 +04:00
|
|
|
cpp-options: -DDEVELOPMENT
|
|
|
|
|
2013-05-15 02:36:44 +04:00
|
|
|
ghc-options: -Wall -fno-warn-unused-do-bind
|
|
|
|
if flag(threaded)
|
|
|
|
ghc-options: -threaded
|
|
|
|
if flag(dev)
|
|
|
|
ghc-options: -O0
|
|
|
|
|
2013-06-05 05:23:55 +04:00
|
|
|
extensions:
|
2012-03-05 11:52:36 +04:00
|
|
|
CPP
|
|
|
|
MultiParamTypeClasses
|
2013-06-05 05:23:55 +04:00
|
|
|
NoImplicitPrelude
|
|
|
|
OverloadedStrings
|
|
|
|
QuasiQuotes
|
2012-11-20 06:23:23 +04:00
|
|
|
RecordWildCards
|
2013-06-05 05:23:55 +04:00
|
|
|
TemplateHaskell
|
|
|
|
TypeFamilies
|
2012-11-15 21:48:48 +04:00
|
|
|
|
2013-05-15 02:36:44 +04:00
|
|
|
hs-source-dirs: . app
|
|
|
|
main-is: main.hs
|
|
|
|
other-modules:
|
|
|
|
Application
|
|
|
|
Foundation
|
|
|
|
Import
|
|
|
|
Settings
|
|
|
|
Settings.StaticFiles
|
|
|
|
Settings.Development
|
|
|
|
Handler.Common
|
|
|
|
Handler.JournalEditR
|
|
|
|
Handler.JournalEntriesR
|
|
|
|
Handler.JournalR
|
|
|
|
Handler.Post
|
|
|
|
Handler.RegisterR
|
|
|
|
Handler.RootR
|
2014-06-13 03:14:41 +04:00
|
|
|
Handler.SidebarR
|
2013-05-15 02:36:44 +04:00
|
|
|
Handler.Utils
|
|
|
|
Hledger.Web
|
|
|
|
Hledger.Web.Main
|
|
|
|
Hledger.Web.Options
|
2012-11-15 21:48:48 +04:00
|
|
|
|
2013-05-15 02:36:44 +04:00
|
|
|
build-depends:
|
2014-05-04 04:18:12 +04:00
|
|
|
hledger == 0.23.98
|
|
|
|
, hledger-lib == 0.23.98
|
2013-05-15 02:36:44 +04:00
|
|
|
, base >= 4 && < 5
|
|
|
|
, bytestring
|
|
|
|
, clientsession
|
|
|
|
, cmdargs >= 0.10 && < 0.11
|
|
|
|
, data-default
|
2012-11-15 21:48:48 +04:00
|
|
|
, directory
|
|
|
|
, filepath
|
2013-05-15 02:36:44 +04:00
|
|
|
, hjsmin
|
|
|
|
, http-conduit
|
2014-04-15 08:24:32 +04:00
|
|
|
, http-client >= 0.2 && < 0.4
|
2012-11-15 21:48:48 +04:00
|
|
|
, HUnit
|
|
|
|
, network-conduit
|
2014-04-17 18:54:30 +04:00
|
|
|
, conduit-extra
|
2012-11-15 21:48:48 +04:00
|
|
|
, old-locale
|
|
|
|
, parsec
|
2013-05-15 02:36:44 +04:00
|
|
|
, regexpr >= 0.5.1
|
|
|
|
, safe >= 0.2
|
2014-04-19 23:15:20 +04:00
|
|
|
, hamlet
|
|
|
|
, shakespeare-text >= 1.0 && < 1.2
|
|
|
|
, shakespeare >= 1.0 && < 2.1
|
2013-05-15 02:36:44 +04:00
|
|
|
, template-haskell
|
|
|
|
, text
|
2012-11-15 21:48:48 +04:00
|
|
|
, time
|
|
|
|
, transformers
|
|
|
|
, wai
|
|
|
|
, wai-extra
|
2014-06-22 07:36:46 +04:00
|
|
|
, wai-handler-launch >= 1.3 && < 3.1
|
|
|
|
, warp >= 1.3 && < 3.1
|
2012-11-15 21:48:48 +04:00
|
|
|
, yaml
|
2013-11-02 22:50:29 +04:00
|
|
|
, yesod >= 1.2 && < 1.3
|
2013-05-15 02:36:44 +04:00
|
|
|
, yesod-core
|
|
|
|
, yesod-static
|
2013-04-22 18:34:33 +04:00
|
|
|
, json
|
tools: fancy .ghci for hledger-web
Some configuration for running hledger-web in ghci, and misc. utilities
including hlint/hoogle/hayoo and a not-yet-working yesod devel-like
reloader from a recent reddit thread. (If enabling these, also uncomment
the required libs in hledger-web.cabal). Although it's not yet
automated, we can now test hledger-web changes without relinking:
>>> :serve
Starting web app on port 3000 with base url http://localhost:3000
Press ctrl-c to quit
C-c C-cInterrupted.
>>> :r
Ok, modules loaded: Settings, Main, Hledger.Web.Main, Application, Hledger.Web.Options, Settings.Development, Import, Handler.RootR, Handler.JournalR, Handler.RegisterR, Handler.SidebarR, Handler.Common, Handler.Utils, Foundation, Settings.StaticFiles, Handler.Post.
>>> :serve
Starting web app on port 3000 with base url http://localhost:3000
2014-07-06 21:38:41 +04:00
|
|
|
-- required by extra ghci utilities:
|
|
|
|
-- , fsnotify
|
|
|
|
-- , hsdev
|
|
|
|
-- , mtl
|
2013-05-15 02:36:44 +04:00
|
|
|
|
|
|
|
if flag(blaze_html_0_4)
|
|
|
|
cpp-options: -DBLAZE_HTML_0_4
|
|
|
|
build-depends:
|
|
|
|
blaze-html >= 0.4 && < 0.5
|
|
|
|
else
|
|
|
|
build-depends:
|
2014-01-27 21:06:32 +04:00
|
|
|
blaze-html >= 0.5 && < 0.8
|
2013-04-19 23:40:29 +04:00
|
|
|
, blaze-markup >= 0.5.1 && < 0.7
|
2012-11-15 21:48:48 +04:00
|
|
|
|
2013-05-15 02:36:44 +04:00
|
|
|
test-suite test
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
ghc-options: -Wall
|
|
|
|
hs-source-dirs: tests
|
|
|
|
main-is: main.hs
|
|
|
|
build-depends:
|
|
|
|
hledger-web
|
|
|
|
, base
|
|
|
|
, hspec
|
|
|
|
, yesod >= 1.2 && < 1.3
|
|
|
|
, yesod-test >= 1.2 && < 1.3
|