File tree Expand file tree Collapse file tree 6 files changed +51
-10
lines changed Expand file tree Collapse file tree 6 files changed +51
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ version: 2
6
6
jobs :
7
7
publish :
8
8
docker :
9
- - image : fpco/stack-build-small:lts
9
+ - image : fpco/stack-build-small:lts-14
10
10
steps :
11
11
- attach_workspace :
12
12
at : ws
@@ -30,11 +30,12 @@ jobs:
30
30
31
31
build-test :
32
32
docker :
33
- - image : fpco/stack-build:lts-13.14
33
+ - image : fpco/stack-build:lts-14.27
34
34
- image : postgres:11-alpine
35
35
environment :
36
36
POSTGRES_DB : postgres_ws_test
37
37
POSTGRES_USER : root
38
+ POSTGRES_HOST_AUTH_METHOD : trust
38
39
steps :
39
40
- checkout
40
41
- restore_cache :
45
46
name : Resolve and update dependencies
46
47
command : stack setup
47
48
- run :
48
- name : Install Cabal and hlint
49
- command : stack install --system-ghc --resolver=lts-13.14 Cabal hlint
49
+ name : Install hlint
50
+ command : apt-get update && apt-get -qq -y install hlint
50
51
- save_cache :
51
52
name : Cache Dependencies
52
53
key : postgres-websockets-v2-{{ checksum "stack.yaml" }}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ isServerVersionSupported = do
32
32
where
33
33
pgVersion =
34
34
H. Statement " SELECT current_setting('server_version_num')::integer"
35
- HE. unit (HD. singleRow $ HD. column HD. int4) False
35
+ HE. noParams (HD. singleRow $ HD. column $ HD. nonNullable $ HD. int4) False
36
36
37
37
main :: IO ()
38
38
main = do
Original file line number Diff line number Diff line change 1
1
name : postgres-websockets
2
- version : 0.5.0.1
2
+ version : 0.5.0.2
3
3
synopsis : Middleware to map LISTEN/NOTIFY messages to Websockets
4
4
description : Please see README.md
5
5
homepage : https://github.com/diogob/postgres-websockets#readme
6
6
license : BSD3
7
7
license-file : LICENSE
8
8
author : Diogo Biazus
9
- maintainer : diogo@biazus.me
9
+ maintainer : diogo@biazus.ca
10
10
copyright : 2016 Diogo Biazus
11
11
category : Web
12
12
build-type : Simple
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ notifyPool pool channel mesg =
49
49
where
50
50
mapError :: Either UsageError () -> Either Error ()
51
51
mapError = mapLeft (NotifyError . show )
52
- callStatement = HST. Statement (" SELECT pg_notify" <> " ($1, $2)" ) encoder HD. unit False
53
- encoder = contramap fst (HE. param HE. text) <> contramap snd (HE. param HE. text)
52
+ callStatement = HST. Statement (" SELECT pg_notify" <> " ($1, $2)" ) encoder HD. noResult False
53
+ encoder = contramap fst (HE. param $ HE. nonNullable $ HE. text) <> contramap snd (HE. param $ HE. nonNullable $ HE. text)
54
54
55
55
-- | Given a Hasql Connection, a channel and a message sends a notify command to the database
56
56
notify :: Connection -> PgIdentifier -> ByteString -> IO (Either Error () )
Original file line number Diff line number Diff line change 1
- resolver : lts-13.14
1
+ resolver : lts-14.27
2
2
extra-deps :
3
3
- envparse-0.4.1@sha256:989902e6368532548f61de1fa245ad2b39176cddd8743b20071af519a709ce30
4
4
- stm-containers-1.1.0.2@sha256:8976df591e61f378ef29dc0443dbe2d5d34818c898093af3ca138ea1d013b5eb
Original file line number Diff line number Diff line change
1
+ # This file was autogenerated by Stack.
2
+ # You should not edit this file by hand.
3
+ # For more information, please see the documentation at:
4
+ # https://docs.haskellstack.org/en/stable/lock_files
5
+
6
+ packages:
7
+ - completed:
8
+ hackage: envparse-0.4.1@sha256:989902e6368532548f61de1fa245ad2b39176cddd8743b20071af519a709ce30,2842
9
+ pantry-tree:
10
+ size: 1180
11
+ sha256: 35044d67979fe2a5cff05cf8736a06a265592433cdd03e13a72908ceed892612
12
+ original:
13
+ hackage: envparse-0.4.1@sha256:989902e6368532548f61de1fa245ad2b39176cddd8743b20071af519a709ce30
14
+ - completed:
15
+ hackage: stm-containers-1.1.0.2@sha256:8976df591e61f378ef29dc0443dbe2d5d34818c898093af3ca138ea1d013b5eb,3210
16
+ pantry-tree:
17
+ size: 697
18
+ sha256: 61e041a97aa230e874a50cdea4ded5f264fbb6337811cf4adf4cadd51176a084
19
+ original:
20
+ hackage: stm-containers-1.1.0.2@sha256:8976df591e61f378ef29dc0443dbe2d5d34818c898093af3ca138ea1d013b5eb
21
+ - completed:
22
+ hackage: stm-hamt-1.2.0.2@sha256:18126db7bf2d9c967a6020c677b3005dd957a4c39d69aeaea3c29c90de8f6124,3972
23
+ pantry-tree:
24
+ size: 1009
25
+ sha256: ef426797655d6b4b9238b1200c4129d44e91f996f26b92a035b1333b8b8a6f62
26
+ original:
27
+ hackage: stm-hamt-1.2.0.2@sha256:18126db7bf2d9c967a6020c677b3005dd957a4c39d69aeaea3c29c90de8f6124
28
+ - completed:
29
+ hackage: primitive-extras-0.7.1@sha256:23905c57089418b1a2d324cfee3e81bbd5a344a0fa56a827867b2dce275fdb5e,2945
30
+ pantry-tree:
31
+ size: 1181
32
+ sha256: f788dae21ca4f0d0377d97a5ba7fd008d4b0af8991a745f94c29f2caa11dc6bd
33
+ original:
34
+ hackage: primitive-extras-0.7.1@sha256:23905c57089418b1a2d324cfee3e81bbd5a344a0fa56a827867b2dce275fdb5e
35
+ snapshots:
36
+ - completed:
37
+ size: 524996
38
+ url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/27.yaml
39
+ sha256: 7ea31a280c56bf36ff591a7397cc384d0dff622e7f9e4225b47d8980f019a0f0
40
+ original: lts-14.27
You can’t perform that action at this time.
0 commit comments