packages feed

katt-0.1.0.0: katt.cabal

name:                katt
version:             0.1.0.0
stability:           experimental

synopsis:            Client for the Kattis judge system.
description:         Unofficial CLI client for the Kattis online judge system (currently in BETA).
                     .
                     Written in a git-like fashion, it supports automatic
                     downloading of test cases, easy submissions, and more.
                     .
                     Basically a problem is initialized as follows
                     (creates a directory and downloads any available test cases):
                     .
                     > > katt init hello
                     > > cd hello
                     .
                     Source files, problem names, and language identification is handled 
                     automatically when submitting solutions:
                     .
                     > > vim hello.java
                     > > katt submit
                     > Made submission 4712
                     > Accepted: 1 of 1 test(s) passed
                     .
                     There is also built-in support for problem sessions,
                     which initalizes all problems in the problem list.
                     .
                     Get started by downloading a /.kattisrc/ config from
                     the official site, make sure you have the haskell platform
                     installed, then run /cabal install katt/.
                     .
                     Please note that the beta release is limited to C, C++ and Java.
                     It also only supports running on unix.

homepage:            https://github.com/davnils/katt
bug-reports:         https://github.com/davnils/katt/issues

license:             BSD3
license-file:        LICENSE

author:              David Nilsson
maintainer:          nilsson.dd+code@gmail.com

category:            Utils

build-type:          Simple
cabal-version:       >=1.8


executable katt
  hs-source-dirs:    src
  main-is:           Main.hs
  other-modules:     Init, Upload, Configuration, Utils, SourceHandler
  ghc-options:       -O2 -threaded -Wall

  -- Support building on earlier GHC, at least 7.4.1 and 7.4.2
  if impl(ghc <= 7.4.1)
    build-depends:  
                     regex-posix == 0.95.1
  else
    build-depends:  
                     regex-posix == 0.95.*

  if impl(ghc <= 7.4.2)
    build-depends:  
                     base == 4.5.*,
                     bytestring >= 0.9.2.1,
                     containers >= 0.4.2.1
  else
    build-depends:  
                     base == 4.6.*,
                     bytestring == 0.10.*,
                     containers == 0.5.*
  
  build-depends:     
                     blaze-builder == 0.3.*,
                     ConfigFile == 1.1.*,
                     directory == 1.2.*,
                     errors == 1.4.*,
                     filepath == 1.3.*,
                     http-streams == 0.6.*,
                     HsOpenSSL >= 0.10.3 && < 0.11,
                     io-streams,
                     mtl == 2.1.*,
                     parsec == 3.1.*,
                     unix == 2.6.*,
                     url == 2.1.*,
                     zip-archive == 0.1.*

source-repository head
  type: git
  location: https://github.com/davnils/katt.git