你如何在记事本++上编译和运行Haskell我安装了插件NppExec然后我按下F6
我保存了我的Haskell文件到C:\Users\Sam\Desktop\haskell files\new 3.hs
所以按下F6之后的命令,我尝试输入几个不同的东西:
C:\Users\Sam\Desktop\haskell files\new 3.hs`
ghc.exe new 3.hs
haskell new
Run Code Online (Sandbox Code Playgroud)
但我收到了这些回复:
C:\Users\Sam\Desktop\haskell files\new 3.hs
CreateProcess() failed with error code 2:
The system cannot find the file specified.
ghc.exe new 3.hs
Process started >>>
target `new' is not a module name or a source file
<<< Process finished.
haskell new 3
CreateProcess() failed with error code 2:
The system cannot find the file specified.
================ READY ================
Run Code Online (Sandbox Code Playgroud)
在notepad ++上编译和执行haskell文件的正确方法是什么?
And*_*ewC 12
您需要将NppExec设置为在当前目录中工作,因此在插件中,NppExec,勾选Follow $(CURRENT_DIRECTORY)
.
ghc new3.hs
按F6时使用该命令(文件名中没有空格).