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.
Created attachment 256797 [details] The .hs file that caused the trouble. This is the .hs file that caused the bug to happen.
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.
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? :)