Failed to build Hugs 2008-09-28 snapshot

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Failed to build Hugs 2008-09-28 snapshot

Dimitry Golubovsky
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
_______________________________________________
Hugs-Bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/hugs-bugs
Reply | Threaded
Open this post in threaded view
|

Re: Failed to build Hugs 2008-09-28 snapshot

leledumbo
So, I must stick to September 2006 version ?