title: Failed to install haskell-src-exts-1.16.0 on OSX 10.9.5
body: <p>My env:</p>
  
  <ul>
  <li>ghc 7.8.3 from <a href="http://ghcformacosx.github.io/" rel="nofollow">http://ghcformacosx.github.io/</a></li>
  <li>OSX 10.9.5</li>
  <li>cabal 1.20.0.3 (directly from ghc for mac osx)</li>
  </ul>
  
  <p>I did <code>cabal install alex</code> and <code>cabal install happy</code>. cabal binary path was confirmed to be added to my $PATH as <code>$(HOME)/Library/Haskell/bin/</code>.</p>
  
  <p><code>cabal install haskell-src-exts</code> emitted the following compiling error:</p>
  
  <pre><code>[19 of 22] Compiling Language.Haskell.Exts.InternalParser ( dist/build/Language/Haskell/Exts/InternalParser.hs, dist/build/Language/Haskell/Exts/InternalParser.o )
  
  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.&lt;# (0# :: Happy_GHC_Exts.Int#))
      In a stmt of a pattern guard for
                     a case alternative:
        (n Happy_GHC_Exts.&lt;# (0# :: Happy_GHC_Exts.Int#))
      In a case alternative:
          n | (n Happy_GHC_Exts.&lt;# (0# :: Happy_GHC_Exts.Int#))
            -&gt; (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#))))))
  
  templates/GenericTemplate.hs:115:23:
      Couldn't match expected type ‘Bool’
                  with actual type ‘Happy_GHC_Exts.Int#’
      In the expression:
        (off_i Happy_GHC_Exts.&gt;=# (0# :: Happy_GHC_Exts.Int#))
      In the expression:
        if (off_i Happy_GHC_Exts.&gt;=# (0# :: Happy_GHC_Exts.Int#)) then
            (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i)
        else
            False
      In an equation for ‘check’:
          check
            = if (off_i Happy_GHC_Exts.&gt;=# (0# :: Happy_GHC_Exts.Int#)) then
                  (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i)
              else
                  False
  
  templates/GenericTemplate.hs:117:30:
      Couldn't match expected type ‘Happy_GHC_Exts.Int#’
                  with actual type ‘Bool’
      In the expression: False
      In the expression:
        if (off_i Happy_GHC_Exts.&gt;=# (0# :: Happy_GHC_Exts.Int#)) then
            (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i)
        else
            False
  
  templates/GenericTemplate.hs:119:13:
      Couldn't match expected type ‘Bool’
                  with actual type ‘Happy_GHC_Exts.Int#’
      In the expression: check
      In a stmt of a pattern guard for
                     a pattern binding:
        check
  
  templates/GenericTemplate.hs:212:14:
      Pattern bindings containing unlifted types should use an outermost bang pattern:
        (sts1@((HappyCons (st1@(action)) (_))))
          = happyDrop k (HappyCons (st) (sts))
      In an equation for ‘happyMonadReduce’:
          happyMonadReduce k nt fn j tk st sts stk
            = happyThen1
                (fn stk tk)
                (\ r -&gt; happyGoto nt j tk st1 sts1 (r `HappyStk` drop_stk))
            where
                (sts1@((HappyCons (st1@(action)) (_))))
                  = happyDrop k (HappyCons (st) (sts))
                drop_stk = happyDropStk k stk
  
  templates/GenericTemplate.hs:219:14:
      Pattern bindings containing unlifted types should use an outermost bang pattern:
        (sts1@((HappyCons (st1@(action)) (_))))
          = happyDrop k (HappyCons (st) (sts))
      In an equation for ‘happyMonad2Reduce’:
          happyMonad2Reduce k nt fn j tk st sts stk
            = happyThen1
                (fn stk tk)
                (\ r -&gt; happyNewToken new_state sts1 (r `HappyStk` drop_stk))
            where
                (sts1@((HappyCons (st1@(action)) (_))))
                  = happyDrop k (HappyCons (st) (sts))
                drop_stk = happyDropStk k stk
                (off) = indexShortOffAddr happyGotoOffsets st1
                (off_i) = (off Happy_GHC_Exts.+# nt)
                ....
  Failed to install haskell-src-exts-1.16.0
  cabal: Error: some packages failed to install:
  haskell-src-exts-1.16.0 failed during the building phase. The exception was:
  ExitFailure 1
  </code></pre>