logo       

RE: The simplest program: msg#00041

lang.haskell.glasgow.bugs

Subject: RE: The simplest program

| > 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>
Google Custom Search

News | FAQ | advertise