name: rest-example version: 0.2.0.4 synopsis: Example project for rest homepage: http://www.github.com/silkapp/rest license: BSD3 license-file: LICENSE author: Silk B.V. maintainer: code@silk.co copyright: 2014 Silk B.V. category: Web build-type: Simple cabal-version: >=1.10 extra-source-files: CHANGELOG.md LICENSE library default-language: Haskell2010 ghc-options: -Wall hs-source-dirs: example-api exposed-modules: Api Api.Post Api.Post.Comment Api.Test Api.Test.Err2 Api.Test.ReservedName Api.Test.DashedName Api.User ApiTypes Example Type.Comment Type.CreatePost Type.Post Type.PostError Type.User Type.UserComment Type.UserInfo Type.UserPost Type.UserSignupError build-depends: base >= 4.6 && < 4.9 , aeson >= 0.7 && < 0.12 , base-compat >= 0.8 && < 0.10 , bytestring >= 0.9 && < 0.11 , containers >= 0.3 && < 0.6 , generic-aeson == 0.2.* , hxt == 9.3.* , json-schema >= 0.6 && < 0.8 , mtl >= 2.0 && < 2.3 , generic-xmlpickler >= 0.1.0.1 && < 0.2 , rest-core >= 0.39 && < 0.40 , safe >= 0.2 && < 0.4 , transformers >= 0.2 && < 0.6 , transformers-compat >= 0.4 && < 0.6 , stm >= 2.1 && < 2.5 , text >= 0.11 && < 1.3 , time >= 1.1 && < 1.6 , unordered-containers == 0.2.* ------------------------------------------------------------------------------- -- Executables linking against the rest-example library. flag happstack description: Build the happstack executable. default: False manual: True flag wai description: Build the wai executable. default: False manual: True flag snap description: Build the snap executable. default: False manual: True flag gen description: Build client generation executable. default: True manual: True executable rest-example-happstack default-language: Haskell2010 ghc-options: -Wall main-is: Main.hs hs-source-dirs: happstack if flag(happstack) buildable: True build-depends: base >= 4.6 && < 4.9 , base-compat >= 0.8 && < 0.10 , happstack-server >= 7.1 && < 7.5 , mtl >= 2.0 && < 2.3 , rest-example , rest-happstack >= 0.2 && < 0.4 , transformers-compat >= 0.4 && < 0.6 else buildable: False executable rest-example-wai default-language: Haskell2010 ghc-options: -Wall main-is: Main.hs hs-source-dirs: wai if flag(wai) buildable: True build-depends: base >= 4.6 && < 4.9 , base-compat >= 0.8 && < 0.10 , rest-example , rest-wai >= 0.1 && < 0.3 , warp >= 2.1 && < 3.3 else buildable: False executable rest-example-snap default-language: Haskell2010 ghc-options: -Wall main-is: Main.hs hs-source-dirs: snap if flag(snap) buildable: True build-depends: base >= 4.6 && < 4.9 , base-compat >= 0.8 && < 0.10 , mtl >= 2.0 && < 2.3 , rest-core >= 0.39 && < 0.40 , rest-example , rest-snap >= 0.1 && < 0.3 , snap-core == 0.9.* , snap-server == 0.9.* , transformers-compat >= 0.4 && < 0.6 else buildable: False executable rest-example-gen default-language: Haskell2010 ghc-options: -Wall main-is: Main.hs hs-source-dirs: generate if flag(gen) buildable: True build-depends: base >= 4.6 && < 4.9 , base-compat >= 0.8 && < 0.10 , rest-example , rest-gen >= 0.14 && < 0.20 else buildable: False