2022-03-30 03:07:37 +03:00
|
|
|
name: okapi
|
|
|
|
version: 0.1.0.0
|
|
|
|
github: "githubuser/okapi"
|
|
|
|
license: BSD3
|
|
|
|
author: "Author name here"
|
|
|
|
maintainer: "example@example.com"
|
|
|
|
copyright: "2022 Author name here"
|
|
|
|
|
|
|
|
extra-source-files:
|
|
|
|
- README.md
|
|
|
|
- ChangeLog.md
|
|
|
|
|
|
|
|
# Metadata used when publishing your package
|
|
|
|
# synopsis: Short description of your package
|
|
|
|
# category: Web
|
|
|
|
|
|
|
|
# To avoid duplicated efforts in documentation and dealing with the
|
|
|
|
# complications of embedding Haddock markup inside cabal files, it is
|
|
|
|
# common to point users to the README.md file.
|
|
|
|
description: Please see the README on GitHub at <https://github.com/githubuser/okapi#readme>
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
- base >= 4.7 && < 5
|
|
|
|
- aeson
|
|
|
|
- base64
|
|
|
|
- bytestring
|
|
|
|
- http-api-data
|
|
|
|
- http-types
|
2022-04-13 02:26:59 +03:00
|
|
|
- lucid
|
2022-03-30 03:07:37 +03:00
|
|
|
- mmorph
|
|
|
|
- mtl
|
|
|
|
- random
|
|
|
|
- wai
|
|
|
|
- warp
|
|
|
|
- warp-tls
|
|
|
|
- text
|
|
|
|
- transformers
|
2022-04-13 02:22:36 +03:00
|
|
|
- vault
|
2022-03-30 03:07:37 +03:00
|
|
|
|
|
|
|
library:
|
|
|
|
source-dirs: src
|
|
|
|
|
|
|
|
executables:
|
2022-03-30 04:36:29 +03:00
|
|
|
realworld-exe:
|
2022-03-30 03:07:37 +03:00
|
|
|
main: Main.hs
|
2022-03-30 04:36:29 +03:00
|
|
|
source-dirs: examples/realworld
|
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
|
|
|
- -rtsopts
|
|
|
|
- -with-rtsopts=-N
|
|
|
|
dependencies:
|
|
|
|
- okapi
|
|
|
|
- containers
|
|
|
|
- hasql
|
|
|
|
- hasql-th
|
|
|
|
- jwt
|
|
|
|
- parser-combinators
|
|
|
|
- time
|
|
|
|
- vector
|
|
|
|
- profunctors
|
|
|
|
calc-exe:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/calc
|
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
|
|
|
- -rtsopts
|
|
|
|
- -with-rtsopts=-N
|
|
|
|
dependencies:
|
|
|
|
- okapi
|
2022-04-17 12:51:05 +03:00
|
|
|
calc-fish-exe:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/calc-fish
|
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
|
|
|
- -rtsopts
|
|
|
|
- -with-rtsopts=-N
|
|
|
|
dependencies:
|
|
|
|
- okapi
|
2022-03-31 02:09:18 +03:00
|
|
|
calc-no-do-exe:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/calc-no-do
|
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
|
|
|
- -rtsopts
|
|
|
|
- -with-rtsopts=-N
|
|
|
|
dependencies:
|
|
|
|
- okapi
|
|
|
|
- parser-combinators
|
2022-03-30 04:36:29 +03:00
|
|
|
todo-exe:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/todo
|
2022-03-30 03:07:37 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
|
|
|
- -rtsopts
|
|
|
|
- -with-rtsopts=-N
|
|
|
|
dependencies:
|
|
|
|
- okapi
|
2022-03-30 13:45:29 +03:00
|
|
|
servant-exe:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/servant
|
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
|
|
|
- -rtsopts
|
|
|
|
- -with-rtsopts=-N
|
|
|
|
dependencies:
|
|
|
|
- okapi
|
|
|
|
- lucid
|
|
|
|
- parser-combinators
|
|
|
|
- servant
|
|
|
|
- servant-lucid
|
|
|
|
- servant-server
|
2022-03-30 03:07:37 +03:00
|
|
|
|
|
|
|
tests:
|
|
|
|
okapi-test:
|
|
|
|
main: Spec.hs
|
|
|
|
source-dirs: test
|
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
|
|
|
- -rtsopts
|
|
|
|
- -with-rtsopts=-N
|
|
|
|
dependencies:
|
|
|
|
- okapi
|