Skip to content

Commit 2a10e6c

Browse files
author
qz
committed
build with ghc-8.6.3
1 parent 3246c20 commit 2a10e6c

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

src/Database/PostgreSQL/Protocol/Store/Encode.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ import Data.Store.Core (Poke(..), unsafeEncodeWith, pokeStatePtr,
2828

2929
data Encode = Encode {-# UNPACK #-} !Int !(Poke ())
3030

31+
instance Semigroup Encode where
32+
{-# INLINE (<>) #-}
33+
(Encode len1 f1) <> (Encode len2 f2) = Encode (len1 + len2) (f1 *> f2)
34+
3135
instance Monoid Encode where
3236
{-# INLINE mempty #-}
3337
mempty = Encode 0 . Poke $ \_ offset -> pure (offset, ())
3438

35-
{-# INLINE mappend #-}
36-
(Encode len1 f1) `mappend` (Encode len2 f2) = Encode (len1 + len2) (f1 *> f2)
37-
3839
instance Show Encode where
3940
show (Encode len _) = "Encode instance of length " ++ show len
4041

stack-ghc8.6.3.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This file was automatically generated by 'stack init'
2+
#
3+
resolver: lts-13.4
4+
5+
packages:
6+
- '.'
7+
# Dependency packages to be pulled from upstream that are not in the resolver
8+
# (e.g., acme-missiles-0.3)
9+
extra-deps:
10+
- socket-0.8.2.0
11+
- socket-unix-0.2.0.0
12+
# <<<<<<< HEAD
13+
# =======
14+
# - store-core-0.3
15+
# - QuickCheck-2.9.2
16+
# >>>>>>> QuickCheck tests for existing codecs
17+
18+
# Override default flag values for local packages and extra-deps
19+
flags: {}
20+
21+
# Extra package databases containing global packages
22+
extra-package-dbs: []

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
stack-ghc8.0.2.yaml
1+
stack-ghc8.6.3.yaml

0 commit comments

Comments
 (0)