I accidentally the Prelude

Josef Svenningsson josef.svenningsson at gmail.com
Tue Mar 2 07:18:32 EST 2010


On Tue, Mar 2, 2010 at 12:21 PM, Simon Marlow <marlowsd at gmail.com> wrote:
> On 02/03/2010 08:59, Josef Svenningsson wrote:
>>
>> On Mon, Mar 1, 2010 at 11:54 PM, Jeremy Shaw<jeremy at n-heptane.com>  wrote:
>>>
>>> is there, by chance, a file named Prelude.hs in the working directory?
>>> (the
>>> directory you are in when you type ghci?)
>>> - jeremy
>>>
>> Ah. Thanks! That was indeed the problem.
>>
>> Though I think ghci:s response could be a little bit more transparent.
>
> Sure, how about this:
>
> $ touch Prelude.hs
> $ ghci
> GHCi, version 6.12.1: http://www.haskell.org/ghc/  :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer-gmp ... linking ... done.
> Loading package base ... linking ... done.
> Loading package ffi-1.0 ... linking ... done.
> Prelude>
>
> ie. with 6.12.1 it just works.
>
Brilliant! Thanks.

Josef


More information about the Glasgow-haskell-users mailing list