Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开发了一个 haskell 应用程序,该应用程序使用WinHugs解释器进行了测试,工作正常。当我尝试使用WinGHCi 编译相同的应用程序时,它会提示错误
lexical error in string/character literal at character '\t'
我\t在IO 程序中使用过显示文本
\t
例子 :-putStr "\n \n \t \t Hello ! "
putStr "\n \n \t \t Hello ! "
有什么解决办法吗?
您可能想尝试此分步指南:
program.hs
main
IO ()
ghc -O3 --make program.hs
program.exe
如果错误仍然存在,请发布更多代码以帮助调试。