packages feed

anki-tools-0.1.0.0: anki-tools.cabal

name:                anki-tools
version:             0.1.0.0
synopsis:            Tools for interacting with Anki database
-- description:
license:             BSD3
license-file:        LICENSE
author:              Al Zohali
maintainer:          zohl@fmap.me
-- copyright:
category:            Database
build-type:          Simple
cabal-version:       >=1.10

source-repository head
  type:     git
  location: https://github.com/zohl/anki-tools.git

flag dev
  description:        Turn on development settings.
  manual:             True
  default:            False

library
  exposed-modules:
    Anki.Tools
    Anki.Collection
    Anki.Common
    Anki.Model
    Anki.Deck
    Anki.Note
    Anki.Card
    Anki.Misc
    Anki.UserProfile

  build-depends: base >=4.8 && < 5.0
               , aeson
               , bytestring
               , data-default
               , directory
               , exceptions
               , filepath
               , mtl
               , scientific
               , sqlite-simple
               , time
               , text
               , unordered-containers

  hs-source-dirs:      src
  default-language:    Haskell2010

  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall


executable anki-tools-test
  hs-source-dirs:     test
  main-is:            Main.hs
  build-depends: base >= 4.7 && < 5.0
               , anki-tools
               , data-default

  default-language:    Haskell2010

  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall