webgear-core

WebGear is a library to for building composable, type-safe HTTP APIs. See the documentation of WebGear.Core module to get started.


Keywords
mpl, web, Propose Tags, Skip to Readme, Last Documentation, webgear-core-1.2.0.tar.gz, browse, Package description, Package maintainers, rkaippully, edit package information , haskell, rest, web-framework
License
MPL-2.0
Install
cabal install webgear-core-1.2.0

Documentation

WebGear - Build HTTP APIs


  • webgear-core - Hackage
  • webgear-server - Hackage
  • webgear-swagger - Hackage
  • webgear-swagger-ui - Hackage
  • webgear-openapi - Hackage

Build Status


WebGear is a Haskell library for building composable, type-safe HTTP APIs.

This is the main repository of WebGear project. It contains multiple packages:

  • webgear-core: The core library.
  • webgear-server: Serve WebGear applications using wai and warp.
  • webgear-swagger: Generate Swagger 2.0 specifications from WebGear specifications.
  • webgear-swagger-ui: Server to host swagger UI based on WebGear APIs.
  • webgear-openapi: Generate OpenAPI specifications from WebGear specifications.

Examples of WebGear applications can be found at:

Documentation is available at https://haskell-webgear.github.io

Development

Use Nix to start a reproducible development environment:

nix develop

This starts a shell with the default GHC. You can also use a specific GHC version with:

nix develop .#webgear-dev-ghc<GHC-VERSION>

You can use the standard cabal commands in the development shell.

You can build packages using Nix:

nix build \
  .#webgear-core-ghc<GHC-VERSION> \
  .#webgear-server-ghc<GHC-VERSION> \
  .#webgear-swagger-ghc<GHC-VERSION> \
  .#webgear-swagger-ui-ghc<GHC-VERSION> \
  .#webgear-openapi-ghc<GHC-VERSION>