1
1
mirror of https://github.com/srid/ema.git synced 2024-12-01 15:13:36 +03:00
This commit is contained in:
Sridhar Ratnakumar 2021-12-29 08:49:36 -05:00 committed by GitHub
parent 06402ea7f3
commit b3a160e128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ Once you have [model](guide/model.md) and [route](guide/routes.md) types in plac
Using some `MyModel` and the route `Route` shown in the [previous](guide/routes.md) section, we can create an instance as follows:
```haskell
class Ema MyModel Route where
instance Ema MyModel Route where
-- Where to generate this route?
encodeRoute _model = \case
Index -> "index.html"