logo       

Re: panic in arrow code "foo = returnA -< []": msg#00027

lang.haskell.glasgow.bugs

Subject: Re: panic in arrow code "foo = returnA -< []"

On Fri, Mar 12, 2004 at 02:42:15PM -0500, Isaac Jones wrote:
> On Fri, 2004-03-12 at 13:47, Ross Paterson wrote:
> > On Fri, Mar 12, 2004 at 01:30:58PM -0500, Isaac Jones wrote:
> > > The following malformed code causes a panic in ghc 6.2, and some folks
> > > on IRC tried it in various CVS snapshots, where it also breaks.
> > >
> > > module Main where
> > > import Control.Arrow
> > >
> > > foo = returnA -< []
> >
> > It's not legal to use -< except inside proc, so the bug is that this isn't
> > being rejected. Will check.
>
> In my own defense, I did say "malformed code" :)

So you did. Anyway, the message is now

The arrow command
returnA -< []
was found where an expression was expected
In the definition of `foo': foo = returnA -< []


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise