Safe Haskell | None |
---|---|
Language | Haskell98 |
Happstack.Auth.Core.Profile
- newtype UserId = UserId {}
- succUserId :: UserId -> UserId
- data Profile = Profile {}
- type Profiles = IxSet Profile
- data ProfileState = ProfileState {}
- initialProfileState :: ProfileState
- getProfileState :: Query ProfileState ProfileState
- genUserId :: Update ProfileState UserId
- authIdUserId :: AuthId -> Query ProfileState (Maybe UserId)
- authIdProfiles :: AuthId -> Query ProfileState (Set Profile)
- setAuthIdUserId :: AuthId -> UserId -> Update ProfileState ()
- createNewProfile :: Set AuthId -> Update ProfileState UserId
- newtype AuthIdUserId = AuthIdUserId AuthId
- newtype AuthIdProfiles = AuthIdProfiles AuthId
- data SetAuthIdUserId = SetAuthIdUserId AuthId UserId
- newtype CreateNewProfile = CreateNewProfile (Set AuthId)
- data GenUserId = GenUserId
- data GetProfileState = GetProfileState
- getUserId :: (Alternative m, Happstack m) => AcidState AuthState -> AcidState ProfileState -> m (Maybe UserId)
Documentation
succUserId :: UserId -> UserId Source
data ProfileState Source
Constructors
ProfileState | |
Fields
|
initialProfileState :: ProfileState Source
a reasonable initial ProfileState
getProfileState :: Query ProfileState ProfileState Source
Retrieve the entire ProfileState Warning, this is an admin level function?
authIdUserId :: AuthId -> Query ProfileState (Maybe UserId) Source
authIdProfiles :: AuthId -> Query ProfileState (Set Profile) Source
setAuthIdUserId :: AuthId -> UserId -> Update ProfileState () Source
newtype AuthIdProfiles Source
Constructors
AuthIdProfiles AuthId |
newtype CreateNewProfile Source
Constructors
CreateNewProfile (Set AuthId) |
Constructors
GenUserId |
Instances
data GetProfileState Source
Constructors
GetProfileState |
getUserId :: (Alternative m, Happstack m) => AcidState AuthState -> AcidState ProfileState -> m (Maybe UserId) Source