Skip to content

Instantly share code, notes, and snippets.

@jergason
Forked from mrmurphy/gist:935633f8ced0fa3b680a
Last active August 29, 2015 14:11
Show Gist options
  • Save jergason/56fa2d30504c811d3505 to your computer and use it in GitHub Desktop.
Save jergason/56fa2d30504c811d3505 to your computer and use it in GitHub Desktop.
{-# 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