
can anyone help me how to get the dozen number? using Int example dozen 1020 the expected result is: 2 --------------------------------- Do you Yahoo!? Y! Web Hosting - Let the expert host your web site

Hi okay last stupid question!.... I'm trying to compile one of Okasaki's data structures.....For some reason I can't find references to these packages Control.Monad.Identity and Sequence. WinHugs barfs on the former and ghc on the later, I'm using ghc --make -package lang -fglasgow-exts AssocList.hs Does anyone know how to resolve these? Thanks Jason.

For some reason I can't find references to these packages Control.Monad.Identity and Sequence. WinHugs barfs on the former
The current release of Hugs doesn't support hierarchial module names. The next release will support them. See http://haskell.org/pipermail/hugs-users/2002-October/000267.html for more details.
and ghc on the later, I'm using
ghc --make -package lang -fglasgow-exts AssocList.hs
I suspect you need -package data but haven't tested this. (btw There were some remarks that Chris's library might be dropped from distributions because no-one is supporting it. I don't recall whether a decision was made on this.) -- Alastair Reid alastair@reid-consulting-uk.ltd.uk Reid Consulting (UK) Limited http://www.reid-consulting-uk.ltd.uk/alastair/

G'day all. On Mon, Oct 28, 2002 at 08:47:08AM +0000, Alastair Reid wrote:
(btw There were some remarks that Chris's library might be dropped from distributions because no-one is supporting it. I don't recall whether a decision was made on this.)
If Jason is using a version of Edison that requires Control.Monad.Identity, it's almost certainly the HFL version, which is indeed supported (by me, mostly). However it is very alpha (especially the interface), so I wouldn't recommend packaging it at the moment. In particular, Hugs is not currently a Supported Platform(tm). Cheers, Andrew Bromage

In particular, Hugs is not currently a Supported Platform(tm).
Please let us know if there's anything in the forthcoming release that needs changed to support this library. -- Alastair Reid alastair@reid-consulting-uk.ltd.uk Reid Consulting (UK) Limited http://www.reid-consulting-uk.ltd.uk/alastair/

Hi Yes Andrew, I'm using the TernaryTrie that u created.....I tired the suggestion that Alastair gave me regarding the use of -package data but it still complained saying that it could not find module Control.Monad.Identity... How are u compiling it? Note that I'm using ghc 5.02.2 on windows. Thanks Jason.
G'day all.
On Mon, Oct 28, 2002 at 08:47:08AM +0000, Alastair Reid wrote:
(btw There were some remarks that Chris's library might be dropped from distributions because no-one is supporting it. I don't recall whether a decision was made on this.)
If Jason is using a version of Edison that requires Control.Monad.Identity, it's almost certainly the HFL version, which is indeed supported (by me, mostly).
However it is very alpha (especially the interface), so I wouldn't recommend packaging it at the moment. In particular, Hugs is not currently a Supported Platform(tm).
Cheers, Andrew Bromage _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I believe you need 5.04 or greater to get the hierarchical libraries. You might try just using "Monad" instead of "Control.Monad.Identity" with 5.02.2, but I can't guarentee anything. Even better: upgrade GHC :) - Hal -- Hal Daume III "Computer science is no more about computers | hdaume@isi.edu than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume On Wed, 30 Oct 2002, Jason Smith wrote:
Hi
Yes Andrew, I'm using the TernaryTrie that u created.....I tired the suggestion that Alastair gave me regarding the use of -package data but it still complained saying that it could not find module Control.Monad.Identity...
How are u compiling it? Note that I'm using ghc 5.02.2 on windows.
Thanks Jason.
G'day all.
On Mon, Oct 28, 2002 at 08:47:08AM +0000, Alastair Reid wrote:
(btw There were some remarks that Chris's library might be dropped from distributions because no-one is supporting it. I don't recall whether a decision was made on this.)
If Jason is using a version of Edison that requires Control.Monad.Identity, it's almost certainly the HFL version, which is indeed supported (by me, mostly).
However it is very alpha (especially the interface), so I wouldn't recommend packaging it at the moment. In particular, Hugs is not currently a Supported Platform(tm).
Cheers, Andrew Bromage _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

G'day all. On Tue, Oct 29, 2002 at 11:40:40AM +0000, Alastair Reid wrote:
In particular, Hugs is not currently a Supported Platform(tm).
Please let us know if there's anything in the forthcoming release that needs changed to support this library.
There probably won't be any problems apart from unportable code and/or unportable build systems on my part, but I'll try to give it a go anyway. Cheers, Andrew Bromage

