Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
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
Sorry, but I got this error while I compile it.
*[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@... haskell]$ *
On Mon, Nov 7, 2011 at 4:23 PM, KC <kc1956@...> wrote:
> What is your question?
> On Mon, Nov 7, 2011 at 9:45 AM, yrazes <yrazes@...> 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@...
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
Sign up for the SourceForge newsletter: