[Haskell-cafe] Quicksort in Haskell

yrazes yrazes at gmail.com
Tue Nov 8 00:41:17 CET 2011


Sorry, but I got this error while I compile it.
*
*
*[yulys at yulys haskell]$ ghc -o quick quick.hs*
*[1 of 1] Compiling Main             ( quick.hs, quick.o )*
*
*
*quick.hs:7:11: parse error on input `<-'*
*[yulys at yulys haskell]$ *





On Mon, Nov 7, 2011 at 4:23 PM, KC <kc1956 at gmail.com> wrote:

> What is your question?
>
>
>
> On Mon, Nov 7, 2011 at 9:45 AM, yrazes <yrazes at gmail.com> wrote:
> > module Main (main) where
> > quicksort [] = []
> > quicksort (s:xs) = quicksort [x|x <- xs,x < s] ++ [s] ++ quicksort [x|x
> <-
> > xs,x >= s]
> > main = putStr "Ingrese la lista\n"
> >        [xs] <- getLine
> > _______________________________________________
> > Haskell-Cafe mailing list
> > Haskell-Cafe at haskell.org
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
> >
> >
>
>
>
> --
> --
> Regards,
> KC
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111107/fa80d9b3/attachment.htm>


More information about the Haskell-Cafe mailing list