Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 348314

Summary: haskell-ghci/print-bug: cannot print text copied into a .hs file, using the '\', in ghci.
Product: Gentoo Linux Reporter: Koen <koen.wellens>
Component: [OLD] DevelopmentAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED UPSTREAM    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The .hs file that caused the trouble.
The message GHCi gave me after trying to compile bug.hs

Description Koen 2010-12-09 22:02:17 UTC
For an assignment, I had to make implement a DFA (en.wikipedia.org/wiki/Deterministic_finite-state_machine). We were given output examples in the assignment, so I tried to copy these outputstrings into my .hs file. The output strings contained '-characters which are only viewable by using \'. 
I tried this, but instead of showing me the output string, GHCi told me to report this bug. Explicit information is in the .zip attachment.
If parts are not clear, I can be contacted on koen.wellens@student.kuleuven.be

Reproducible: Always

Steps to Reproduce:
1.Open a linux terminal.
2.Start GHCi (using 'ghci' command)
3. Load the supplied file: ':l bug.hs'

Actual Results:  
GHCi gave a 'panic' message. (Screenshot in the .zip file).

Expected Results:  
The software should have just printed the line I copied.

I copied the output text from the standard linux document-viewer.
Comment 1 Koen 2010-12-09 22:04:36 UTC
Created attachment 256797 [details]
The .hs file that caused the trouble.

This is the .hs file that caused the bug to happen.
Comment 2 Koen 2010-12-09 22:05:28 UTC
Created attachment 256798 [details]
The message GHCi gave me after trying to compile bug.hs

This is a screenshot of the GHCi in the terminal. 
The link given by GHCi was broken, that is why I posted this bug here.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-15 01:51:37 UTC
So where it says:

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

in the attached PNG image, your interpreter panicked and reported here instead? :)