chore(ldap): move and add more instances

This commit is contained in:
Sarah Vaupel 2024-02-16 02:26:24 +01:00
parent 0c5f4cb430
commit f8bf02df2b
2 changed files with 5 additions and 4 deletions

View File

@ -42,10 +42,6 @@ apLdap :: Text
apLdap = "LDAP"
-- | Allow Ldap.Attr usage as key for Data.Map
deriving newtype instance Ord Ldap.Attr
-- TODO: rename
data CampusLogin = CampusLogin
{ campusIdent :: CI Text

View File

@ -19,23 +19,28 @@ import Utils.PathPiece (derivePathPiece)
import Ldap.Client
deriving instance Ord Attr
deriving instance Ord Dn
deriving instance Ord Password
deriving instance Ord ResultCode
deriving instance Ord Scope
deriving instance Read Attr
deriving instance Read Dn
deriving instance Read Password
deriving instance Read Scope
deriving instance Data Attr
deriving instance Data Dn
deriving instance Data Password
deriving instance Data Scope
deriving instance Generic Attr
deriving instance Generic Dn
deriving instance Generic Password
deriving instance Generic Scope
deriving anyclass instance NFData Attr
deriving anyclass instance NFData Dn
deriving anyclass instance NFData Password
deriving instance NFData Scope