name:                 swagger
version:              0.1
synopsis:             Implementation of swagger data model
author:               Toralf Wittner
maintainer:           Toralf Wittner <tw@dtex.org>
copyright:            (c) 2014 Toralf Wittner
license:              OtherLicense
license-file:         LICENSE
category:             Data
build-type:           Simple
cabal-version:        >= 1.10

description:
    Implementation of Swagger specification version 1.2 as defined in
    <https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md>

source-repository head
    type:             git
    location:         git://github.com/twittner/swagger.git

library
    default-language: Haskell2010
    hs-source-dirs:   src
    ghc-options:      -Wall -O2 -fwarn-tabs
    ghc-prof-options: -prof -auto-all

    exposed-modules:
        Data.Swagger.Build.Api
        Data.Swagger.Build.Authorisation
        Data.Swagger.Build.Resource
        Data.Swagger.Model.Api
        Data.Swagger.Model.Authorisation
        Data.Swagger.Model.Resource

    other-modules:
        Data.Swagger.Build.Util
        Data.Swagger.Model.Util

    build-depends:
          aeson        >= 0.6    && < 0.8
        , base         == 4.*
        , bytestring   == 0.10.*
        , text         >= 0.11   && < 1.2
        , time         == 1.4.*
        , transformers >= 0.3

test-suite tests
    type:             exitcode-stdio-1.0
    default-language: Haskell2010
    main-is:          Main.hs
    hs-source-dirs:   test
    ghc-options:      -threaded -Wall -O2 -fwarn-tabs

    build-depends:
          aeson
        , base
        , bytestring
        , swagger
        , tasty       == 0.8.*
        , tasty-hunit == 0.8.*