From cdda7bcf8d6ddc9ab66cd671d7a0911a88186fd4 Mon Sep 17 00:00:00 2001 From: Christian Takle Date: Mon, 30 Jan 2017 01:59:41 +0700 Subject: [PATCH] Make type consistent with whats written on line 20 (#688) Make type consistent with whats written on line 20 --- doc/tutorial/ApiType.lhs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/tutorial/ApiType.lhs b/doc/tutorial/ApiType.lhs index 3aa4c844..d43b141d 100644 --- a/doc/tutorial/ApiType.lhs +++ b/doc/tutorial/ApiType.lhs @@ -10,6 +10,7 @@ need to have some language extensions and imports: module ApiType where import Data.Text +import Data.Time (UTCTime) import Servant.API ``` @@ -34,7 +35,9 @@ data SortBy = Age | Name data User = User { name :: String, - age :: Int + age :: Int, + email :: String, + registration_date :: UTCTime } ```