git.iko.soy/typeable/servant
on master help sign in
Make type consistent with whats written on line 20 (#688)

Make type consistent with whats written on line 20

commitcdda7bcf8d6ddc9ab66cd671d7a0911a88186fd4 authorChristian Takle <christian.takle@gmail.com> dateMon 30 Jan 2017, 01:59 (10 years ago) parentca2eb04
1 file changed+4−1
doc/tutorial/ApiType.lhs+4−1
doc/tutorial/ApiType.lhs+4−1
@@ -10,6 +10,7 @@ need to have some language extensions and imports:
1010module ApiType where
1111
1212import Data.Text
13+import Data.Time (UTCTime)
1314import Servant.API
1415```
1516
@@ -34,7 +35,9 @@ data SortBy = Age | Name
3435
3536data User = User {
3637 name :: String,
37− age :: Int
38+ age :: Int,
39+ email :: String,
40+ registration_date :: UTCTime
3841}
3942```
4043