name:                rest-gen
version:             0.14.2
x-revision: 1
description:         Documentation and client generation from rest definition.
synopsis:            Documentation and client generation from rest definition.
maintainer:          code@silk.co
category:            Web
build-type:          Simple
cabal-version:       >= 1.8
license:             BSD3
license-file:        LICENSE
data-dir:            files

data-files:
  Docs/*.st
  Docs/*.js
  Docs/*.css
  Javascript/base.js
  Ruby/base.rb
extra-source-files:
  CHANGELOG.md
  LICENSE

source-repository head
  type:              git
  location:          https://github.com/silkapp/rest.git

library
  ghc-options:       -Wall
  hs-source-dirs:    src
  exposed-modules:
    Rest.Gen
    Rest.Gen.Base
    Rest.Gen.Base.ActionInfo
    Rest.Gen.Base.ApiTree
    Rest.Gen.Config
    Rest.Gen.Docs
    Rest.Gen.Haskell
    Rest.Gen.JavaScript
    Rest.Gen.Ruby
    Rest.Gen.Types
  other-modules:
    Paths_rest_gen
    Rest.Gen.Base.ActionInfo.Ident
    Rest.Gen.Base.JSON
    Rest.Gen.Base.JSON.Pretty
    Rest.Gen.Base.Link
    Rest.Gen.Base.XML
    Rest.Gen.Utils
  build-depends:
      base >= 4.5 && < 4.8
    , Cabal >= 1.16 && < 1.22
    , HStringTemplate >= 0.6 && < 0.8
    , aeson >= 0.7 && < 0.9
    , blaze-html >= 0.5 && < 0.8
    , code-builder == 0.1.*
    , directory >= 1.1 && < 1.3
    , fclabels >= 1.0.4 && < 2.1
    , filepath >= 1.2 && < 1.4
    , hashable >= 1.1 && < 1.3
    , haskell-src-exts >= 1.15.0 && < 1.16.0
    , hslogger >= 1.1 && < 1.3
    , hxt >= 9.2 && < 9.4
    , json-schema == 0.6.*
    , pretty >= 1.0 && < 1.2
    , process >= 1.0 && < 1.3
    , rest-core == 0.31.*
    , safe >= 0.2 && < 0.4
    , scientific >= 0.3.2 && < 0.4
    , split >= 0.1 && < 0.3
    , tagged >= 0.2 && < 0.8
    , text >= 0.11 && < 1.2
    , uniplate >= 1.6.12 && < 1.7
    , unordered-containers == 0.2.*
    , vector == 0.10.*

test-suite rest-gen-tests
  hs-source-dirs:    tests
  main-is:           Runner.hs
  type:              exitcode-stdio-1.0
  ghc-options:       -Wall
  build-depends:
      base >= 4.5 && < 4.8
    , HUnit == 1.2.*
    , haskell-src-exts >= 1.15.0 && < 1.16.0
    , rest-core == 0.31.*
    , rest-gen
    , test-framework == 0.8.*
    , test-framework-hunit == 0.3.*