|
RE: The simplest program: msg#00041lang.haskell.glasgow.bugs
| > This bug is older! ghc 5.04 does not enforce that the return type of | > main | > is (). In fact with 5.04 you can return anything you want and get very | > fancy exception on termination if you return a more complex data type. | | I don't know about an exception on termination (Is it a known bug? If | not, it should be reported), but returning anything is allowed. I didn't know about this. This works OK: main = return "foo". So can you give me an example that fails. I'll attend to the "simplest program" problem. Simon
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Profiling and ext-core, Kirsten Chevalier |
|---|---|
| Next by Date: | RE: Pattern matching with implicit par. bug, Simon Peyton-Jones |
| Previous by Thread: | Re: The simplest program, Wolfgang Thaller |
| Next by Thread: | Profiling and ext-core, Kirsten Chevalier |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |