[GHC] #10004: rec {} causes "head:empty list" exception

#10004: rec {} causes "head:empty list" exception -------------------------------------+------------------------------------- Reporter: alanz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Using GHC HEAD 7.11.20150116 (and before) Trying to load the following into ghci {{{#!hs {-# LANGUAGE RecursiveDo #-} bar :: IO () bar = do rec {} return () }}} results in {{{
:load "/home/alanz/mysrc/github/alanz/ghc- exactprint/tests/examples/Foo.hs" [1 of 1] Compiling Main ( /home/alanz/mysrc/github/alanz/ghc- exactprint/tests/examples/Foo.hs, interpreted ) *** Exception: Prelude.head: empty list
}}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10004 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10004: rec {} causes "head:empty list" exception
-------------------------------------+-------------------------------------
Reporter: alanz | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#10004: rec {} causes "head:empty list" exception -------------------------------------+------------------------------------- Reporter: alanz | Owner: Type: bug | Status: merge Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | mdo/should_compile/T10004 | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => merge * testcase: => mdo/should_compile/T10004 * milestone: => 7.10.1 Comment: Good point. Fixed, thank you Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10004#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10004: rec {} causes "head:empty list" exception -------------------------------------+------------------------------------- Reporter: alanz | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.11 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | mdo/should_compile/T10004 | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-7.10` (via 3748c7311f3b657a9b3c01a48b39874103f46cb9). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10004#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC