On Apr 28, 2011 9:25 AM, "Ertugrul Soeylemez" <e...@ertes.de> wrote:
>
>
> > Sometimes I wish for a -fphp flag that would turn some type errors
> > into warnings. Example:
> >
> > v.hs:8:6:
> >     Couldn't match expected type `[a]' against inferred type `()'
> >     In the first argument of `a', namely `y'
> >     In the expression: a y
> >     In the definition of `c': c = a y
> >
> > GHC could substitute 'y = error "Couldn't match expected type `[a]'
> > against inferred type `()'"' and compile anyway.
> >
> > Would that bring Haskell closer to Python?
>
> It would make people abuse that feature.  I don't want it.

I do, particularly in GHCi.  I don't mind if Haskell refuses to build a
binary, but having to comment out coded in order to load bits in GHCi is
definitely a pain.

-- 
Chris Smith
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to