We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31cc64b commit 26a79d5Copy full SHA for 26a79d5
README.md
@@ -14,13 +14,13 @@ import qualified Servant.ActiveResource as AR
14
15
newtype MyResourceId = MyResourceId Int
16
-- Type for new values or updates to existing values. Usually
17
--- missing an @id@ field.
+-- missing an `id` field.
18
data MyResource = MyResource {...}
19
-- Like MyResource, but returned from the database.
20
data MyStoredResource = MyStoredResource {...}
21
22
-- The exact monad used will depend on your program. Here, we just assume
23
--- Handler from package servant-server.
+-- `Handler` from package servant-server.
24
instance AR.Resource MyResourceId Handler where
25
type ResourceData MyResourceId = MyResource
26
type StoredResourceData MyResourceId = MyStoredResource
0 commit comments