Hello all, I'm trying to make use of some external refactoring tools for Haskell, and I've written the following script:
#!/usr/local/bin/ runghc import System.Cmd where
main = do c <- getContents system ("/Users/ian/.cabal/bin/pointfree "" ++ c ++ """)
Here's the problem: Whenever I try to run the script, the output I get says "interpreter failed: Permission denied". Now, I'm pretty sure that the script execution fails even without executing the local program pointfree. Any ideas what I'm doing wrong?
-Ian Duncan
On Apr 8, 2009, at 1:47 AM, Alex Ross tm-alex@rosiba.com wrote:
On Apr 7, 2009, at 11:22 PM, Ian Duncan wrote:
Hello all, I'm trying to make use of some external refactoring tools for Haskell, and I've written the following script:
#!/usr/local/bin/ runghc
This is not a valid #! line.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
What is wrong with it then?
On 08.04.2009, at 09:37, Ian Duncan wrote:
On Apr 8, 2009, at 1:47 AM, Alex Ross tm-alex@rosiba.com wrote:
On Apr 7, 2009, at 11:22 PM, Ian Duncan wrote:
Hello all, I'm trying to make use of some external refactoring tools for Haskell, and I've written the following script:
#!/usr/local/bin/ runghc
This is not a valid #! line.
What is wrong with it then?
You have a stray space between your path and your interpreter.
adi
Ok, I've gotten past the "permission denied" error, but now I get "interpreter failed: Exec format error". What is wrong now?
Thanks again!
Here's the script currently #!/usr/local/bin/runghc module Main where import System.Cmd
main = putStrLn "FOO"
{- do c <- getContents system ("/Users/ian/.cabal/bin/pointfree "" ++ c ++ """) -}
-Ian
Ian Duncan wrote:
Ok, I've gotten past the "permission denied" error, but now I get "interpreter failed: Exec format error". What is wrong now?
Thanks again!
Here's the script currently #!/usr/local/bin/runghc module Main where import System.Cmd
main = putStrLn "FOO"
{- do c <- getContents system ("/Users/ian/.cabal/bin/pointfree "" ++ c ++ """) -}
What's in pointfree? Is it an executable binary or not? ("file pointfree" to check)