Lexical Error In String/character Literal Utf-8 Decoding Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Haskell Error lexical error in string/character literal at character ' \r' up vote 1 down vote favorite Hello I'm trying to write a program that converts markdown to HTML, I understand there is Pandoc but my project is writing it out manually. I have it completed or at least I think i Do but I'm getting the following error Haskell Error lexical error in string/character literal at character ' \r' I have no Idea as to what is referring to, any help in pointing it out would be great. Thanks So update: I changed a few things with misc symbols and the error I get now is hs.38:17: Not in scope 'str' and as I was working through the thing it has repeatedly kept pointing at line 38 in which I cannot figure out what the issue is as it ignores the same exact thing in the previous function module Main ( convertToHTML, convertSpecialChar, main ) where import System.Environment (getArgs) import System.IO import Data.Char import Data.List import Data.List.Split eof = "