This commit is contained in:
Yann Esposito (Yogsototh) 2019-04-01 23:31:41 +02:00
parent c16e1f6962
commit ec626d5a08
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646
3 changed files with 11 additions and 13 deletions

View file

@ -34,11 +34,11 @@ where
import Protolude
import Aggreact.User (User,NewUser(..),Role(..))
import Aggreact.User (NewUser (..), Role (..), User)
import Database.Store (Entity (..))
import Servant (Handler)
import Servant.Errors (unauthorized)
import Database.Store (Entity(..))
data AuthorizationStrategy =
Anybody

View file

@ -156,7 +156,6 @@ instance ToField Role where toField = toField . (show :: Role -> Text)
instance (ToSQLiteFieldTypeList rest) => ToSQLiteFieldTypeList (Role ': rest) where
toSqliteTypes _ = "TEXT":toSqliteTypes (Proxy :: Proxy rest)
-- For HTTP
deriving anyclass instance ToJSON NewUser
deriving anyclass instance FromJSON NewUser

View file

@ -68,7 +68,6 @@ import qualified Data.UUID as UUID
import qualified Generics.SOP as SOP
import Servant.Auth.Server (FromJWT, ToJWT)
import qualified Web.HttpApiData as FormI
import qualified Service.Service as Serv
-- | This is the ID type, it is like @Text@.
instance StringConv UUID [Char] where strConv l = strConv l . UUID.toString