WinHugs May 2006, missing Regex.Posix.dll

Ross Paterson ross at soi.city.ac.uk
Wed May 31 16:04:41 EDT 2006


On Wed, May 31, 2006 at 06:16:48PM +0100, Neil Mitchell wrote:
> In order to try and crush any more bug reports of the form "libary
> doesn't work with WinHugs", I have just loaded every single .hs file
> distributed with WinHugs, and seen which fail. Here is a list of the
> error message:
> 
> ERROR "C:\Program Files\WinHugs\demos\HaXml\AlbumDTD.hs" - Can't find
> imported module "Text.XML.HaXml.Xml2Haskell"
> ERROR "C:\Program Files\WinHugs\demos\HaXml\App.hs" - Can't find
> imported module "Text.XML.HaXml.Xml2Haskell"
> ERROR "C:\Program Files\WinHugs\demos\HaXml\DTypes.hs" - Can't find
> imported module "Text.XML.HaXml.Haskell2XmlNew"
> ERROR "C:\Program Files\WinHugs\demos\HaXml\Example.hs" - Can't find
> imported module "Text.XML.HaXml.Haskell2Xml"
> ERROR "C:\Program Files\WinHugs\demos\HaXml\SimpleTest.hs" - Can't
> find imported module "Text.XML.HaXml.Haskell2Xml"
> ERROR "C:\Program Files\WinHugs\demos\HaXml\SimpleTestBool.hs" - Can't
> find imported module "Text.XML.HaXml.Haskell2Xml"
> ERROR "C:\Program Files\WinHugs\demos\HaXml\SimpleTestD.hs" - Can't
> find imported module "Text.XML.HaXml.Haskell2Xml"
> ERROR "C:\Program Files\WinHugs\demos\HaXml\SMIL\DTD_SMIL20.hs" -
> Can't find imported module "Text.XML.HaXml.Xml2Haskell"
> ERROR "C:\Program Files\WinHugs\demos\HaXml\Types.hs" - Can't find
> imported module "Text.XML.HaXml.Haskell2Xml"

It seems the HaXml demos are out of date.

> ERROR "C:\Program
> Files\WinHugs\packages\base\System\Process\Internals.hs":747 -
> Undefined variable "addMVarFinalizer"

Hmm, it uses addMVarFinalizer under Windows, and Hugs doesn't have that.
Have to think about that one.

> ERROR "C:\Program Files\WinHugs\packages\base\Text\Regex\Posix.hs" -
> Error while importing DLL "C:\Program
> Files\WinHugs\packages\base\Text\Regex\Posix.dll"

I think the problem with System.Process.Internals caused the base package
to fail before it got to Text.Regex.Posix.

> ERROR "C:\Program
> Files\WinHugs\packages\HaXml\Text\XML\HaXml\Parse.hs" - Can't find
> imported module "IOExts"

A bug on all platforms: the module should get unsafePerformIO from
System.IO.Unsafe for Hugs.

> ERROR "C:\Program Files\WinHugs\packages\network\Network\Socket.hs" -
> Error while importing DLL "C:\Program
> Files\WinHugs\packages\network\Network\Socket.dll"

It was using rtsSupportsBoundThreads, which is GHC-only.  Fixed in
the HEAD.

> ERROR "C:\Program
> Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs.hs" - Can't
> find imported module "Language.Preprocessor.Cpphs.Options"
> ERROR "C:\Program
> Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs\CppIfdef.hs"
> - Can't find imported module "Language.Preprocessor.Cpphs.Tokenise"
> ERROR "C:\Program
> Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs\MacroPass.hs"
> - Can't find imported module "Language.Preprocessor.Cpphs.Position"
> ERROR "C:\Program
> Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs\ReadFirst.hs"
> - Can't find imported module "Language.Preprocessor.Cpphs.SymTab"
> ERROR "C:\Program
> Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs\RunCpphs.hs"
> - Can't find imported module "Language.Preprocessor.Unlit"
> ERROR "C:\Program
> Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs\Tokenise.hs"
> - Can't find imported module "Language.Preprocessor.Cpphs.Position"

Not a problem, I think.  The files you listed are solely for use
via C:\Program Files\WinHugs\programs\cpphs\Main.hs, which loads OK.
It should be possible to load Language.Preprocessor.Cpphs etc from the
cpphs package.

> Perhaps Hugs should be default search in this manner, if you are 3
> dots deep, then move up 3 dots before considering this the current
> search folder? Yhc has this behaviour, GHC does not, but its very
> useful!

It's mainly useful if you load a hierarchical module by filename
instead of module name, but I'm not sure that's a practice that
should be encouraged.



More information about the Hugs-Bugs mailing list