refactor: Simplify query parameter syntax
Use clean string literal syntax:
"users" :? { limit :: Int, offset :: Int }
Instead of verbose:
Path (Lit "users") :? { ... }
All 168 tests passing.
commit14d2697e476fcca302175380b7cdb3995b1edcf6
authorMark <mark.eibes@gmail.com>
dateSun 8 Feb 2026, 01:04 (8 months ago)
parent0947a09
test/Test/ComprehensiveExample.purs+1−1
@@ -27,7 +27,7 @@ type ComprehensiveAPI =
2727
2828 , -- List users with query parameters
2929 listUsers ::
30− Route GET (Path (Lit "users") :? { limit :: Int # Example "10", offset :: Int # Example "0" })
30+ Route GET ("users" :? { limit :: Int # Example "10", offset :: Int # Example "0" })
3131 (Request {})
3232 (ok :: { body :: Array User })
3333