
5 Apr
2007
5 Apr
'07
9:26 a.m.
On Thu, Apr 05, 2007 at 06:14:25PM +0900, Robert Marlow wrote:
4. me: It's not tested as well as I'd like I'm having trouble testing with hugs. runhugs -98 ./Setup.hs build returns 'ERROR "dist/build/Network/BSD.hs" - Can't find imported module "GHC.IOBase"'. Something screwy with hsc2hs or cpphs?
I think it's because the GHC version of hsc2hs uses ghc as its C compiler, which sets __GLASGOW_HASKELL__. You should be able to work around this by adding --with-hsc2hs=/usr/local/bin/hsc2hs-hugs or similar to setup configure when building for Hugs.