Merge pull request #42 from srghma/patch-1

refactor: Database.PostgreSQL.PG -> remove unused type alias Database
This commit is contained in:
paluh 2019-12-12 14:48:47 +01:00 committed by GitHub
commit c74cbb7ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,8 +26,6 @@ import Database.PostgreSQL.Value (class FromSQLValue, class ToSQLValue, fromSQLV
import Effect.Aff (Aff) import Effect.Aff (Aff)
import Effect.Aff.Class (class MonadAff, liftAff) import Effect.Aff.Class (class MonadAff, liftAff)
type Database = String
hoistAffEither :: forall a m. MonadAff m => MonadError PGError m => Aff (Either PGError a) -> m a hoistAffEither :: forall a m. MonadAff m => MonadError PGError m => Aff (Either PGError a) -> m a
hoistAffEither m = liftAff m >>= either throwError pure hoistAffEither m = liftAff m >>= either throwError pure