mgsloan / store

Fast binary serialization in Haskell
MIT License
109 stars 35 forks source link

Support for GHC-8.8 #144

Closed sjakobi closed 4 years ago

sjakobi commented 4 years ago

store-core currently fails to build:

src/Data/Store/Core.hs:115:5: error: 
    ‘fail’ is not a (visible) method of class ‘Monad’ 
    | 
115 |     fail = pokeException . T.pack 
    |     ^^^^ 

src/Data/Store/Core.hs:116:16: error: 
    The INLINE pragma for ‘fail’ lacks an accompanying binding 
      (The INLINE pragma must be given where ‘fail’ is declared) 
    | 
116 |     {-# INLINE fail #-} 
    |                ^^^^ 

src/Data/Store/Core.hs:231:5: error: 
    ‘fail’ is not a (visible) method of class ‘Monad’ 
    | 
231 |     fail = peekException . T.pack 
    |     ^^^^ 

src/Data/Store/Core.hs:232:16: error: 
    The INLINE pragma for ‘fail’ lacks an accompanying binding 
      (The INLINE pragma must be given where ‘fail’ is declared) 
    | 
232 |     {-# INLINE fail #-} 
    |                ^^^^ 

head.hackage has a patch: https://gitlab.haskell.org/ghc/head.hackage/blob/b0af1b02c5c94a5a5b104fc9ed66eed470945622/patches/store-core-0.4.4.patch

… and also one for store: https://gitlab.haskell.org/ghc/head.hackage/blob/b0af1b02c5c94a5a5b104fc9ed66eed470945622/patches/store-0.5.1.2.patch