dmgolubovsky / yhc

Automatically exported from code.google.com/p/yhc
0 stars 0 forks source link

Yhi crashes if main is not of type :: IO () #153

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Given: module Test where main = 1 :: Int
2. yhc Test.hs
3. yhi Test.hbc

What is the expected output? What do you see instead?
It crashes, which is bad. Test.hbc has a main function, but its of the
wrong type. Yhc should probably ensure that Main.main has the right type,
and Yhi should check that the root hbc file is called module Main.

Original issue reported on code.google.com by ndmitch...@gmail.com on 29 Mar 2008 at 6:29