RE: ghc cyclic import error confusing

2011-06-14 Thread Simon Peyton-Jones
Following Bryan's suggestion I've improved GHC's error message when there's a module cycle: Module imports form a cycle: module `Foo4' imports `Foo' which imports `Foo2' which imports `Foo3' which imports `Foo4' Simon |

Re: How to install GhC on a Mac without registering?

2011-06-14 Thread malcolm.wallace
For use at high school level, I would imagine that you would want to build a special distribution anyway. One that for example already includes packages, such as Gloss, that would be useful in teaching children programming in Haskell without they having to go through learning to use cabal (which

Re: How to install GhC on a Mac without registering?

2011-06-14 Thread Manuel M T Chakravarty
malcolm.wallace: For use at high school level, I would imagine that you would want to build a special distribution anyway. One that for example already includes packages, such as Gloss, that would be useful in teaching children programming in Haskell without they having to go through

Re: MonoLocalBinds and hoopl

2011-06-14 Thread Edward Z. Yang
I ran into some more code like this, and I realized there was something pretty important: the majority of let-bindings do not have any free varaibles. They could very well be floated to the top level without having to make any source level changes. So maybe let should be generalized, if no free

RE: MonoLocalBinds and hoopl

2011-06-14 Thread Simon Peyton-Jones
That is an interesting thought. As it happens, each binding records what its free variables are, so it would not be hard to check whether all the free variables were top-level-bound. Of course, it would make the rule a bit more complicated. Rather than only top level bindings are

Re: MonoLocalBinds and hoopl

2011-06-14 Thread Simon Marlow
On 14/06/2011 14:28, Simon Peyton-Jones wrote: That is an interesting thought. As it happens, each binding records what its free variables are, so it would not be hard to check whether all the free variables were top-level-bound. Of course, it would make the rule a bit more complicated.

Re: How to install GhC on a Mac without registering?

2011-06-14 Thread Donn Cave
Following up on the notion that Hugs might suit the casual introductory user better - I see that while you can find it online as a pre-built package, you're normally advised (haskell.org, Kent CS dept, etc.) to build it via MacPorts - which requires Xcode. I mention this because if anyone is

Re: Wiki page about new memcpy/memmove/memset primops need a home

2011-06-14 Thread Johan Tibell
On Wed, Jun 8, 2011 at 11:26 PM, David Terei davidte...@gmail.com wrote: I would suggest it be put under the Commentary/Compiler. Here's a first draft: http://hackage.haskell.org/trac/ghc/wiki/MemcpyOptimizations Feel free to point out things that need clarification. Cheers, Johan