/ pdf-embeddings.cabal
pdf-embeddings.cabal
 1  cabal-version:      3.0
 2  name:               pdf-embeddings
 3  version:            0.1.0.0
 4  synopsis:           Experimental PDF embedding and retrieval CLI and web server
 5  license:            BSD-3-Clause
 6  license-file:       LICENSE
 7  build-type:         Simple
 8  author:             Arnaud Bailly
 9  maintainer:         arnaud@pankzsoft.com
10  copyright:          2026 Arnaud Bailly
11  extra-source-files:
12    README.md
13  
14  common shared-deps
15      build-depends:
16          base >= 4.14 && < 5,
17          containers >= 0.6,
18          directory >= 1.3,
19          filepath >= 1.4,
20          process >= 1.6,
21          text >= 1.2,
22          bytestring >= 0.10,
23          aeson >= 2.0,
24          http-conduit >= 2.3,
25          http-client >= 0.7,
26          sqlite-simple >= 0.4,
27          direct-sqlite >= 2.3,
28          vector >= 0.12,
29          vector-binary-instances >= 0.2
30  
31  library
32      import:           shared-deps
33      exposed-modules:
34          CLI
35          PDF
36          Chunker
37          Embeddings
38          VectorDB
39          TextNormalize
40          Web
41      build-depends:
42          optparse-applicative >= 0.17,
43          scotty >= 0.12,
44          wai >= 3.2,
45          warp >= 3.3,
46          http-types >= 0.12
47      hs-source-dirs:   src
48      default-language: Haskell2010
49      ghc-options:      -Wall -Werror -O2
50  
51  executable pdf-embeddings
52      import:           shared-deps
53      main-is:          Main.hs
54      build-depends:
55          optparse-applicative >= 0.17,
56          scotty >= 0.12,
57          wai >= 3.2,
58          warp >= 3.3,
59          http-types >= 0.12,
60          pdf-embeddings
61      hs-source-dirs:   app
62      default-language: Haskell2010
63      ghc-options:      -Wall -O2 -threaded -rtsopts
64  
65  test-suite pdf-embeddings-test
66      import:           shared-deps
67      type:             exitcode-stdio-1.0
68      main-is:          Spec.hs
69      other-modules:
70          PDF
71          Chunker
72          Embeddings
73          VectorDB
74          TextNormalize
75          Web
76          WebSpec
77      build-depends:
78          hspec >= 2.7,
79          hspec-wai >= 0.11,
80          temporary >= 1.3,
81          scotty >= 0.12,
82          wai >= 3.2,
83          wai-extra >= 3.1,
84          warp >= 3.3,
85          http-types >= 0.12
86      hs-source-dirs:   test, src
87      default-language: Haskell2010
88      ghc-options:      -Wall -threaded
89  
90  source-repository head
91    type:     git
92    location: https://app.radicle.xyz/nodes/seed.hydra.bzh/rad:z4G3FVTQJChcbGMAUQkSeR5yyuzor