diff options
Diffstat (limited to 'testsuite/tests/deSugar/should_run/dsrun016.hs')
-rw-r--r-- | testsuite/tests/deSugar/should_run/dsrun016.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_run/dsrun016.hs b/testsuite/tests/deSugar/should_run/dsrun016.hs new file mode 100644 index 0000000000..38747a46e3 --- /dev/null +++ b/testsuite/tests/deSugar/should_run/dsrun016.hs @@ -0,0 +1,14 @@ +-- Tests grouping WITH a using clause but WITHOUT a by clause + +{-# OPTIONS_GHC -XTransformListComp #-} + +module Main where + +import Data.List(inits) + +main = putStrLn (show output) + where + output = [ x + | y <- [1..3] + , x <- "hello" + , then group using inits ] |