-
-
Save jergason/56fa2d30504c811d3505 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveGeneric #} | |
data User = User { | |
id :: String, | |
email :: String, | |
hash :: String, | |
institutionId :: String | |
} deriving (Show, Generic) | |
data UserPrintable = UserPrintable { | |
email :: String, | |
id :: String, | |
institutionId :: String | |
} deriving (Generic) | |
data UserCreatable = UserCreatable { | |
email :: String, | |
hash :: String, | |
institutionId :: String | |
} deriving (Generic) | |
data UserFromRequest = UserFromRequest { | |
email :: String, | |
institutionId :: String, | |
password :: String | |
} deriving (Generic) | |
-- UGHHHHHHHHHHH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment