Quantcast
Channel: GHC: Ticket #1312: runghc doesn't respect -main-is
Browsing latest articles
Browse All 24 View Live

difficulty changed

difficulty changed from Easy (1 hr) to Easy (less than 1 hour)

View Article



os changed

os changed from Unknown to Unknown/Multiple

View Article

architecture changed

architecture changed from Multiple to Unknown/Multiple

View Article

Article 8

No: If we see -- then that forces the current set of arguments to end, but if we decide to end the arguments when we see foo then we don't look ahead to see if a -- is coming.

View Article

Article 7

According the runghc's help message: runghc [-f GHC-PATH | --] [GHC-ARGS] [--] FILE ARG Shouldn't runghc -- -main-is foo -- bar.hs suffice (without the --ghc-arg flag) ?

View Article


status changed; resolution set

status changed from new to closedresolution set to fixed OK, this is now done in 6.8 and HEAD, but you need to escape the argument to -main-is so runghc doesn't think it's the module to load: runghs...

View Article

owner set

owner set to igloo

View Article

Article 4

Strange, I thought the whole point of :main was that it ran whatever -main-is was set to. I must have been dreaming that. I'm not sure we need set arg-style, rather I'd like to see the argument...

View Article


Article 3

:main also always runs main, regardless of any -main-is flag, currently. Also, it parses arguments itself, so we would have to build strings in such a way that it would parse them correctly. Also, ghc...

View Article


milestone changed

milestone changed from 6.8 branch to 6.8.3

View Article

Article 1

Other unix programs' example -e behavior (well, at least in the GNU versions): #sed: run the two expressions in sequence (for each line) echo 123 | sed -e 's/1/2/g' -e 's/2/4/g' 443 #grep: any -e...

View Article

Article 0

I've seen things like ghc -e 'let foo = bar in do baz foo putStrLn "ha ha" ' | some other shell command ... how about allowing multiple -e expr arguments, which are done in sequence? At present it...

View Article
Browsing latest articles
Browse All 24 View Live




Latest Images