Another Day instance removed

This commit is contained in:
Julian K. Arni 2015-09-23 12:11:14 +02:00
parent afc0f31f91
commit ef3cf9f757

View file

@ -17,11 +17,6 @@ data User = User
, registration_date :: Day
} deriving (Eq, Show, Generic)
-- orphan ToJSON instance for Day. necessary to derive one for User
instance ToJSON Day where
-- display a day in YYYY-mm-dd format
toJSON d = toJSON (showGregorian d)
instance ToJSON User
type UserAPI = "users" :> Get '[JSON] [User]