RE: Redefining built in syntax

2008-01-04 Thread Simon Peyton-Jones
| C:\Documents\Uni\packages\baseghci Prelude.hs -i -cpp -fglasgow-exts | -package-name base | GHCi, version 6.8.1: http://www.haskell.org/ghc/ :? for help | | interactive:1:22: | Failed to load interface for `System.IO': | it is not a module in the current program, or in any known

Re: Redefining built in syntax

2008-01-04 Thread Simon Marlow
Simon Peyton-Jones wrote: | C:\Documents\Uni\packages\baseghci Prelude.hs -i -cpp -fglasgow-exts | -package-name base | GHCi, version 6.8.1: http://www.haskell.org/ghc/ :? for help | | interactive:1:22: | Failed to load interface for `System.IO': | it is not a module in the current

Re: Redefining built in syntax

2008-01-03 Thread Neil Mitchell
Hi Victor, -package-name base should do the thing Thanks very much, that is the correct flag to allow built in syntax. However, turning that flag on also does other stuff, which breaks new things. Taking the module Prelude.hs, from a darcs checkout of the libraries:

Re: Redefining built in syntax

2008-01-03 Thread Tim Chevalier
Hi, Neil-- On 1/3/08, Neil Mitchell [EMAIL PROTECTED] wrote: Hi Victor, -package-name base should do the thing Thanks very much, that is the correct flag to allow built in syntax. However, turning that flag on also does other stuff, which breaks new things. Taking the module

Re: Redefining built in syntax

2008-01-01 Thread Victor Nazarov
On Dec 31, 2007 7:58 PM, Neil Mitchell [EMAIL PROTECTED] wrote: Hi, I'm getting errors such as: C:/Documents/Uni/packages/base/GHC/Base.lhs:270:12: Illegal binding of built-in syntax: [] When I try and compile GHC/Base.lhs using the GHC API. Is there some flag I can pass to allow the

Redefining built in syntax

2007-12-31 Thread Neil Mitchell
Hi, I'm getting errors such as: C:/Documents/Uni/packages/base/GHC/Base.lhs:270:12: Illegal binding of built-in syntax: [] When I try and compile GHC/Base.lhs using the GHC API. Is there some flag I can pass to allow the rebinding of built in syntax? Thanks Neil