Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Just minor changes to formatting and a small correction.

#23
  • Loading branch information
johnchildren authored Jul 16, 2017
1 parent d398b58 commit f1f96da
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Generics do the rest:
...

data Post = Post {
{ postId :: DBKey
postId :: DBKey
, postTitle :: Text
, postBody :: Text
} deriving (Generic)
Expand Down Expand Up @@ -101,11 +101,13 @@ However, for common cases, where a `Model` is a record, PostgreSQL-ORM
cases, the a model definition might look like:

```haskell
data User = User { userId :: DBKey
, userFirstName :: String
, userLastName :: String
, userAge :: Integer }
deriving (Generic)
data User = User {
userId :: DBKey
, userFirstName :: String
, userLastName :: String
, userAge :: Integer
} deriving (Generic)


instance Model User
```
Expand Down

0 comments on commit f1f96da

Please sign in to comment.