cabal-version: 2.2

name:           AlON-diff
version:        0
description:    Please see the README on GitHub at <https://github.com/githubuser/AlON-diff#readme>
homepage:       https://github.com/githubuser/AlON-diff#readme
bug-reports:    https://github.com/githubuser/AlON-diff/issues
author:         Conor Stokes
maintainer:     conor.stokes@burningcandle.io
copyright:      2018 xkcd inc.
license:        BSD-3-Clause
license-file:   LICENSE
build-type:     Simple

extra-source-files:
    README.md
    ChangeLog.md

source-repository head
  type: git
  location: https://github.com/githubuser/AlON-diff

common deps
  default-language: Haskell2010
  autogen-modules: Paths_AlON_diff
  other-modules: Paths_AlON_diff
  build-depends:
      aeson
    , base >=4.7 && <5
    , base16-bytestring
    , base64
    , bytes
    , bytestring
    , containers
    , cryptohash
    , html-entities
    , html-parse
    , memory
    , text
    , word8

library
  import: deps
  hs-source-dirs: src
  exposed-modules:
      ALON.Diff.HTML

executable AlON-diff
  import: deps
  main-is: Main.hs
  hs-source-dirs: differ
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      AlON-diff

executable AlON-diff-chunktree
  import: deps
  main-is: Main.hs
  hs-source-dirs: chunktree
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      AlON-diff

executable AlON-diff-normalizer
  import: deps
  main-is: Main.hs
  hs-source-dirs: normalizer
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      AlON-diff

executable AlON-diff-watcher
  import: deps
  main-is: Main.hs
  other-modules: Paths_AlON_diff
  hs-source-dirs: watcher
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      AlON-diff
    , atomic-primops
    , concurrent-extra
    , directory
    , filepath
    , fsnotify

test-suite AlON-diff-test
  import: deps
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs: test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      AlON-diff
    , HUnit