6

メモ帳++で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

しかし、私はこれらの応答を得ました:

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 ================

notepad ++のhaskellファイルでコンパイルして実行する正しい方法は何ですか?

4

2 に答える 2

12

現在のディレクトリで動作するように NppExec を設定する必要があるため、プラグインでは、NppExec、 tick Follow $(CURRENT_DIRECTORY).

F6 を押したときにコマンドを使用しghc new3.hsます (ファイル名にスペースを入れないでください)。

現在のディレクトリをたどる

于 2013-01-19T19:01:28.190 に答える