aboutsummaryrefslogblamecommitdiff
path: root/haskell-code-explorer.cabal
blob: 2d68dfe7e875cee718b8b592ebee064bea3d226b (plain) (tree)
1
2
3
4
5
6
7
8
9
                        



                                                                                      
                                          
                                              
                                                 
                                                    

                                                 










                                                            
                                                






                            
                      




                               
                           



















                                                              
                                            

                                

                          










                                         

                                          





                                                                        
                                                 




                                
                               

                               
                              

                              


                                         




                                    
                            





                                          
                                    
                               





                                         
                               
                         

                               
                                

                               

                              
 
















                               
                                     




                                      
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.org
license:             MIT AND AGPL-3.0-or-later
license-files:       COPYING.expat, 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
                   , connection
                   , 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-client-tls
                   , http-types
                   , http-api-data
                   , fast-logger
                   , monad-logger
                   , optparse-applicative
                   , data-default
                   , pagination
                   , file-embed
                   , mmap
                   , lens
                   , uri-encode
                   , utf8-string
                   , 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