Skip to content

Commit

Permalink
[chore] rename some things
Browse files Browse the repository at this point in the history
  • Loading branch information
MangoIV committed May 20, 2024
1 parent df31b86 commit 23f6c39
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 31 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ shell.nix

# nix
result*
.direnv
.pre-commit-config.yaml

# local versions of things
servant-multipart
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ packages:
doc/cookbook/db-sqlite-simple
doc/cookbook/file-upload
doc/cookbook/generic
doc/cookbook/namedRoutes
doc/cookbook/named-routes
doc/cookbook/hoist-server-with-context
doc/cookbook/https
doc/cookbook/jwt-and-basic-auth
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/generic/Generic.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ level.

If you need nesting because you have different branches in your API tree, you
might want to jump directly to the [Record-based APIs: the nested records
case](../namedRoutes/NamedRoutes.html) cookbook that broaches the subject.
case](../named-routes/NamedRoutes.html) cookbook that broaches the subject.

Shall we begin?

Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ you name it!
structuring-apis/StructuringApis.lhs
generic/Generic.lhs
openapi3/OpenAPI.lhs
namedRoutes/NamedRoutes.lhs
named-routes/NamedRoutes.lhs
https/Https.lhs
db-mysql-basics/MysqlBasics.lhs
db-sqlite-simple/DBConnection.lhs
Expand Down
File renamed without changes.
30 changes: 30 additions & 0 deletions doc/cookbook/named-routes/cookbook-named-routes.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: cookbook-named-routes
version: 0.1
synopsis:
NamedRoutes - Generic servant API implementation cookbook example

homepage: http://docs.servant.dev/
license: BSD3
license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC ==8.6.5 || ==8.8.3 || ==8.10.1

executable cookbook-named-routes
main-is: NamedRoutes.lhs
build-depends:
aeson >=1.2
, base >=4 && <5
, servant
, servant-client
, servant-client-core
, servant-server
, text
, wai >=3.2
, warp >=3.2

default-language: Haskell2010
ghc-options: -Wall -pgmL markdown-unlit
build-tool-depends: markdown-unlit:markdown-unlit
27 changes: 0 additions & 27 deletions doc/cookbook/namedRoutes/namedRoutes.cabal

This file was deleted.

2 changes: 1 addition & 1 deletion doc/cookbook/structuring-apis/StructuringApis.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,4 @@ A simple case is approached in the [Record-based APIs: the simple
case](../generic/Generic.html)
cookbook, which deals with flat APIs where every endpoint is on the same level.
Also, a more complex example with nested record is discussed in [Record-based APIs: the nested
records case](../namedRoutes/NamedRoutes.html) in which we implement an API tree with many branches.
records case](../named-routes/NamedRoutes.html) in which we implement an API tree with many branches.

0 comments on commit 23f6c39

Please sign in to comment.