aboutsummaryrefslogtreecommitdiff
path: root/haskell-code-explorer.cabal
blob: f0f6ce419fc2d773c96ac3976df5d5c90c111c48 (plain) (blame)
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
cabal-version:       2.2
name:                haskell-code-explorer
version:             0.1.0.0
synopsis:            Web application for exploring and understanding Haskell codebases
Category:            GHC,Web
description:         Please see README.md
license:             MIT AND AGPL-3.0-or-later
license-files:       LICENSE, COPYING.agpl3
author:              Alexey Kiryushin and Yuchen Pei
maintainer:          alexey.a.kiryushin@gmail.com
build-type:          Simple

library
  default-language: Haskell2010
  exposed-modules: HaskellCodeExplorer.PackageInfo
                 , HaskellCodeExplorer.ModuleInfo
                 , HaskellCodeExplorer.Types
                 , HaskellCodeExplorer.Preprocessor
                 , HaskellCodeExplorer.GhcUtils
                 , HaskellCodeExplorer.AST.RenamedSource
                 , HaskellCodeExplorer.AST.TypecheckedSource
  hs-source-dirs: src
  ghc-options:   -Wall -O2 -funbox-strict-fields
  build-depends: IntervalMap
               , aeson
               , attoparsec
               , base
               , blaze-html
               , deepseq
               , bytestring
               , Cabal
               , cabal-helper
               , cereal
               , containers
               , directory
               , directory-tree
               , exceptions
               , filemanip
               , filepath
               , ghc
               , ghc-paths
               , hashable
               , haddock-library
               , mtl
               , process
               , syb
               , uniplate
               , text
               , unordered-containers
               , vector
               , fast-logger
               , monad-logger
               , extra

executable haskell-code-indexer
  main-is:             Indexer.hs
  ghc-options:        -Wall -rtsopts -O2 -funbox-strict-fields
  other-modules: Paths_haskell_code_explorer
  hs-source-dirs: app
  build-depends:     IntervalMap
                   , aeson
                   , base
                   , bytestring
                   , cereal
                   , directory
                   , filepath
                   , optparse-applicative
                   , text
                   , time
                   , unordered-containers
                   , uri-encode
                   , fast-logger
                   , monad-logger
                   , zlib
                   , haskell-code-explorer
  default-language:    Haskell2010

executable haskell-code-server
  main-is:             Server.hs
  ghc-options:        -Wall -O2 -rtsopts -funbox-strict-fields -threaded
  hs-source-dirs: app,src
  other-modules: HaskellCodeExplorer.Types, Store
  build-depends:     IntervalMap
                   , aeson
                   , base
                   , bytestring
                   , cereal
                   , containers
                   , deepseq
                   , directory
                   , filemanip
                   , filepath
                   , blaze-html
                   , text
                   , unordered-containers
                   , hashable
                   , vector
                   , wai
                   , syb
                   , haddock-library
                   , servant
                   , servant-server
                   , mime-types
                   , mtl
                   , wai-extra
                   , wai-middleware-static
                   , warp
                   , http-types
                   , http-api-data
                   , fast-logger
                   , monad-logger
                   , optparse-applicative
                   , data-default
                   , pagination
                   , file-embed
                   , mmap
                   , lens
                   , uri-encode
                   , lens-aeson
                   , wreq
  if impl(ghc >= 8.4.3)
    build-depends: ghc-compact

test-suite test
  default-language: Haskell2010
  type: exitcode-stdio-1.0
  ghc-options:    -Wall
  hs-source-dirs: test
  main-is:        Main.hs
  build-depends: IntervalMap
               , QuickCheck
               , attoparsec
               , base
               , bytestring
               , containers
               , directory
               , filepath
               , hspec
               , text
               , uniplate
               , unordered-containers
               , monad-logger
               , process
               , vector
               , syb
               , haskell-code-explorer