Re: module namespaces with "Prelude"

2002-04-24 Thread Alastair Reid
> Now, since there's nothing that prevents the directory hierarchies > starting at these roots from overlapping, we have a potential for > ambiguity when we want to map module names to filenames. This suggests that we might want to modify the search algorithm to find all matches and report and e

Re: module namespaces with "Prelude"

2002-04-24 Thread Johan Nordlander
On Tuesday, April 23, 2002, at 06:09 , Alastair Reid wrote: > > [copied to original recipients along with the original bug report] > > On ghc-bugs, Hal Daume reported problems with Hugs (and ghci) where > importing IO.hs causes a module called Bar.IO (i.e., Bar/IO.hs) to be > loaded - leading to

RE: misplaces SPECIALISE

2002-04-24 Thread Simon Peyton-Jones
The SPECIALIZE instance pragma must be in the instance decl itself: instance (TrieKey key, Binary elem) => Binary (Trie key elem) where put_ h (Trie e arr) = put_ h e >> put_ h (assocs arr) get h = get h >>= \e -> get h >>= \a -> return (Trie e (listArray (0,255) a)) {-# SPECIALIZE instance