fork download
  1. import System.IO
  2.  
  3. quicksort [] = []
  4. quicksort (x:xs) = quicksort [y | y <- xs, y < x] ++ [x] ++ quicksort [y | y <- xs, y >= x]
  5.  
  6. main = print . quicksort =<< getLine
  7.  
Success #stdin #stdout 0.02s 3600KB
stdin
Type something here...
stdout
"  ...Teeeeghhimnoprsty"