#1429: :list gets confused by bang patterns in .lhs files
----------------------+-----------------------------------------------------
Reporter: mnislaih | Owner: simonmar
Type: bug | Status: closed
Priority: normal | Milestone: 6.8.3
Component: GHCi | Version: 6.7
Severity: minor | Resolution: worksforme
Keywords: debugger | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
----------------------+-----------------------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => worksforme
Comment:
I can't reproduce this, there must be something else significant other
than a bang pattern. If you can reproduce it again, please reopen and
attach the actual source file.
{{{
Prelude> :! cat 1429.lhs
\begin{code}
module Main where
f :: Int -> [Int]
f !x = [x+1]
\end{code}
Prelude> :l 1429
[1 of 1] Compiling Main ( 1429.lhs, interpreted )
Ok, modules loaded: Main.
*Main> :b f
Breakpoint 4 activated at 1429.lhs:6:0-11
*Main> f 1
Stopped at 1429.lhs:6:0-11
_result :: [Int] = _
5
6 f !x = [x+1]
7
[1429.lhs:6:0-11] *Main>
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1429#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs