Use type alias for clarity
This commit is contained in:
@@ -57,7 +57,7 @@ import PostgREST.Types
|
|||||||
|
|
||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
app :: DbStructure -> AppConfig -> Text -> BL.ByteString -> DbRole -> Request -> H.Tx P.Postgres s Response
|
app :: DbStructure -> AppConfig -> DbRole -> BL.ByteString -> DbRole -> Request -> H.Tx P.Postgres s Response
|
||||||
app dbstructure conf authenticator reqBody dbrole req =
|
app dbstructure conf authenticator reqBody dbrole req =
|
||||||
case (path, verb) of
|
case (path, verb) of
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import PostgREST.Config (AppConfig (..), corsPolicy)
|
|||||||
|
|
||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
authenticated :: forall s. AppConfig -> Text ->
|
authenticated :: forall s. AppConfig -> DbRole ->
|
||||||
(DbRole -> Request -> H.Tx P.Postgres s Response) ->
|
(DbRole -> Request -> H.Tx P.Postgres s Response) ->
|
||||||
Request -> H.Tx P.Postgres s Response
|
Request -> H.Tx P.Postgres s Response
|
||||||
authenticated conf authenticator app req = do
|
authenticated conf authenticator app req = do
|
||||||
|
|||||||
Reference in New Issue
Block a user