snapframework / snap-core

Core type definitions (Snap monad, HTTP types, etc) and utilities for web handlers.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
317 stars 85 forks source link

Compatibility with GHC 9.2 #311

Closed sjakobi closed 2 years ago

sjakobi commented 2 years ago

Could you upload a compatible release?

With --allow-newer, I currently get an error:

src/Snap/Internal/Parsing.hs:439:64: error:
    • Couldn't match expected type ‘ghc-prim-0.8.0:GHC.Prim.Word#’
                  with actual type ‘ghc-prim-0.8.0:GHC.Prim.Word8#’
    • In the first argument of ‘uncheckedShiftRL#’, namely ‘a#’
      In the first argument of ‘word2Int#’, namely
        ‘(uncheckedShiftRL# a# b#)’
      In the first argument of ‘I#’, namely
        ‘(word2Int# (uncheckedShiftRL# a# b#))’
    |
439 |     shiftr (W8# a#) (I# b#) = I# (word2Int# (uncheckedShiftRL# a# b#))
    |                                                                ^^
cabal: Failed to build snap-core-1.0.4.2
sjakobi commented 2 years ago

Note that Head Hackage has a patch:

https://gitlab.haskell.org/ghc/head.hackage/-/blob/master/patches/snap-core-1.0.4.2.patch