mirror of
https://github.com/typeable/id.git
synced 2024-09-11 13:26:02 +03:00
[sso-153] Create backend API for agency settings page (#5614)
Co-authored-by: Vladimir Kalnitsky <klntsky@typeable.io>
This commit is contained in:
parent
f517d44710
commit
25decbcf85
1
id.cabal
1
id.cabal
@ -16,6 +16,7 @@ library
|
||||
deepseq,
|
||||
QuickCheck,
|
||||
hashable,
|
||||
http-api-data,
|
||||
lens,
|
||||
postgresql-simple,
|
||||
openapi3,
|
||||
|
@ -22,13 +22,14 @@ import Database.PostgreSQL.Simple.FromField (FromField)
|
||||
import Database.PostgreSQL.Simple.ToField (ToField)
|
||||
import GHC.Generics (Generic)
|
||||
import Test.QuickCheck
|
||||
import Web.HttpApiData
|
||||
import Yesod.Core (PathPiece(..))
|
||||
|
||||
|
||||
newtype Id t = Id { unId :: UUID }
|
||||
deriving
|
||||
( Eq, Ord, Generic, Read, Show, Data, ToField, FromField, PathPiece, FromJSON
|
||||
, ToJSON, NFData, Hashable, FromJSONKey, ToJSONKey, ToSchema)
|
||||
, ToJSON, NFData, Hashable, FromJSONKey, ToJSONKey, ToSchema
|
||||
, FromHttpApiData, ToHttpApiData )
|
||||
|
||||
type role Id nominal
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user