[Haskell-beginners] About 'Curry'

Tobias Brandt tob.brandt at googlemail.com
Fri Dec 10 13:05:42 CET 2010


To use an operator as a function you must use the section notation:

pl a = (a ++)

On 10 December 2010 12:59, 吴兴博 <wuxb45 at gmail.com> wrote:
> pl a b = a ++ b
>
> pl a = a ++
>
> The second definition cannot be accept by neigher ghci nor ghc.
> What's the problem?
>
> (ghc 6.12.3)
>
> --
> ----------------
> WU XingBo
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>



More information about the Beginners mailing list