How do you compile and run haskell on notepad ++

How do you compile and run Haskell on notepad ++ I installed the NppExec plugin and then clicked F6 I saved the Haskell file to C:\Users\Sam\Desktop\haskell files\new 3.hs

So, on command, after pressing F6, I tried to introduce several different things:

 C:\Users\Sam\Desktop\haskell files\new 3.hs` ghc.exe new 3.hs haskell new 

but I got the following answers:

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

What is the correct way to compile and execute in a haskell file in notepad ++?

+6
source share
1 answer

You need to install NppExec to work in the current directory, so In Plugins, NppExec, check Follow $(CURRENT_DIRECTORY) .

Use the ghc new3.hs when you press F6 (there are no spaces in the file names).

Follow current directory

+12
source

All Articles