Hal Daume III wrote:
I believe you need 5.04 or greater to get the hierarchical libraries. You might try just using "Monad" instead of "Control.Monad.Identity" with 5.02.2, but I can't guarentee anything. Even better: upgrade GHC :)
AFAICT, you want to import "MonadIdentity" from the "lang" package.
The constructor itself is called "Identity", so you shouldn't need to
change anything other than the import statement.
--
Glynn Clements

G'day all. On Wed, Oct 30, 2002 at 12:56:51PM +1300, Jason Smith wrote:
Yes Andrew, I'm using the TernaryTrie that u created.....I tired the suggestion that Alastair gave me regarding the use of -package data but it still complained saying that it could not find module Control.Monad.Identity...
How are u compiling it? Note that I'm using ghc 5.02.2 on windows.
Like Hal said, I'm using 5.04. Importing MonadIdentity (using -package lang) will probably work, but you'll have to change it everywhere, unfortunately. If it's at all possible, you should definitely upgrade your version of GHC, particularly if you want to track the CVS tree for HFL. Cheers, Andrew Bromage

Cheers....I just downloaded 5.04, I'm getting other errors now about the lack of the definition for constructor "M" i.e. TernaryTrie.hs:165: Data constructor not in scope: `M' not to sure what the problem is, but I've got a few other things to worry about at the moment, so I'll come back to it later.. Cheers for all ur input. Jason
I believe you need 5.04 or greater to get the hierarchical libraries. You might try just using "Monad" instead of "Control.Monad.Identity" with 5.02.2, but I can't guarentee anything. Even better: upgrade GHC :)
- Hal
-- Hal Daume III
"Computer science is no more about computers | hdaume@isi.edu than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume
On Wed, 30 Oct 2002, Jason Smith wrote:
Hi
Yes Andrew, I'm using the TernaryTrie that u created.....I tired the suggestion that Alastair gave me regarding the use of -package data but it still complained saying that it could not find module Control.Monad.Identity...
How are u compiling it? Note that I'm using ghc 5.02.2 on windows.
Thanks Jason.
G'day all.
On Mon, Oct 28, 2002 at 08:47:08AM +0000, Alastair Reid wrote:
(btw There were some remarks that Chris's library might be dropped from distributions because no-one is supporting it. I don't recall whether a decision was made on this.)
If Jason is using a version of Edison that requires Control.Monad.Identity, it's almost certainly the HFL version, which is indeed supported (by me, mostly).
However it is very alpha (especially the interface), so I wouldn't recommend packaging it at the moment. In particular, Hugs is not currently a Supported Platform(tm).
Cheers, Andrew Bromage _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

G'day. On Wed, Oct 30, 2002 at 01:49:37PM +1300, Jason Smith wrote:
i.e. TernaryTrie.hs:165: Data constructor not in scope: `M'
There is no M in that module anywhere, and I'm pretty sure there never was. Please update your copy from CVS and, if it still isn't working, send a bug report to hfl-devel@lists.sourceforge.net. Cheers, Andrew Bromage

On Wed, Oct 30, 2002 at 11:04:41AM +1100, Andrew J Bromage wrote:
G'day all.
On Tue, Oct 29, 2002 at 11:40:40AM +0000, Alastair Reid wrote:
In particular, Hugs is not currently a Supported Platform(tm).
Please let us know if there's anything in the forthcoming release that needs changed to support this library.
There probably won't be any problems apart from unportable code and/or unportable build systems on my part, but I'll try to give it a go anyway.
The library needs updating to account for change in Haskell 98: method definitions in instance declarations are no longer qualified, e.g. instance Ord k => A.Assoc (FM k) [k] where {A.toSeq = toSeq; A.keys = keys; A.mapWithKey = mapWithKey; A.foldWithKey = foldWithKey; A.filterWithKey = filterWithKey; A.partitionWithKey = partitionWithKey} should now be instance Ord k => A.Assoc (FM k) [k] where {toSeq = toSeq; keys = keys; mapWithKey = mapWithKey; foldWithKey = foldWithKey; filterWithKey = filterWithKey; partitionWithKey = partitionWithKey} (The version in hslibs already has this change.) The library itself isn't hierarchically organized, but with the above change, and the Hugs bugfix Sigbjorn did yesterday, it works with the new hugs +N

G'day all. On Wed, Oct 30, 2002 at 10:06:48AM +0000, Ross Paterson wrote:
The library needs updating to account for change in Haskell 98: method definitions in instance declarations are no longer qualified,
Thanks. I'll set to work on that now. Cheers, Andrew Bromage
participants (7)
-
Alastair Reid
-
Andrew J Bromage
-
Glynn Clements
-
Hal Daume III
-
Jason Smith
-
Nuno Silva
-
Ross Paterson