fpco / ide-backend

ide-backend drives the GHC API to build, query, and run your code
120 stars 17 forks source link

GHC API, unlike buildExe, expect 'Main.main' to be present and to be in IO #170

Open Mikolaj opened 10 years ago

Mikolaj commented 10 years ago

This is exemplified by ide-backend tests "GHC API expects 'main' to be present in 'Main' (#170)" and "buildExe doesn't expect 'Main.main' to be present nor to be in IO (#170)". This is a minor discrepancy between GHC API and buildExe, because it does not manifested if each "Main.main" exists and has an explicit type signature.