-
Notifications
You must be signed in to change notification settings - Fork 6
/
papersite.cabal
117 lines (102 loc) · 3.09 KB
/
papersite.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
109
110
111
112
113
114
115
116
117
-- Cabal package for papersite
-- There is a good introduction to writing Cabal files on StackExchange:
-- http://stackoverflow.com/questions/12305970/how-to-make-a-haskell-cabal-project-with-libraryexecutables-that-still-run-with
name: papersite
version: 0.2.0.0
synopsis: Site generation tool for JMLR proceedings.
-- A longer description of the package.
description:
A Hakyll-based static website generation tool that takes
BibTeX descriptions of a conference or workshop proceedings
and generates a collection of MathJax-enabled pages that
can be uploaded to http://jmlr.org/proceedings/ .
-- URL for the project homepage or repository.
homepage: https://github.com/mreid/papersite
license: MIT
license-file: LICENSE
author: Mark Reid
maintainer: [email protected]
category: Web
build-type: Simple
cabal-version: >=1.10
-- Source at GitHub
source-repository head
type: git
location: https://github.com/mreid/papersite
-- Define and export the main modules from src/lib to avoid build-depends repeats
library
default-language: Haskell2010
hs-source-dirs: src/lib
exposed-modules: Site, Paper, Author, Page
build-depends:
base,
binary,
containers,
filepath,
mtl,
network,
parsec,
regex-compat,
text,
utility-ht,
hxt-regex-xmlschema,
---
hakyll ==4.4.3.*,
pandoc,
bibtex,
latex
-- The main executable depends only on the library modules
executable site
default-language: Haskell2010
hs-source-dirs: src/exec
main-is: Main.hs
build-depends: base, papersite
-- The import executable is built as a stand-alone
executable import
hs-source-dirs: src/exec
default-language: Haskell2010
main-is: import.hs
build-depends:
base, directory, filepath, parsec,
bibtex, latex
executable scrape
hs-source-dirs: src/exec
default-language: Haskell2010
main-is: scrape.hs
build-depends:
base, HandsomeSoup, hxt, tagsoup,
bibtex, latex, utility-ht,
hxt-regex-xmlschema, text,
network, HTTP, directory
-- executable scrape-journal
-- hs-source-dirs: src/exec
-- default-language: Haskell2010
-- main-is: scrape-journal.hs
--
-- build-depends:
-- base, HandsomeSoup, hxt, tagsoup,
-- bibtex, latex, utility-ht,
-- hxt-regex-xmlschema, text,
-- network, HTTP, directory
-- The main executable depends only on the library modules
--executable site-journal
-- default-language: Haskell2010
-- hs-source-dirs: src/exec
-- main-is: MainJournal.hs
-- build-depends: base, papersite
executable update
hs-source-dirs: src/exec
default-language: Haskell2010
main-is: update.hs
build-depends:
base, papersite, filepath, directory, parsec, bibtex, hxt
-- Testing
test-suite tests
default-language: Haskell2010
hs-source-dirs: src/test
type: exitcode-stdio-1.0
main-is: TestSite.hs
build-depends:
base, papersite,
test-framework, test-framework-hunit, HUnit,
hakyll