Idea: Support shebangs in Curry source files
GHC allows a shebang line (starting with #!
) to appear at the beginning of a Haskell source file, making it convenient to write directly executable scripts in Haskell. For example, writing the following is allowed:
#!/usr/bin/env runhaskell
main = putStrLn "Hello world!"
For a hypothetical runcurry
(or runpakcs
/runkics2
) tool it would be nice if the Curry frontend could similarly allow the user to write a single line starting with #!
at the beginning of a source file (and just ignore it).