packages feed

hprotoc-fork-2.0.16: hprotoc-fork.cabal

name:           hprotoc-fork
version:        2.0.16
cabal-version:  >= 1.6
build-type:     Simple
license:        BSD3
license-file:   LICENSE
copyright:      (c) 2008-2012 Christopher Edward Kuklewicz
author:         Christopher Edward Kuklewicz
maintainer:     Stefan Wehr <wehr@cp-med.com>
stability:      Experimental
homepage:       http://darcs.factisresearch.com/pub/protocol-buffers-fork/
package-url:    http://hackage.haskell.org/package/hprotoc-fork
synopsis:       Parse Google Protocol Buffer specifications
description:    Parse language defined at <http://code.google.com/apis/protocolbuffers/docs/proto.html> and general haskell code to implement messages. This is a fork of the hprotoc library at http://hackage.haskell.org/package/hprotoc
category:       Text
Tested-With:    GHC == 7.0.3
extra-source-files: README,
                    google-proto-files/google/protobuf/descriptor.proto,
                    google-proto-files/google/protobuf/plugin.proto

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

Executable hprotoc
  build-depends:   protocol-buffers-fork == 2.0.16,
                   protocol-buffers-descriptor-fork == 2.0.16
  Main-Is:         Text/ProtocolBuffers/ProtoCompile.hs
  Hs-Source-Dirs:  .,
                   protoc-gen-haskell
  build-tools:     alex
  ghc-options:     -O2 -Wall -fspec-constr-count=10
  ghc-prof-options: -O2 -auto-all -prof
  build-depends:   array,
                   binary,
                   bytestring,
                   containers,
                   directory >= 1.0.0.1,
                   filepath >= 1.1.0.0,
                   haskell-src-exts == 1.15.*,
                   mtl,
                   parsec,
--                   parsec < 3,
                   utf8-string

  if flag(small_base)
        build-depends: base == 4.*
  else
        build-depends: base == 3.*

  other-modules:   Paths_hprotoc_fork
                   Text.Google.Protobuf.Compiler
                   Text.Google.Protobuf.Compiler.CodeGeneratorRequest
                   Text.Google.Protobuf.Compiler.CodeGeneratorResponse
                   Text.Google.Protobuf.Compiler.CodeGeneratorResponse.File
                   Text.ProtocolBuffers.ProtoCompile.BreakRecursion
                   Text.ProtocolBuffers.ProtoCompile.Gen
                   Text.ProtocolBuffers.ProtoCompile.Identifiers
                   Text.ProtocolBuffers.ProtoCompile.Instances
                   Text.ProtocolBuffers.ProtoCompile.Lexer
                   Text.ProtocolBuffers.ProtoCompile.MakeReflections
                   Text.ProtocolBuffers.ProtoCompile.Parser
                   Text.ProtocolBuffers.ProtoCompile.Resolve
  extensions:      DeriveDataTypeable,
                   EmptyDataDecls,
                   FlexibleContexts 
                   FlexibleInstances,
                   FunctionalDependencies,
                   GADTs,
                   GeneralizedNewtypeDeriving,
                   MagicHash,
                   MultiParamTypeClasses,
                   PatternGuards,
                   RankNTypes,
                   DoRec,
                   ScopedTypeVariables,
                   TypeSynonymInstances
--                   PatternSignatures

Library
  build-depends:   protocol-buffers-fork == 2.0.16,
                   protocol-buffers-descriptor-fork == 2.0.16
  Hs-Source-Dirs:  .,
                   protoc-gen-haskell
  build-tools:     alex
  ghc-options:     -O2 -Wall -fspec-constr-count=10
  ghc-prof-options: -O2 -auto-all -prof
  build-depends:   array,
                   binary,
                   bytestring,
                   containers,
                   directory >= 1.0.0.1,
                   filepath >= 1.1.0.0,
                   haskell-src-exts == 1.15.*,
                   mtl,
                   parsec,
                   utf8-string

  if flag(small_base)
        build-depends: base == 4.*
  else
        build-depends: base == 3.*

  exposed-modules: Text.ProtocolBuffers.ProtoCompile.Parser
                   Text.ProtocolBuffers.ProtoCompile.Resolve
                   Text.ProtocolBuffers.ProtoCompile.MakeReflections

  other-modules:   Paths_hprotoc_fork
                   Text.Google.Protobuf.Compiler
                   Text.Google.Protobuf.Compiler.CodeGeneratorRequest
                   Text.Google.Protobuf.Compiler.CodeGeneratorResponse
                   Text.Google.Protobuf.Compiler.CodeGeneratorResponse.File
                   Text.ProtocolBuffers.ProtoCompile.BreakRecursion
                   Text.ProtocolBuffers.ProtoCompile.Gen
                   Text.ProtocolBuffers.ProtoCompile.Identifiers
                   Text.ProtocolBuffers.ProtoCompile.Instances
                   Text.ProtocolBuffers.ProtoCompile.Lexer
  extensions:      DeriveDataTypeable,
                   EmptyDataDecls,
                   FlexibleContexts
                   FlexibleInstances,
                   FunctionalDependencies,
                   GADTs,
                   GeneralizedNewtypeDeriving,
                   MagicHash,
                   MultiParamTypeClasses,
                   PatternGuards,
                   RankNTypes,
                   DoRec,
                   ScopedTypeVariables,
                   TypeSynonymInstances