Make type consistent with whats written on line 20 (#688)

Make type consistent with whats written on line 20
This commit is contained in:
Christian Takle 2017-01-30 01:59:41 +07:00 committed by Oleg Grenrus
parent ca2eb0461e
commit cdda7bcf8d

View file

@ -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
}
```