packages feed

Shpadoinkle-router-0.3.0.1: Shpadoinkle-router.cabal

cabal-version: 2.2
name:          Shpadoinkle-router
version:       0.3.0.1
category:      Web
author:        Isaac Shapira
maintainer:    isaac.shapira@platonic.systems
license:       BSD-3-Clause
license-file:  LICENSE
build-type:    Simple
extra-source-files:
  README.md
synopsis:
  A single page application rounter for Shpadoinkle based on Servant.
description:
  Surjective single page application routing with Servant. Surjectivity
  in this context means routes can be backward compatible, allowing URLs
  to evolve. Since routes are specified as Servant combinators, serving
  these routes from the backend is trivial. For an example of leveraging
  the client-server isomorphism via Servant specification,
  check the servant-crud example.


source-repository head
  type: git
  location: https://gitlab.com/platonic/shpadoinkle.git


library
  exposed-modules:
    Shpadoinkle.Router
    Shpadoinkle.Router.Client
    Shpadoinkle.Router.Server

  hs-source-dirs: .

  ghc-options:
    -Wall
    -Wcompat
    -fwarn-redundant-constraints
    -fwarn-incomplete-uni-patterns
    -fwarn-tabs
    -fwarn-incomplete-record-updates
    -fwarn-identities

  build-depends:
      Shpadoinkle
    , aeson >=1.4.4 && <1.6
    , base >=4.12.0 && <4.16
    , bytestring >=0.10.8 && <0.12
    , compactable >=0.1.2 && <0.2
    , exceptions >=0.10.3 && <0.11
    , ghcjs-dom >=0.9.4 && <0.20
    , http-api-data >=0.4.1 && <0.5
    , http-media
    , jsaddle >=0.9.7 && <0.20
    , lens >=4.17.1 && <5.0
    , network-uri >=2.6.1 && <2.8
    , servant >=0.16 && <0.19
    , servant-rawm
    , text >=1.2.3 && <1.3
    , unliftio >=0.2.12 && <0.3

  if impl(ghcjs)
    build-depends:
        servant-client-js >=0.1 && <0.2
  else
    build-depends:
        Shpadoinkle-backend-static
      , http-types
      , jsaddle-warp
      , servant-client >=0.15.0 && <0.19
      , servant-client-js >=0.1 && <0.2
      , servant-rawm-server
      , servant-server >=0.16 && <0.18
      , wai >=3.2.2 && <3.3
      , wai-app-static >=3.1.6 && <3.2
      , warp >=3.2.28 && <3.4

  default-language: Haskell2010