generated from tpl/purs
Update deps
This commit is contained in:
parent
da14129b18
commit
e344b2c004
13
bower.json
13
bower.json
@ -42,18 +42,17 @@
|
|||||||
"purescript-nullable": "^v5.0.0",
|
"purescript-nullable": "^v5.0.0",
|
||||||
"purescript-ordered-collections": "^v2.0.1",
|
"purescript-ordered-collections": "^v2.0.1",
|
||||||
"purescript-partial": "^v3.0.0",
|
"purescript-partial": "^v3.0.0",
|
||||||
"purescript-polyform": "updateTov0.14.1",
|
"purescript-polyform": "^v0.9.0",
|
||||||
"purescript-polyform-batteries-core": "updateTov0.14.1",
|
"purescript-polyform-batteries-core": "https://github.com/purescript-polyform/batteries-core.git#v0.2.0",
|
||||||
"purescript-polyform-batteries-env": "updateTov0.14.1",
|
"purescript-polyform-batteries-env": "https://github.com/purescript-polyform/batteries-env.git#v0.1.0",
|
||||||
"purescript-prelude": "^v5.0.0",
|
"purescript-prelude": "^v5.0.0",
|
||||||
|
"purescript-psci-support": "^v5.0.0",
|
||||||
"purescript-string-parsers": "^v6.0.0",
|
"purescript-string-parsers": "^v6.0.0",
|
||||||
|
"purescript-strings": "^v5.0.0",
|
||||||
|
"purescript-test-unit": "^v16.0.0",
|
||||||
"purescript-transformers": "^v5.1.0",
|
"purescript-transformers": "^v5.1.0",
|
||||||
"purescript-tuples": "^v6.0.1",
|
"purescript-tuples": "^v6.0.1",
|
||||||
"purescript-typelevel-prelude": "^v6.0.0",
|
"purescript-typelevel-prelude": "^v6.0.0",
|
||||||
"purescript-validation": "^v5.0.0"
|
"purescript-validation": "^v5.0.0"
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"purescript-psci-support": "^v5.0.0",
|
|
||||||
"purescript-test-unit": "^v16.0.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,8 @@ in upstream
|
|||||||
, "validation"
|
, "validation"
|
||||||
, "variant"
|
, "variant"
|
||||||
]
|
]
|
||||||
, repo = "https://github.com/jordanmartinez/purescript-polyform.git"
|
, repo = "https://github.com/purescript-polyform/polyform.git"
|
||||||
, version = "updateTov0.14.1"
|
, version = "v0.9.0"
|
||||||
}
|
}
|
||||||
with polyform-batteries-core =
|
with polyform-batteries-core =
|
||||||
{ dependencies =
|
{ dependencies =
|
||||||
@ -55,8 +55,8 @@ in upstream
|
|||||||
, "validation"
|
, "validation"
|
||||||
, "variant"
|
, "variant"
|
||||||
]
|
]
|
||||||
, repo = "https://github.com/jordanmartinez/purescript-polyform-validators.git"
|
, repo = "https://github.com/purescript-polyform/batteries-core.git"
|
||||||
, version = "updateTov0.14.1"
|
, version = "v0.2.0"
|
||||||
}
|
}
|
||||||
with polyform-batteries-env =
|
with polyform-batteries-env =
|
||||||
{ dependencies =
|
{ dependencies =
|
||||||
@ -70,6 +70,6 @@ in upstream
|
|||||||
, "psci-support"
|
, "psci-support"
|
||||||
, "typelevel-prelude"
|
, "typelevel-prelude"
|
||||||
]
|
]
|
||||||
, repo = "https://github.com/jordanmartinez/batteries-env.git"
|
, repo = "https://github.com/purescript-polyform/batteries-env.git"
|
||||||
, version = "updateTov0.14.1"
|
, version = "v0.1.0"
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@ module Database.PostgreSQL
|
|||||||
) where
|
) where
|
||||||
|
|
||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
import Control.Monad.Error.Class (catchError, throwError)
|
import Control.Monad.Error.Class (catchError, throwError)
|
||||||
import Data.Array (head)
|
import Data.Array (head)
|
||||||
import Data.Bifunctor (lmap)
|
import Data.Bifunctor (lmap)
|
||||||
@ -249,56 +248,39 @@ convertError err = case toMaybe $ ffiSQLState err of
|
|||||||
convert s =
|
convert s =
|
||||||
if prefix "0A" s then
|
if prefix "0A" s then
|
||||||
NotSupportedError
|
NotSupportedError
|
||||||
else
|
else if prefix "20" s || prefix "21" s then
|
||||||
if prefix "20" s || prefix "21" s then
|
|
||||||
ProgrammingError
|
ProgrammingError
|
||||||
else
|
else if prefix "22" s then
|
||||||
if prefix "22" s then
|
|
||||||
DataError
|
DataError
|
||||||
else
|
else if prefix "23" s then
|
||||||
if prefix "23" s then
|
|
||||||
IntegrityError
|
IntegrityError
|
||||||
else
|
else if prefix "24" s || prefix "25" s then
|
||||||
if prefix "24" s || prefix "25" s then
|
|
||||||
InternalError
|
InternalError
|
||||||
else
|
else if prefix "26" s || prefix "27" s || prefix "28" s then
|
||||||
if prefix "26" s || prefix "27" s || prefix "28" s then
|
|
||||||
OperationalError
|
OperationalError
|
||||||
else
|
else if prefix "2B" s || prefix "2D" s || prefix "2F" s then
|
||||||
if prefix "2B" s || prefix "2D" s || prefix "2F" s then
|
|
||||||
InternalError
|
InternalError
|
||||||
else
|
else if prefix "34" s then
|
||||||
if prefix "34" s then
|
|
||||||
OperationalError
|
OperationalError
|
||||||
else
|
else if prefix "38" s || prefix "39" s || prefix "3B" s then
|
||||||
if prefix "38" s || prefix "39" s || prefix "3B" s then
|
|
||||||
InternalError
|
InternalError
|
||||||
else
|
else if prefix "3D" s || prefix "3F" s then
|
||||||
if prefix "3D" s || prefix "3F" s then
|
|
||||||
ProgrammingError
|
ProgrammingError
|
||||||
else
|
else if prefix "40" s then
|
||||||
if prefix "40" s then
|
|
||||||
TransactionRollbackError
|
TransactionRollbackError
|
||||||
else
|
else if prefix "42" s || prefix "44" s then
|
||||||
if prefix "42" s || prefix "44" s then
|
|
||||||
ProgrammingError
|
ProgrammingError
|
||||||
else
|
else if s == "57014" then
|
||||||
if s == "57014" then
|
|
||||||
QueryCanceledError
|
QueryCanceledError
|
||||||
else
|
else if prefix "5" s then
|
||||||
if prefix "5" s then
|
|
||||||
OperationalError
|
OperationalError
|
||||||
else
|
else if prefix "F" s then
|
||||||
if prefix "F" s then
|
|
||||||
InternalError
|
InternalError
|
||||||
else
|
else if prefix "H" s then
|
||||||
if prefix "H" s then
|
|
||||||
OperationalError
|
OperationalError
|
||||||
else
|
else if prefix "P" s then
|
||||||
if prefix "P" s then
|
|
||||||
InternalError
|
InternalError
|
||||||
else
|
else if prefix "X" s then
|
||||||
if prefix "X" s then
|
|
||||||
InternalError
|
InternalError
|
||||||
else
|
else
|
||||||
const $ ConnectionError s
|
const $ ConnectionError s
|
||||||
|
Loading…
Reference in New Issue
Block a user