packages feed

api-tools-0.4: api-tools.cabal

Name:                api-tools
Version:             0.4
Synopsis:            DSL for generating API boilerplate and docs
Description:         api-tools provides a compact DSL for describing an API.
                     It uses Template Haskell to generate the
                     corresponding data types and assorted tools for
                     working with it, including Aeson and QuickCheck
                     instances for converting between JSON and the
                     generated types and writing unit tests.
Homepage:            http://github.com/iconnect/api-tools
License:             BSD3
License-file:        LICENSE
Author:              Chris Dornan <chrisd@irisconnect.co.uk> and Adam Gundry <adam@well-typed.com>
Maintainer:          Chris Dornan <chrisd@irisconnect.co.uk> and Adam Gundry <adam@well-typed.com>
Copyright:           (c) Iris Connect 2013-2014
Category:            Network, Web, Cloud, Distributed Computing
Build-type:          Simple

Cabal-version:       >=1.10

Source-Repository head
  Type:              git
  Location:          git://github.com/iconnect/api-tools.git

Source-Repository this
  Type:              git
  Location:          git://github.com/iconnect/api-tools.git
  Tag:               0.4

Library
  Hs-Source-Dirs:    src

  Exposed-modules:
        Data.API.API
        Data.API.API.Gen
        Data.API.Changes
        Data.API.Doc
        Data.API.Doc.Subst
        Data.API.JSON
        Data.API.Markdown
        Data.API.NormalForm
        Data.API.Parse
        Data.API.PP
        Data.API.Tools
        Data.API.Tools.Combinators
        Data.API.Tools.Datatypes
        Data.API.Tools.Enum
        Data.API.Tools.Example
        Data.API.Tools.JSON
        Data.API.Tools.JSONTests
        Data.API.Tools.Lens
        Data.API.Tools.QuickCheck
        Data.API.Tools.SafeCopy
        Data.API.Tools.Traversal
        Data.API.Tutorial
        Data.API.Types
        Data.API.Utils

  Other-modules:
        Data.API.API.DSL
        Data.API.Doc.Call
        Data.API.Doc.Dir
        Data.API.Doc.Types
        Data.API.Scan
        Data.API.TH

  Build-depends:
        Cabal                >= 1.4      && < 2    ,
        QuickCheck           >= 2.5.1    && < 2.8  ,
        aeson                >= 0.6.2    && < 0.7  ,
        aeson-pretty         >= 0.1      && < 0.8  ,
        array                >= 0.4      && < 0.5  ,
        attoparsec           >= 0.10.4   && < 0.12 ,
        base                 >= 4        && < 5    ,
        base64-bytestring    >= 1.0      && < 1.1  ,
        bytestring           >= 0.9      && < 0.11 ,
        case-insensitive     >= 1.0      && < 1.3  ,
        containers           >= 0.5      && < 0.6  ,
        lens                 >= 3.8.7    && < 4    ,
        old-locale           >= 1.0.0.4  && < 1.1  ,
        regex-compat-tdfa    >= 0.95.1   && < 0.96 ,
        safe                 >= 0.3.3    && < 0.4  ,
        safecopy             >= 0.8.1    && < 0.9  ,
        time                 >= 1.4      && < 1.5  ,
        template-haskell     >= 2.7      && < 2.9  ,
        text                 >= 0.11.3   && < 1.2  ,
        unordered-containers >= 0.2.3.0  && < 0.3  ,
        vector               >= 0.10.0.1 && < 0.11


  Build-tools:
        alex,
        happy

  GHC-Options:
        -Wall
        -fwarn-tabs

  Default-Language: Haskell2010


Executable migration-tool
  Hs-Source-Dirs:    main

  Main-is:    Data/API/MigrationTool.hs

  Build-depends:
        api-tools,
        QuickCheck           >= 2.5.1    && < 2.8  ,
        aeson                >= 0.6.2    && < 0.7  ,
        aeson-pretty         >= 0.1      && < 0.8  ,
        array                >= 0.4      && < 0.5  ,
        attoparsec           >= 0.10.4   && < 0.12 ,
        base                 >= 4        && < 5    ,
        base64-bytestring    >= 1.0      && < 1.1  ,
        bytestring           >= 0.9      && < 0.11 ,
        case-insensitive     >= 1.0      && < 1.3  ,
        containers           >= 0.5      && < 0.6  ,
        lens                 >= 3.8.7    && < 4    ,
        old-locale           >= 1.0.0.4  && < 1.1  ,
        regex-compat-tdfa    >= 0.95.1   && < 0.96 ,
        safe                 >= 0.3.3    && < 0.4  ,
        safecopy             >= 0.8.1    && < 0.9  ,
        time                 >= 1.4      && < 1.5  ,
        template-haskell     >= 2.7      && < 2.9  ,
        text                 >= 0.11.3   && < 1.2  ,
        unordered-containers >= 0.2.3.0  && < 0.3  ,
        vector               >= 0.10.0.1 && < 0.11

  GHC-Options:
        -main-is Data.API.MigrationTool
        -Wall
        -fwarn-tabs

  Default-Language: Haskell2010


Test-Suite test-api-tools
  Hs-Source-Dirs:    tests

  Type:       exitcode-stdio-1.0

  Main-is:    Data/API/Test/Main.hs

  Other-modules:
        Data.API.Test.DSL
        Data.API.Test.Gen
        Data.API.Test.JSON
        Data.API.Test.Migration
        Data.API.Test.MigrationData

  Build-depends:
        api-tools,
        Cabal                >= 1.4      && < 2    ,
        QuickCheck           >= 2.5.1    && < 2.8  ,
        aeson                >= 0.6.2    && < 0.7  ,
        aeson-pretty         >= 0.1      && < 0.8  ,
        array                >= 0.4      && < 0.5  ,
        attoparsec           >= 0.10.4   && < 0.12 ,
        base                 >= 4        && < 5    ,
        base64-bytestring    >= 1.0      && < 1.1  ,
        bytestring           >= 0.9      && < 0.11 ,
        case-insensitive     >= 1.0      && < 1.3  ,
        containers           >= 0.5      && < 0.6  ,
        lens                 >= 3.8.7    && < 4    ,
        old-locale           >= 1.0.0.4  && < 1.1  ,
        regex-compat-tdfa    >= 0.95.1   && < 0.96 ,
        safe                 >= 0.3.3    && < 0.4  ,
        safecopy             >= 0.8.1    && < 0.9  ,
        tasty                >= 0.3      && < 0.9  ,
        tasty-hunit          >= 0.2      && < 0.9  ,
        tasty-quickcheck     >= 0.3      && < 0.9  ,
        time                 >= 1.4      && < 1.5  ,
        template-haskell     >= 2.7      && < 2.9  ,
        text                 >= 0.11.3   && < 1.2  ,
        unordered-containers >= 0.2.3.0  && < 0.3  ,
        vector               >= 0.10.0.1 && < 0.11

  GHC-Options:
        -main-is Data.API.Test.Main
        -Wall
        -fwarn-tabs

  Default-Language: Haskell2010