packages feed

javasf-0.1.0: javasf.cabal

name:               javasf
version:            0.1.0
license:            BSD3
license-file:       etc/LICENCE
author:             Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ>
maintainer:         Tony Morris
copyright:          Copyright (C) 2009-2014 Tony Morris
synopsis:           A utility to print the SourceFile attribute of one or more Java class files.
category:           Development
homepage:           https://github.com/tonymorris/javasf
bug-reports:        https://github.com/tonymorris/javasf/issues
cabal-version:      >= 1.10
build-type:         Custom
description:
  Installs a javasf executable to print the @SourceFile@ attribute of one or more Java class files.
  .
  For example:
  .
  @
    \> javasf ThisClass.class ThatClass.class

    ThisClass.java

    ThatClass.java
  @
  .
  Java VM Specification 4.7.7 The @SourceFile@ Attribute
  .
  <http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#79868>

source-repository   head
  type:             git
  location:         git@github.com:tonymorris/javasf.git

flag                small_base
  description:      Choose the new, split-up base package.


executable javasf
  default-language:
                    Haskell2010

  hs-source-dirs:
                    src

  main-is:
                    Main.hs

  build-depends:
                    base < 5 && >= 3
                    , language-java-classfile >= 0.1
                    , binary >= 0.5 
                    , bytestring >= 0.9 

  ghc-options:
                    -Wall

  default-extensions:
                    NoImplicitPrelude

  other-modules:
                    Language.Java.Javasf

test-suite doctests
  type:
                    exitcode-stdio-1.0

  main-is:
                    doctests.hs

  default-language:
                    Haskell2010

  build-depends:
                    base < 5 && >= 3,
                    doctest >= 0.9.7,
                    filepath >= 1.3,
                    directory >= 1.1,
                    QuickCheck >= 2.0

  ghc-options:
                    -Wall
                    -threaded

  hs-source-dirs:
                    test