Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348314 - haskell-ghci/print-bug: cannot print text copied into a .hs file, using the '\', in ghci.
Summary: haskell-ghci/print-bug: cannot print text copied into a .hs file, using the '...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-09 22:02 UTC by Koen
Modified: 2010-12-15 01:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The .hs file that caused the trouble. (bug.hs,5.51 KB, text/plain)
2010-12-09 22:04 UTC, Koen
Details
The message GHCi gave me after trying to compile bug.hs (panic.png,150.77 KB, image/png)
2010-12-09 22:05 UTC, Koen
Details

Note You need to log in before you can comment on or make changes to this bug.
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? :)