-
Notifications
You must be signed in to change notification settings - Fork 175
no output with LANGUAGE TemplateHaskell #62
Comments
I cannot reproduce this with ghc-mod compiled both with GHC 7.0.4 and GHC 7.4.1. |
I meant that ghc-mod check displays the error in any cases. |
I'm using 7.4 on Ubuntu. Will try on 7. Sent from my iPhone On 06/04/2012, at 12:50 AM, Kazu Yamamoto
|
I'm using Mac. |
same issue on Arch using 7.4.1, calling "ghc-mod check" directly |
hmm i just checked and my ghc is -not- built with profiling. a simple test compiler with the ghc api worked, so it might be some custom ghc-mod specific flag/option turned on that triggers the error message. either way the error should not be thrown |
ok it thinks that the compiler is built with profiling when ghc-mod is built with it. the temporary solution is to rebuild ghc-mod without profiling. |
Do you mean that you have a cabal configuration file which contains |
not anymore:) |
Thank you. I can reproduce it now. It appeared that just ignoring exception is a bad idea. I modified ghc-mod so that it displays internal errors. |
rhino ➜ ~/projects/dojo/ninjablocks-zeromq-workers/src/channels git:(refactoring_channels) ✗ ghc-mod check T.hs
rhino ➜ ~/projects/dojo/ninjablocks-zeromq-workers/src/channels git:(refactoring_channels) ✗ ghc-mod check T2.hs
T2.hs:2:3:No instance for (Num [Char]) arising from the literal
1'Possible fix: add an instance declaration for (Num [Char])In the first argument of
(==)', namely1'In the expression: 1 == "1"In an equation for
l': l = 1 == "1"rhino ➜ ~/projects/dojo/ninjablocks-zeromq-workers/src/channels git:(refactoring_channels) ✗ cat T.hs
{-# LANGUAGE TemplateHaskell #-}
module T where
l=1=="1"
rhino ➜ ~/projects/dojo/ninjablocks-zeromq-workers/src/channels git:(refactoring_channels) ✗ cat T2.hs
module T2 where
l=1=="1"
The text was updated successfully, but these errors were encountered: