summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/readFail042.hs
blob: 7849e7f023c23d4cd9b17dafd36f9c91063733a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-- Check error message for transforms if we don't have the right extension turned on

module Foo where

import Data.List
import GHC.Exts

foo = [ ()
      | x <- [1..10]
      , then take 5
      , then sortWith by x
      ]