Failed to build Hugs 2008-09-28 snapshot
Dimitry Golubovsky
golubovsky at gmail.com
Mon Feb 9 12:30:43 EST 2009
Hi,
Answering your questions on the Hugs snapshot (I created it)
ERROR "hugsdir/packages\directory\System\Directory.hs":366 - Undefined data
constructor "UnsupportedOperation"
Looking at the Directory.hs we can see (at the very end of file):
#if defined(mingw32_HOST_OS)
foreign import ccall unsafe "__hscore_getFolderPath"
c_SHGetFolderPath :: Ptr ()
-> CInt
-> Ptr ()
-> CInt
-> CString
-> IO CInt
foreign import ccall unsafe "__hscore_CSIDL_PROFILE" csidl_PROFILE :: CInt
foreign import ccall unsafe "__hscore_CSIDL_APPDATA" csidl_APPDATA :: CInt
foreign import ccall unsafe "__hscore_CSIDL_WINDOWS" csidl_WINDOWS :: CInt
foreign import ccall unsafe "__hscore_CSIDL_PERSONAL" csidl_PERSONAL :: CInt
foreign import stdcall unsafe "GetTempPathA" c_GetTempPath :: CInt ->
CString -> IO CInt
raiseUnsupported :: String -> IO ()
raiseUnsupported loc =
ioException (ioeSetErrorString (mkIOError UnsupportedOperation loc
Nothing Nothing) "unsupported operation")
#endif
which means this code is only used with mingw (your case). I tested
snapshot build only on Linux. I am not sure who needs to be asked, but
perhaps this is the library issue.
At least I couldn't find UnsupportedOperation on Hoogle.
runhugs: Error occurred
ERROR "hugsdir/packages\base\Text\ParserCombinators\ReadP.hs":133 - Syntax
error in type expression (unexpected `.')
This usually happens if forall is encountered, and runhugs was not run with -98.
I have no answer to the issue with Internals.dll.
Thanks for the feedback.
--
Dimitry Golubovsky
Anywhere on the Web
More information about the Hugs-Bugs
mailing list