Skip to content

Commit 31ed10b

Browse files
authored
Merge pull request #75 from haskellari/revert-74-add/verbosity-enum
Revert "Add PQERRORS_SQLSTATE enum to type Verbosity"
2 parents 0e642ea + 86ad439 commit 31ed10b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Database/PostgreSQL/LibPQ/Enums.hsc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,12 @@ data Verbosity
197197
= ErrorsTerse
198198
| ErrorsDefault
199199
| ErrorsVerbose
200-
| ErrorsSqlstate
201200
deriving (Eq, Show)
202201

203202
instance FromCInt Verbosity where
204-
fromCInt (#const PQERRORS_TERSE) = Just ErrorsTerse
205-
fromCInt (#const PQERRORS_DEFAULT) = Just ErrorsDefault
206-
fromCInt (#const PQERRORS_VERBOSE) = Just ErrorsVerbose
207-
fromCInt (#const PQERRORS_SQLSTATE) = Just ErrorsSqlstate
203+
fromCInt (#const PQERRORS_TERSE) = Just ErrorsTerse
204+
fromCInt (#const PQERRORS_DEFAULT) = Just ErrorsDefault
205+
fromCInt (#const PQERRORS_VERBOSE) = Just ErrorsVerbose
208206
fromCInt _ = Nothing
209207

210208
instance ToCInt Verbosity where

0 commit comments

Comments
 (0)