summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/T16700.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/T16700.hs')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/T16700.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/T16700.hs b/testsuite/tests/ghci.debugger/scripts/T16700.hs
new file mode 100644
index 0000000000..1a2ceb029f
--- /dev/null
+++ b/testsuite/tests/ghci.debugger/scripts/T16700.hs
@@ -0,0 +1,6 @@
+qsort :: [Int] -> [Int]
+qsort [] = []
+qsort (a:as) = qsort left ++ [a] ++ qsort right
+ where (left,right) = (filter (<=a) as, filter (>a) as)
+
+main = print $ qsort [4, 1, 7, 10, 3]