tmp-postgres 1.27.0.1 → 1.27.0.2
raw patch · 4 files changed
+10/−6 lines, 4 files
Files
- CHANGELOG.md +3/−0
- src/Database/Postgres/Temp.hs +1/−1
- src/Database/Postgres/Temp/Internal/Config.hs +5/−4
- tmp-postgres.cabal +1/−1
CHANGELOG.md view
@@ -1,5 +1,8 @@ Changelog for tmp-postgres +1.27.0.2+ Doc Fixes+ 1.27.0.1 Doc Fixes
src/Database/Postgres/Temp.hs view
@@ -20,7 +20,7 @@ All of the command line, environment variables and configuration files that are generated by default for the respective executables can be-extended of overriden.+extended or overriden. In general @tmp-postgres@ is useful if you want a clean temporary @postgres@ and do not want to worry about clashing with an existing
src/Database/Postgres/Temp/Internal/Config.hs view
@@ -384,12 +384,12 @@ -- seems to fix it. #122 -- TODO come up with a better way to deal with this. Probably -- need to lock the directories recursively before deleting.- handle ignoreDirIsMissing $ do+ handle ignoreDirIsMissing $ try (removePathForcibly mainDir) >>= \case- Left (_ :: IOError) -> try (removePathForcibly mainDir) >>= \case- Left (_ :: IOError) -> removePathForcibly mainDir- Right _ -> pure ()+ Left (_ :: IOError) -> try (removePathForcibly mainDir) >>= \case+ Left (_ :: IOError) -> removePathForcibly mainDir Right _ -> pure ()+ Right _ -> pure () -- | Either remove a 'CTemporary' directory or do nothing to a 'CPermanent' -- one.@@ -878,3 +878,4 @@ hostToSocketClass hostOrSocketPath = case hostOrSocketPath of '/' : _ -> Permanent hostOrSocketPath _ -> Temporary+
tmp-postgres.cabal view
@@ -1,5 +1,5 @@ name: tmp-postgres-version: 1.27.0.1+version: 1.27.0.2 synopsis: Start and stop a temporary postgres description: Start and stop a temporary postgres. See README.md homepage: https://github.com/jfischoff/tmp-postgres#readme