Commit 3d7189fd authored by Ian Lynagh's avatar Ian Lynagh

Remove the haskell98 dependency from the typecheck/should_fail tests

parent 1e77e5bc
-- Trac #2538 -- Trac #2538
module ShouldFail where module ShouldFail where
import Ix import Data.Ix
f :: (Eq a => a -> a) -> Int f :: (Eq a => a -> a) -> Int
f = error "urk" f = error "urk"
......
module ShouldFail where module ShouldFail where
import Array import Data.Array
-- !!! inadvertently using => instead of -> -- !!! inadvertently using => instead of ->
......
module ShouldFail where module ShouldFail where
import Ratio import Data.Ratio
data Integral a => P a = P { p :: a } data Integral a => P a = P { p :: a }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
module ShouldFail where module ShouldFail where
import List(inits) import Data.List(inits)
z :: [Int] z :: [Int]
z = [x | x <- [3, 2, 1], then inits] z = [x | x <- [3, 2, 1], then inits]
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
module ShouldFail where module ShouldFail where
import List(take) import Data.List(take)
z = [x | x <- [1..10], then take 5 by x] z = [x | x <- [1..10], then take 5 by x]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment