Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module is for configuration of the user object.
Synopsis
- data User
- makeUser :: Text -> User
- userSetKey :: Maybe Text -> User -> User
- userSetSecondary :: Maybe Text -> User -> User
- userSetIP :: Maybe Text -> User -> User
- userSetCountry :: Maybe Text -> User -> User
- userSetEmail :: Maybe Text -> User -> User
- userSetFirstName :: Maybe Text -> User -> User
- userSetLastName :: Maybe Text -> User -> User
- userSetAvatar :: Maybe Text -> User -> User
- userSetName :: Maybe Text -> User -> User
- userSetAnonymous :: Bool -> User -> User
- userSetCustom :: HashMap Text Value -> User -> User
- userSetPrivateAttributeNames :: Set Text -> User -> User
Documentation
User contains specific attributes of a user of your application
The only mandatory property is the Key, which must uniquely identify each user. For authenticated users, this may be a username or e-mail address. For anonymous users, this could be an IP address or session ID.
userSetPrivateAttributeNames :: Set Text -> User -> User Source #
This contains list of attributes to keep private, whether they appear at the top-level or Custom The attribute "key" is always sent regardless of whether it is in this list, and "custom" cannot be used to eliminate all custom attributes