Ticket #1299 (new defect)

Opened 8 months ago

gtk2hs-buildtools-0.12.5.2 doesn't build on GHC 7.8

Reported by: guest Owned by: somebody
Priority: blocker Milestone: 0.12.0
Component: general (Gtk+, Glib) Version: 0.12.4
Keywords: Cc:

Description

I'm currently getting the following compilation error when cabal installing gtk2hs-buildtools:

templates/GenericTemplate.hs:104:22:

Couldn't match expected type ‘Bool’

with actual type ‘Happy_GHC_Exts.Int#’

In the expression:

(n Happy_GHC_Exts.<# (0#
Happy_GHC_Exts.Int#)) In a stmt of a pattern guard for a case alternative:
(n Happy_GHC_Exts.<# (0#
Happy_GHC_Exts.Int#)) In a case alternative:
n | (n Happy_GHC_Exts.<# (0#
Happy_GHC_Exts.Int#)) -> (happyReduceArr Happy_Data_Array.! rule) i tk st where rule = (Happy_GHC_Exts.I# ((Happy_GHC_Exts.negateInt#
((n Happy_GHC_Exts.+# (1#
Happy_GHC_Exts.Int#))))))

In 7.8, primitive comparisons now return Int# instead of Bool in order to facilitate branchless algorithms; please see https://ghc.haskell.org/trac/ghc/wiki/PrimBool

Note: See TracTickets for help on using tickets.