Skip to content

Commit cdda7bc

Browse files
christiantaklephadej
authored andcommitted
Make type consistent with whats written on line 20 (#688)
Make type consistent with whats written on line 20
1 parent ca2eb04 commit cdda7bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/tutorial/ApiType.lhs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ need to have some language extensions and imports:
1010
module ApiType where
1111
1212
import Data.Text
13+
import Data.Time (UTCTime)
1314
import Servant.API
1415
```
1516
@@ -34,7 +35,9 @@ data SortBy = Age | Name
3435

3536
data User = User {
3637
name :: String,
37-
age :: Int
38+
age :: Int,
39+
email :: String,
40+
registration_date :: UTCTime
3841
}
3942
```
4043

0 commit comments

Comments
 (0)