Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-fdevelopment Snap servers can hang with GHC warnings switched on #130

Open
JulianBirch opened this issue Oct 26, 2014 · 4 comments
Open

Comments

@JulianBirch
Copy link

Hi, apologies if this isn't the right place to log this. It's pretty easy to reproduce:

  • create a new project using snap init
  • add {-# OPTIONS_GHC -Wall #-} to Site.hs
  • cabal install -fdevelopment
  • run the project

Project compiles fine, then proceeds to hang when you access the first page, printing the warning out on the console.

Having tracked down the cause, I don't know if it's even solvable...

(Updated: initial report was a lot more complex)

@JulianBirch JulianBirch changed the title Snap servers can hang with GHC warnings switched on -fdevelopment Snap servers can hang with GHC warnings switched on Oct 26, 2014
@chowells79
Copy link
Member

This isn't solvable so long as we're using hint to do the interpreting. It can't handle code that compiles successfully with warnings.

@chowells79
Copy link
Member

Though hanging is odd behavior. I'm not sure why it'd do that.

@mightybyte
Copy link
Member

Could it be a bug in GHC or hint?

@JulianBirch
Copy link
Author

This is probably just my inexperience talking, but I really don't understand the behaviour. For instance, my reading of the cabal file says that Wall is switched on, but if I run cabal install I don't get any warnings. So, even if I did cabal install && cabal install -fdevelopment I'd run into the problem.

Edit: I discovered this: http://stackoverflow.com/questions/12273315/how-to-recompile-haskell-with-cabal-build-showing-only-warnings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants