katt-0.2.0.0: katt.cabal
name: katt
version: 0.2.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.
.
Changes since last release:
.
* Fix issues related to to new keep-alive handling
.
* New test suite
.
* Confirmed working with open kattis (www.kattis.com)
.
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
-- Support building on earlier GHC, at least 7.4.1 and 7.4.2.
-- The current solution does not scale very well since dependencies
-- are listed under each section (lib, exe, test1, test2, ..)
-- see https://github.com/haskell/cabal/issues/417
-- and the related discussion.
library
hs-source-dirs: katt-lib/src
exposed-modules: Utils.Katt.Configuration,
Utils.Katt.Init,
Utils.Katt.SourceHandler,
Utils.Katt.Upload,
Utils.Katt.Utils
ghc-options: -Wall
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.0 && < 2.2,
parsec == 3.1.*,
unix == 2.6.*,
url == 2.1.*,
zip-archive == 0.1.*
executable katt
hs-source-dirs: katt-cli/src
main-is: Main.hs
ghc-options: -O2 -threaded -Wall
if impl(ghc <= 7.4.2)
build-depends:
base == 4.5.*,
bytestring >= 0.9.2.1
else
build-depends:
base == 4.6.*,
bytestring == 0.10.*
build-depends:
http-streams == 0.6.*,
HsOpenSSL >= 0.10.3 && < 0.11,
katt,
mtl >= 2.0 && < 2.2
-- Test-Suite test-katt-init
-- type: exitcode-stdio-1.0
-- hs-source-dirs: katt-tests/src
-- main-is: TestInit.hs
-- ghc-options: -O2 -threaded -Wall
--
-- if impl(ghc <= 7.4.2)
-- build-depends:
-- base == 4.5.*,
-- bytestring >= 0.9.2.1
-- else
-- build-depends:
-- base == 4.6.*,
-- bytestring == 0.10.*
--
-- build-depends:
-- http-streams == 0.6.*,
-- HsOpenSSL >= 0.10.3 && < 0.11,
-- katt,
-- mtl >= 2.0 && < 2.2
Test-Suite test-katt-sourcehandler
type: exitcode-stdio-1.0
hs-source-dirs: katt-tests/src
main-is: TestSourceHandler.hs
ghc-options: -O2 -threaded -Wall
if impl(ghc <= 7.4.2)
build-depends:
base == 4.5.*,
bytestring >= 0.9.2.1
else
build-depends:
base == 4.6.*,
bytestring == 0.10.*
build-depends:
directory == 1.2.*,
http-streams == 0.6.*,
HsOpenSSL >= 0.10.3 && < 0.11,
katt,
mtl >= 2.0 && < 2.2
source-repository head
type: git
location: https://github.com/davnils/katt.git