Fix Trac #1037
authorsimonpj@microsoft.com <unknown>
Sat, 4 Aug 2007 17:44:20 +0000 (17:44 +0000)
committersimonpj@microsoft.com <unknown>
Sat, 4 Aug 2007 17:44:20 +0000 (17:44 +0000)
commitf117d08b91ad84ce0cac31fca3e584fa09d332ac
tree9428580fc7c2224f2a390c6f6cbabe163e7e91f3
parentb0d80aa3d908a6b9991920a5ac7fd1b437ecafd3
Fix Trac #1037

It makes *sense* for a foreign import to have a zero-sized return, thus

  foreign import ccall foo :: Int -> State# RealWorld

but it's not clear that it's useful, and it requires some back-end (a
Hint for void types) to make it go right through. It's not clear that
we really want this facility, so rather than fixing the code
generator, I'm just making the construct illegal for now.
compiler/typecheck/TcType.lhs