packages feed

elm-websocket-1.0: elm-websocket.cabal

name:                elm-websocket
version:             1.0
synopsis:            Generate ELM code from a Wai websocket application.
description:         Please see README.md
homepage:            http://github.com/rhyskeepence/elm-websocket
license:             BSD3
license-file:        LICENSE
author:              Rhys Keepence
maintainer:          rhyskeepence@gmail.com
copyright:           2017 Rhys Keepence
category:            Web
build-type:          Simple
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  exposed-modules:     Elm.WebSocket
                     , Elm.Export
  build-depends:       base >= 4.7 && < 5
                     , aeson
                     , bytestring
                     , concurrent-extra
                     , containers
                     , directory
                     , formatting
                     , lens
                     , mtl
                     , stm
                     , text
                     , time
                     , wai
                     , wai-websockets
                     , websockets
                     , wl-pprint-text

  ghc-options:         -Wall
  default-language:    Haskell2010
  other-modules:       Elm.WebSocket.Server
                     , Elm.WebSocket.Types
                     , Elm.Export.Common
                     , Elm.Export.Decoder
                     , Elm.Export.Encoder
                     , Elm.Export.File
                     , Elm.Export.Record
                     , Elm.Export.Type
                     , Elm.Export.WebSocketSubscriber

test-suite elm-websocket-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , aeson
                     , concurrent-extra
                     , elm-websocket
                     , hspec
                     , http-types
                     , mtl
                     , network
                     , text
                     , wai
                     , websockets
                     , warp
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall
  default-language:    Haskell2010
  other-modules:       BroadcastSpec
                     , RequestResponseSpec

executable elm-websocket-example
  hs-source-dirs:      example/server/src, example/server/shared
  main-is:             Main.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall
  build-depends:       base
                     , aeson
                     , concurrent-extra
                     , elm-websocket
                     , http-types
                     , scotty
                     , text
                     , wai
                     , wai-middleware-static
                     , warp
  other-modules:       Api
  default-language:    Haskell2010

executable elm-websocket-code-generator
  hs-source-dirs:      example/code-generator, example/server/shared
  main-is:             Main.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall
  build-depends:       base
                     , aeson
                     , concurrent-extra
                     , elm-websocket
                     , http-types
                     , scotty
                     , text
                     , wai
                     , wai-middleware-static
                     , warp
  other-modules:       Api
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/rhyskeepence/elm-websocket