GHC and GHCi hang when compiling simple program
When interpreting the following four-line program using
GHCi on Windows, GHCi hangs, never completing
compilation and giving no output:
data Paradox = Roll (Paradox -> Int)
unroll (Roll x) = x
selfapply x = unroll x x
uhoh = selfapply (Roll selfapply)
If I add a simple main method of the form 'main = do
print (fst ("Hello world", uhoh))', and then compile
with GHC, it hangs as well. However, if I use a main
method which does not mention uhoh, such as 'main = do
print "Hello world"', and then compile with GHC,
compilation is successful. However, in this case,
compilation with GHCi still hangs.
As it happens, I have seen this bug in both versions
6.4 and 6.4.1 of GHC for Windows.
-Sridhar Ramesh, sramesh@andrew.cmu.edu
Trac metadata
Trac field |
Value |
Version |
None |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
normal |
Resolution |
ResolvedWon'tFix |
Component |
Compiler |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|