Library for parsing epub document metadata (Haskell)

root / epub-metadata.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
118
119
120
121
122
123
124
125
name:                epub-metadata
version:             4.5
cabal-version:       >= 1.10
build-type:          Simple
license:             BSD3
license-file:        LICENSE
copyright:           2010-2016 Dino Morelli
author:              Dino Morelli
maintainer:          Dino Morelli <dino@ui3.info>
homepage:            http://hub.darcs.net/dino/epub-metadata
synopsis:            Library for parsing epub document metadata
description:         Library for parsing and manipulating epub document metadata. Supports epub versions 2 and 3.

                     This library was constructed by studying the IDPF specifications for epub documents found here <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm> and here <http://www.idpf.org/epub/30/spec/epub30-publications.html>
category:            Codec, Text
tested-with:         GHC >= 8.0.1
extra-source-files:  changelog.md
                     doc/dev/notes
                     doc/hcar/epubmetadata-De.tex
                     README.md
                     stack.yaml
                     testsuite/*.epub
                     testsuite/*.hs
                     testsuite/*.opf
                     testsuite/bookfiles/foo
                     testsuite/bookfiles/mimetype
                     testsuite/bookfiles/content/bar
                     testsuite/Epub2/*.hs
                     testsuite/Epub3/*.hs
                     TODO.md
                     util/gentags.sh
                     util/prefs/boring
                     util/show-opf.hs

source-repository    head
   type:             darcs
   location:         http://hub.darcs.net/dino/epub-metadata

library
   exposed-modules:  Codec.Epub
                     Codec.Epub.Data.Common
                     Codec.Epub.Data.Guide
                     Codec.Epub.Data.Manifest
                     Codec.Epub.Data.Metadata
                     Codec.Epub.Data.Package
                     Codec.Epub.Data.Spine
                     Codec.Epub.Format
                     Codec.Epub.Format.Guide
                     Codec.Epub.Format.Manifest
                     Codec.Epub.Format.Metadata
                     Codec.Epub.Format.Package
                     Codec.Epub.Format.Spine
                     Codec.Epub.Format.Util
                     Codec.Epub.IO
                     Codec.Epub.Parse
                     Codec.Epub.Parse.Guide
                     Codec.Epub.Parse.Manifest
                     Codec.Epub.Parse.Metadata
                     Codec.Epub.Parse.Package
                     Codec.Epub.Parse.Refinements
                     Codec.Epub.Parse.Spine
                     Codec.Epub.Parse.Util
                     Codec.Epub.Util
   build-depends:    base >= 3 && < 5,
                     bytestring,
                     utf8-string,
                     containers,
                     directory,
                     filepath,
                     hxt >= 9,
                     mtl,
                     regex-compat-tdfa,
                     zip-archive
   hs-source-dirs:   src
   ghc-options:      -Wall
   default-language: Haskell2010

test-suite           test-epub-metadata
   type:             exitcode-stdio-1.0
   main-is:          test-main.hs
   build-depends:    base >= 3 && < 5,
                     bytestring,
                     utf8-string,
                     directory,
                     filepath,
                     HUnit,
                     hxt >= 9,
                     mtl,
                     regex-compat-tdfa,
                     zip-archive
   hs-source-dirs:   src testsuite
   other-modules:    Archive
                     Codec.Epub.Data.Common
                     Codec.Epub.Data.Guide
                     Codec.Epub.Data.Manifest
                     Codec.Epub.Data.Metadata
                     Codec.Epub.Data.Package
                     Codec.Epub.Data.Spine
                     Codec.Epub.IO
                     Codec.Epub.Parse
                     Codec.Epub.Parse.Guide
                     Codec.Epub.Parse.Manifest
                     Codec.Epub.Parse.Metadata
                     Codec.Epub.Parse.Package
                     Codec.Epub.Parse.Refinements
                     Codec.Epub.Parse.Spine
                     Codec.Epub.Parse.Util
                     Codec.Epub.Util
                     Epub2.ParseGuide
                     Epub2.ParseMetadata
                     Epub3.ParseMetadata
                     ParseManifest
                     ParsePackage
                     ParseSpine
   ghc-options:      -Wall
   default-language: Haskell2010

executable           epub-metadata-example
   main-is:          epub-metadata-example.hs
   build-depends:    base >= 3 && < 5,
                     epub-metadata,
                     mtl
   hs-source-dirs:   app
   ghc-options:      -Wall
   default-language: Haskell2010