| 1 | Sat Jan 17 17:47:07 W. Europe Standard Time 2009 Twan van Laarhoven <twanvl@gmail.com> |
|---|
| 2 | * Tests for DeriveFunctor |
|---|
| 3 | |
|---|
| 4 | New patches: |
|---|
| 5 | |
|---|
| 6 | [Tests for DeriveFunctor |
|---|
| 7 | Twan van Laarhoven <twanvl@gmail.com>**20090117164707] { |
|---|
| 8 | hunk ./tests/ghc-regress/deriving/should_compile/all.T 21 |
|---|
| 9 | +test('drv-functor1', normal, compile, ['']) |
|---|
| 10 | +test('drv-functor2', normal, compile, ['']) |
|---|
| 11 | addfile ./tests/ghc-regress/deriving/should_compile/drv-functor1.hs |
|---|
| 12 | hunk ./tests/ghc-regress/deriving/should_compile/drv-functor1.hs 1 |
|---|
| 13 | +{-# LANGUAGE DeriveFunctor #-} |
|---|
| 14 | +{-# LANGUAGE ExistentialQuantification #-} |
|---|
| 15 | +{-# LANGUAGE RankNTypes #-} |
|---|
| 16 | +{-# LANGUAGE FlexibleContexts #-} |
|---|
| 17 | + |
|---|
| 18 | +module ShouldCompile where |
|---|
| 19 | + |
|---|
| 20 | +data Trivial a = Trivial |
|---|
| 21 | + deriving (Functor) |
|---|
| 22 | + |
|---|
| 23 | +data Fun a = Fun (Int -> a) |
|---|
| 24 | + deriving (Functor) |
|---|
| 25 | + |
|---|
| 26 | +-- lots of different things |
|---|
| 27 | +data Strange a b c |
|---|
| 28 | + = T1 a b c |
|---|
| 29 | + | T2 [a] [b] [c] -- lists |
|---|
| 30 | + | T3 [[a]] [[b]] [[c]] -- nested lists |
|---|
| 31 | + | T4 (c,(b,b),(c,c)) -- tuples |
|---|
| 32 | + | T5 ([c],Strange a b c) -- tycons |
|---|
| 33 | + | T6 (Int -> c) -- function types |
|---|
| 34 | + | T7 (a -> (c,a)) -- functions and tuples |
|---|
| 35 | + | T8 ((c -> a) -> a) -- continuation |
|---|
| 36 | + deriving (Functor) |
|---|
| 37 | + |
|---|
| 38 | +data NotPrimitivelyRecursive a |
|---|
| 39 | + = S1 (NotPrimitivelyRecursive (a,a)) |
|---|
| 40 | + | S2 a |
|---|
| 41 | + deriving (Functor,Eq) |
|---|
| 42 | + |
|---|
| 43 | +data Eq a => StupidConstraint a b = Stupid a b |
|---|
| 44 | + deriving (Functor) |
|---|
| 45 | + |
|---|
| 46 | +-- requires Functor constraint on f and g |
|---|
| 47 | +data Compose f g a = Compose (f (g a)) |
|---|
| 48 | + deriving (Functor) |
|---|
| 49 | + |
|---|
| 50 | +-- We can't derive Functor for the following type. |
|---|
| 51 | +-- it needs both (Functor (f Int)) and (Functor (f Bool)) |
|---|
| 52 | +-- i.e.: |
|---|
| 53 | +-- instance (Functor (f Bool), Functor (f Int)) => Functor (ComplexConstraint f) |
|---|
| 54 | +-- This requires FlexibleContexts and UndecidableInstances |
|---|
| 55 | +data ComplexConstraint f a = ComplexContraint (f Int (f Bool a,a)) |
|---|
| 56 | +-- deriving (Functor) |
|---|
| 57 | + |
|---|
| 58 | +data Universal a |
|---|
| 59 | + = Universal (forall b. (b,[a])) |
|---|
| 60 | + | Universal2 (forall f. Functor f => (f a)) |
|---|
| 61 | + | Universal3 (forall a. a -> Int) -- reuse a |
|---|
| 62 | + | NotReallyUniversal (forall b. a) |
|---|
| 63 | + deriving (Functor) |
|---|
| 64 | + |
|---|
| 65 | +-- Ghc doesn't allow deriving for non-Haskell98 data constructors |
|---|
| 66 | +data Existential b |
|---|
| 67 | + = forall a. ExistentialList [a] |
|---|
| 68 | + | forall f. Functor f => ExistentialFunctor (f b) |
|---|
| 69 | + | forall b. SneakyUseSameName (b -> Bool) |
|---|
| 70 | +-- deriving (Functor) |
|---|
| 71 | + |
|---|
| 72 | +-- Don't get confused by synonyms |
|---|
| 73 | +type IntFun a = Int -> a |
|---|
| 74 | +data IntFunD a = IntFunD (IntFun a) |
|---|
| 75 | + deriving (Functor) |
|---|
| 76 | + |
|---|
| 77 | addfile ./tests/ghc-regress/deriving/should_compile/drv-functor2.hs |
|---|
| 78 | hunk ./tests/ghc-regress/deriving/should_compile/drv-functor2.hs 1 |
|---|
| 79 | +{-# LANGUAGE GeneralizedNewtypeDeriving #-} |
|---|
| 80 | + |
|---|
| 81 | +module ShouldCompile where |
|---|
| 82 | + |
|---|
| 83 | +-- Deriving Functor should still work with GeneralizedNewtypeDeriving instead of DeriveFunctor |
|---|
| 84 | + |
|---|
| 85 | +newtype List a = List [a] |
|---|
| 86 | + deriving (Functor) |
|---|
| 87 | + |
|---|
| 88 | hunk ./tests/ghc-regress/deriving/should_fail/all.T 26 |
|---|
| 89 | +test('drvfail-functor1', normal, compile_fail, ['']) |
|---|
| 90 | +test('drvfail-functor2', normal, compile_fail, ['']) |
|---|
| 91 | addfile ./tests/ghc-regress/deriving/should_fail/drvfail-functor1.hs |
|---|
| 92 | hunk ./tests/ghc-regress/deriving/should_fail/drvfail-functor1.hs 1 |
|---|
| 93 | +module ShouldFail where |
|---|
| 94 | + |
|---|
| 95 | +-- Derive Functor without a DeriveFunctor language pragma |
|---|
| 96 | + |
|---|
| 97 | +data List a = Nil | Cons a (List a) |
|---|
| 98 | + deriving Functor |
|---|
| 99 | addfile ./tests/ghc-regress/deriving/should_fail/drvfail-functor1.stderr |
|---|
| 100 | hunk ./tests/ghc-regress/deriving/should_fail/drvfail-functor1.stderr 1 |
|---|
| 101 | + |
|---|
| 102 | +drvfail-functor1.hs:6:13: |
|---|
| 103 | + Can't make a derived instance of `Functor List' |
|---|
| 104 | + (You need -XDeriveFunctor to derive an instance for this class) |
|---|
| 105 | + In the data type declaration for `List' |
|---|
| 106 | addfile ./tests/ghc-regress/deriving/should_fail/drvfail-functor2.hs |
|---|
| 107 | hunk ./tests/ghc-regress/deriving/should_fail/drvfail-functor2.hs 1 |
|---|
| 108 | +{-# LANGUAGE DeriveFunctor #-} |
|---|
| 109 | +module ShouldFail where |
|---|
| 110 | + |
|---|
| 111 | +-- Derive Functor on a type that uses 'a' in the wrong places |
|---|
| 112 | + |
|---|
| 113 | +newtype InFunctionArgument a = InFunctionArgument (a -> Int) |
|---|
| 114 | + deriving (Functor) |
|---|
| 115 | + |
|---|
| 116 | +newtype OnSecondArg a = OnSecondArg (Either a a) |
|---|
| 117 | + deriving (Functor) |
|---|
| 118 | + |
|---|
| 119 | +-- Derive Functor on a type with no arguments |
|---|
| 120 | + |
|---|
| 121 | +newtype NoArguments = NoArguments Int |
|---|
| 122 | + deriving (Functor) |
|---|
| 123 | + |
|---|
| 124 | +-- Derive Functor on a type with extra stupid-contraints on 'a' |
|---|
| 125 | + |
|---|
| 126 | +data Eq a => StupidConstraint a = StupidType a |
|---|
| 127 | + deriving (Functor) |
|---|
| 128 | + |
|---|
| 129 | +-- A missing Functor instance |
|---|
| 130 | + |
|---|
| 131 | +data NoFunctor a = NoFunctor |
|---|
| 132 | +data UseNoFunctor a = UseNoFunctor (NoFunctor a) |
|---|
| 133 | + deriving (Functor) |
|---|
| 134 | addfile ./tests/ghc-regress/deriving/should_fail/drvfail-functor2.stderr |
|---|
| 135 | hunk ./tests/ghc-regress/deriving/should_fail/drvfail-functor2.stderr 1 |
|---|
| 136 | + |
|---|
| 137 | +drvfail-functor2.hs:7:13: |
|---|
| 138 | + Can't make a derived instance of `Functor InFunctionArgument' |
|---|
| 139 | + (`InFunctionArgument' uses the type variable in a function argument) |
|---|
| 140 | + In the newtype declaration for `InFunctionArgument' |
|---|
| 141 | + |
|---|
| 142 | +drvfail-functor2.hs:10:13: |
|---|
| 143 | + Can't make a derived instance of `Functor OnSecondArg' |
|---|
| 144 | + (`OnSecondArg' uses the type variable in an argument other than the last) |
|---|
| 145 | + In the newtype declaration for `OnSecondArg' |
|---|
| 146 | + |
|---|
| 147 | +drvfail-functor2.hs:15:13: |
|---|
| 148 | + Cannot derive well-kinded instance of form `Functor (NoArguments ...)' |
|---|
| 149 | + Class `Functor' expects an argument of kind `* -> *' |
|---|
| 150 | + In the newtype declaration for `NoArguments' |
|---|
| 151 | + |
|---|
| 152 | +drvfail-functor2.hs:20:13: |
|---|
| 153 | + Can't derive instances where the instance context mentions |
|---|
| 154 | + type variables that are not data type parameters |
|---|
| 155 | + Offending constraint: Eq a |
|---|
| 156 | + When deriving the instance for (Functor StupidConstraint) |
|---|
| 157 | + |
|---|
| 158 | +drvfail-functor2.hs:26:13: |
|---|
| 159 | + No instance for (Functor NoFunctor) |
|---|
| 160 | + arising from the 'deriving' clause of a data type declaration |
|---|
| 161 | + at drvfail-functor2.hs:26:13-19 |
|---|
| 162 | + Possible fix: |
|---|
| 163 | + add an instance declaration for (Functor NoFunctor) |
|---|
| 164 | + or use a standalone 'deriving instance' declaration instead, |
|---|
| 165 | + so you can specify the instance context yourself |
|---|
| 166 | + When deriving the instance for (Functor UseNoFunctor) |
|---|
| 167 | hunk ./tests/ghc-regress/deriving/should_run/all.T 29 |
|---|
| 168 | +test('drvrun-functor1', normal, compile_and_run, ['']) |
|---|
| 169 | addfile ./tests/ghc-regress/deriving/should_run/drvrun-functor1.hs |
|---|
| 170 | hunk ./tests/ghc-regress/deriving/should_run/drvrun-functor1.hs 1 |
|---|
| 171 | +{-# LANGUAGE DeriveFunctor #-} |
|---|
| 172 | + |
|---|
| 173 | +module Main where |
|---|
| 174 | + |
|---|
| 175 | +-- Derive functor for a simple data type |
|---|
| 176 | + |
|---|
| 177 | +data List a = Nil | Cons a (List a) |
|---|
| 178 | + deriving (Functor,Show) |
|---|
| 179 | + |
|---|
| 180 | +someList = Cons 1 (Cons 1 (Cons 2 (Cons 3 Nil))) |
|---|
| 181 | +doubleList = fmap (*2) someList |
|---|
| 182 | + |
|---|
| 183 | +test1 = do |
|---|
| 184 | + putStr "normal: " >> print someList |
|---|
| 185 | + putStr "double: " >> print doubleList |
|---|
| 186 | + |
|---|
| 187 | +-- Derive functor for a data type with functions and tuples |
|---|
| 188 | + |
|---|
| 189 | +data ReaderWriter r w a = RW { runRW :: r -> (a,w) } |
|---|
| 190 | + deriving (Functor) |
|---|
| 191 | + |
|---|
| 192 | +data Cont r a = Cont { runCont :: (a -> r) -> r } |
|---|
| 193 | + deriving (Functor) |
|---|
| 194 | + |
|---|
| 195 | +test2 = do |
|---|
| 196 | + let rw = RW (\r -> ("something",r*3)) |
|---|
| 197 | + putStr "normal: " >> print (runRW rw 123) |
|---|
| 198 | + putStr "reverse: " >> print (runRW (fmap reverse rw) 456) |
|---|
| 199 | + let five = Cont ($ 5) |
|---|
| 200 | + putStr "normal: " >> runCont five print |
|---|
| 201 | + putStr "double: " >> runCont (fmap (*2) five) print |
|---|
| 202 | + |
|---|
| 203 | +-- Derive functor in such a way that we need a constraint |
|---|
| 204 | + |
|---|
| 205 | +newtype Compose f g a = Compose (f (g a)) |
|---|
| 206 | + deriving (Functor,Show) |
|---|
| 207 | + |
|---|
| 208 | +listOfLists = Compose [[1,2,3],[7,8,9]] |
|---|
| 209 | + |
|---|
| 210 | +test3 = do |
|---|
| 211 | + putStr "normal: " >> print listOfLists |
|---|
| 212 | + putStr "double: " >> print (fmap (*2) listOfLists) |
|---|
| 213 | + |
|---|
| 214 | +-- All tests |
|---|
| 215 | + |
|---|
| 216 | +main = do |
|---|
| 217 | + test1 |
|---|
| 218 | + test2 |
|---|
| 219 | + test3 |
|---|
| 220 | addfile ./tests/ghc-regress/deriving/should_run/drvrun-functor1.stdout |
|---|
| 221 | hunk ./tests/ghc-regress/deriving/should_run/drvrun-functor1.stdout 1 |
|---|
| 222 | +normal: Cons 1 (Cons 1 (Cons 2 (Cons 3 Nil))) |
|---|
| 223 | +double: Cons 2 (Cons 2 (Cons 4 (Cons 6 Nil))) |
|---|
| 224 | +normal: ("something",369) |
|---|
| 225 | +reverse: ("gnihtemos",1368) |
|---|
| 226 | +normal: 5 |
|---|
| 227 | +double: 10 |
|---|
| 228 | +normal: Compose [[1,2,3],[7,8,9]] |
|---|
| 229 | +double: Compose [[2,4,6],[14,16,18]] |
|---|
| 230 | } |
|---|
| 231 | |
|---|
| 232 | Context: |
|---|
| 233 | |
|---|
| 234 | [Normalises slashes in the ghcpkg03 and ghcpkg05 tests |
|---|
| 235 | Ian Lynagh <igloo@earth.li>**20090116175512] |
|---|
| 236 | [Canonicalise the prefix used by test cabal01 |
|---|
| 237 | Ian Lynagh <igloo@earth.li>**20090116175205] |
|---|
| 238 | [Add a GCC hack for the new build system too |
|---|
| 239 | Ian Lynagh <igloo@earth.li>**20090116174651] |
|---|
| 240 | [Hack to find gcc for an in-place ghc |
|---|
| 241 | Ian Lynagh <igloo@earth.li>**20090116173917] |
|---|
| 242 | [Also canonicalise the install prefix for the timeout program |
|---|
| 243 | Ian Lynagh <igloo@earth.li>**20090116163749] |
|---|
| 244 | [Canonicalise paths in the testsuite |
|---|
| 245 | Ian Lynagh <igloo@earth.li>**20090116161459] |
|---|
| 246 | [update output after changes to ghc-pkg |
|---|
| 247 | Simon Marlow <marlowsd@gmail.com>**20090115134134 |
|---|
| 248 | Ignore-this: 6ebada92e562e38bc00e1a65735e6aa4 |
|---|
| 249 | ] |
|---|
| 250 | [Move the Makefile changes around so they don't cause test failures |
|---|
| 251 | Ian Lynagh <igloo@earth.li>**20090114191621 |
|---|
| 252 | Our "make clean" detection was causing problems for tests which had |
|---|
| 253 | their own local clean target. |
|---|
| 254 | ] |
|---|
| 255 | [Don't fail "make clean" becaues GHC etc can't be found |
|---|
| 256 | Ian Lynagh <igloo@earth.li>**20090114180815] |
|---|
| 257 | [Test Trac #2944 |
|---|
| 258 | simonpj@microsoft.com**20090113171931 |
|---|
| 259 | Ignore-this: 4c3fb381dc8186637196783f09520f55 |
|---|
| 260 | ] |
|---|
| 261 | [Follow error message change |
|---|
| 262 | simonpj@microsoft.com**20090113170841 |
|---|
| 263 | Ignore-this: bab0d571dffe70fc523fcbcec18bbb5e |
|---|
| 264 | ] |
|---|
| 265 | [Test Trac #2931 |
|---|
| 266 | simonpj@microsof.com**20090113160225 |
|---|
| 267 | Ignore-this: 10f9c68d848b1503e05e44dab84b8a2a |
|---|
| 268 | ] |
|---|
| 269 | [Tweak top-level Makefile |
|---|
| 270 | Ian Lynagh <igloo@earth.li>**20090113135112] |
|---|
| 271 | [mk/test.mk wibble |
|---|
| 272 | Ian Lynagh <igloo@earth.li>**20090113134706] |
|---|
| 273 | [add boot target to the top-level Makefile; fix boot target in test.mk |
|---|
| 274 | Simon Marlow <marlowsd@gmail.com>**20090113090944 |
|---|
| 275 | Ignore-this: 99fc8adcf04105ebf9ec966560aa0e43 |
|---|
| 276 | ] |
|---|
| 277 | [Add a boot target, and tidy up the Makefile a bit |
|---|
| 278 | Ian Lynagh <igloo@earth.li>**20090110214204] |
|---|
| 279 | [Fix test 2566 in the new build system |
|---|
| 280 | Ian Lynagh <igloo@earth.li>**20090109211835] |
|---|
| 281 | [Update tests following change to pretty printing Haddock comments |
|---|
| 282 | David Waern <david.waern@gmail.com>**20090110203539] |
|---|
| 283 | [Fix rn.prog006 on Windows |
|---|
| 284 | Ian Lynagh <igloo@earth.li>**20090109182257] |
|---|
| 285 | [Make ghciprog004 not rely on $(CC) being correctly defined |
|---|
| 286 | Ian Lynagh <igloo@earth.li>**20090109180953] |
|---|
| 287 | [Fix readwrite00[12] on Windows |
|---|
| 288 | Ian Lynagh <igloo@earth.li>**20090109180745] |
|---|
| 289 | [Fix ioeGetHandle001 on Windows |
|---|
| 290 | Ian Lynagh <igloo@earth.li>**20090109180713] |
|---|
| 291 | [Fix ioeGetFileName001 on Windows |
|---|
| 292 | Ian Lynagh <igloo@earth.li>**20090109180652] |
|---|
| 293 | [Fix ioeGetErrorString001 on Windows |
|---|
| 294 | Ian Lynagh <igloo@earth.li>**20090109180630] |
|---|
| 295 | [Fix hSeek003 on Windows |
|---|
| 296 | Ian Lynagh <igloo@earth.li>**20090109180609] |
|---|
| 297 | [Fix hSeek002 on Windows |
|---|
| 298 | Ian Lynagh <igloo@earth.li>**20090109180549] |
|---|
| 299 | [Fix hReady001 on Windows |
|---|
| 300 | Ian Lynagh <igloo@earth.li>**20090109180525] |
|---|
| 301 | [Fix hIsEOF002 on Windows |
|---|
| 302 | Ian Lynagh <igloo@earth.li>**20090109180500] |
|---|
| 303 | [Fix hGetPosn001 on Windows |
|---|
| 304 | Ian Lynagh <igloo@earth.li>**20090109180429] |
|---|
| 305 | [Fix hGetLine001 |
|---|
| 306 | Ian Lynagh <igloo@earth.li>**20090109180309] |
|---|
| 307 | [Tidy up the Makefile |
|---|
| 308 | Ian Lynagh <igloo@earth.li>**20090109160356] |
|---|
| 309 | [Remove target.mk |
|---|
| 310 | Ian Lynagh <igloo@earth.li>**20090109160332] |
|---|
| 311 | [Remove redundant CLEAN_FILES |
|---|
| 312 | Ian Lynagh <igloo@earth.li>**20090109160110] |
|---|
| 313 | [Add clean and distclean targets |
|---|
| 314 | Ian Lynagh <igloo@earth.li>**20090109153929] |
|---|
| 315 | [Remove otu-of-date comments |
|---|
| 316 | Ian Lynagh <igloo@earth.li>**20090109152347] |
|---|
| 317 | [Fix timeout's clean target |
|---|
| 318 | Ian Lynagh <igloo@earth.li>**20090109152232] |
|---|
| 319 | [Look for .exe when looking for the compiler, too |
|---|
| 320 | Ian Lynagh <igloo@earth.li>**20090109151915] |
|---|
| 321 | [Add a "show" target |
|---|
| 322 | Ian Lynagh <igloo@earth.li>**20090109151633] |
|---|
| 323 | [Wibble error message to not confused vim's syntax highlighting |
|---|
| 324 | Ian Lynagh <igloo@earth.li>**20090109151613] |
|---|
| 325 | [When checking programs exists, check prog.exe too |
|---|
| 326 | Ian Lynagh <igloo@earth.li>**20090109150940] |
|---|
| 327 | [Check that make supports eval |
|---|
| 328 | Ian Lynagh <igloo@earth.li>**20090109150843] |
|---|
| 329 | [Don't insist on python being in /usr/bin |
|---|
| 330 | Ian Lynagh <igloo@earth.li>**20090109144758] |
|---|
| 331 | [Put the endif's in the right places |
|---|
| 332 | Ian Lynagh <igloo@earth.li>**20090108161931] |
|---|
| 333 | [Actually define TEST_HC for the new build system |
|---|
| 334 | Ian Lynagh <igloo@earth.li>**20090108161809] |
|---|
| 335 | [Better error messages |
|---|
| 336 | Ian Lynagh <igloo@earth.li>**20090108161708] |
|---|
| 337 | [Disentangle the testsuite from the compiler's build system |
|---|
| 338 | Ian Lynagh <igloo@earth.li>**20090108161100] |
|---|
| 339 | [Remove uses of MKDIRHIER in favour of mkdir |
|---|
| 340 | Ian Lynagh <igloo@earth.li>**20090108155818] |
|---|
| 341 | [Remove uses of pwd in favour of abspath |
|---|
| 342 | Ian Lynagh <igloo@earth.li>**20090108155459] |
|---|
| 343 | [Consistently use GHC_PKG instead of GHC_PKG_INPLACE |
|---|
| 344 | Ian Lynagh <igloo@earth.li>**20090108143135] |
|---|
| 345 | [Test Trac #2914 |
|---|
| 346 | simonpj@microsoft.com**20090108123927] |
|---|
| 347 | [add test for #2910; move #1980 into validate |
|---|
| 348 | Simon Marlow <marlowsd@gmail.com>**20090106153210] |
|---|
| 349 | [Test Trac #2756 |
|---|
| 350 | simonpj@microsoft.com**20090102152606] |
|---|
| 351 | [Add comments to a very tricky test |
|---|
| 352 | simonpj@microsoft.com**20090102145608] |
|---|
| 353 | [Change in error messages |
|---|
| 354 | simonpj@microsoft.com**20090102145549] |
|---|
| 355 | [Test Trac #2721 |
|---|
| 356 | simonpj@microsoft.com**20081231164227] |
|---|
| 357 | [Track error message changes |
|---|
| 358 | simonpj@microsoft.com**20081231155707] |
|---|
| 359 | [Use -XImpredicativeTypes instead of -fglasgow-exts |
|---|
| 360 | simonpj@microsoft.com**20081231155601] |
|---|
| 361 | [Test Trac #2856 |
|---|
| 362 | simonpj@microsoft.com**20081231155509] |
|---|
| 363 | [Test for empty type indices (Trac #2888) |
|---|
| 364 | simonpj@microsoft.com**20081230170152] |
|---|
| 365 | [Test Trac #2851, and update error message for other tests |
|---|
| 366 | simonpj@microsoft.com**20081230165958] |
|---|
| 367 | [Track new quotes in error message |
|---|
| 368 | simonpj@microsoft.com**20081230145859] |
|---|
| 369 | [Test Trac #2901 |
|---|
| 370 | simonpj@microsoft.com**20081230145836] |
|---|
| 371 | [Add test for #2739 (tests that it works with HscInterpreted). |
|---|
| 372 | Thomas Schilling <nominolo@googlemail.com>**20081219144223] |
|---|
| 373 | [Add first test for GHC API features. |
|---|
| 374 | Thomas Schilling <nominolo@googlemail.com>**20081127105929] |
|---|
| 375 | [fix typo |
|---|
| 376 | Simon Marlow <marlowsd@gmail.com>**20081218091555] |
|---|
| 377 | [break018 is expected to pass again after the INLINE patch rollback |
|---|
| 378 | Simon Marlow <marlowsd@gmail.com>**20081217153559] |
|---|
| 379 | [Make the testsuite work with the new build system |
|---|
| 380 | Simon Marlow <marlowsd@gmail.com>**20081217125046] |
|---|
| 381 | [Fix this test: it was using a C finalizer that called back into Haskell |
|---|
| 382 | Simon Marlow <marlowsd@gmail.com>**20081216101140 |
|---|
| 383 | Which isn't allowed using the ordinary newForeignPtr any more, it has |
|---|
| 384 | to be done with Foreign.Concurrent.newForeignPtr. |
|---|
| 385 | ] |
|---|
| 386 | [test for #2592 |
|---|
| 387 | Simon Marlow <marlowsd@gmail.com>**20081215111427] |
|---|
| 388 | [check for valid .prof files when profiling |
|---|
| 389 | Simon Marlow <marlowsd@gmail.com>**20081215111403] |
|---|
| 390 | [FIX #1364: added tests for C finalizers. |
|---|
| 391 | Ivan Tomac <tomac@pacific.net.au>**20081210150959 |
|---|
| 392 | |
|---|
| 393 | Patch amended by Simon Marlow: |
|---|
| 394 | - Test addForeignPtrFinalizerEnv too |
|---|
| 395 | ] |
|---|
| 396 | [add test for #2838 |
|---|
| 397 | Simon Marlow <marlowsd@gmail.com>**20081209114410] |
|---|
| 398 | [Add a test that we ignore OPTIONS_HUGS pragmas |
|---|
| 399 | Ian Lynagh <igloo@earth.li>**20081209191114] |
|---|
| 400 | [Add a test for trac #2847: Parsing OPTIONS_NO_SUCH_PRAGMA pragma |
|---|
| 401 | Ian Lynagh <igloo@earth.li>**20081209190822] |
|---|
| 402 | [Mark break018 broken (#2845) |
|---|
| 403 | Ian Lynagh <igloo@earth.li>**20081206000423] |
|---|
| 404 | [Remove INLINE for recursive function |
|---|
| 405 | simonpj@microsoft.com**20081205171611] |
|---|
| 406 | [Clean .exe.manifest files |
|---|
| 407 | Ian Lynagh <igloo@earth.li>**20081203135541] |
|---|
| 408 | [Follow improved error message |
|---|
| 409 | simonpj@microsof.com**20081201163016] |
|---|
| 410 | [Simple17 passes |
|---|
| 411 | simonpj@microsof.com**20081201101834] |
|---|
| 412 | [Test Trac #2817 |
|---|
| 413 | simonpj@microsof.com**20081126154331] |
|---|
| 414 | [Test Trac #2756 |
|---|
| 415 | simonpj@microsof.com**20081126143808] |
|---|
| 416 | [Update output to follow :t output formatting change |
|---|
| 417 | simonpj@microsof.com**20081126134736] |
|---|
| 418 | [Test Trac #2766 |
|---|
| 419 | simonpj@microsof.com**20081126133106] |
|---|
| 420 | [add test for #2740 |
|---|
| 421 | Simon Marlow <marlowsd@gmail.com>**20081125103402] |
|---|
| 422 | [Test Trac #2799 |
|---|
| 423 | simonpj@microsof.com**20081125110946] |
|---|
| 424 | [small fix to the space-leak testing framework |
|---|
| 425 | Simon Marlow <marlowsd@gmail.com>**20081125100934] |
|---|
| 426 | [Add some 6.10-specific output |
|---|
| 427 | Ian Lynagh <igloo@earth.li>**20081123193302] |
|---|
| 428 | [Don't show whitespace differences when diffing test results |
|---|
| 429 | Ian Lynagh <igloo@earth.li>**20081123133300] |
|---|
| 430 | [Add a space leak test, and some infrastructure for checking space usage |
|---|
| 431 | Ian Lynagh <igloo@earth.li>**20081123164014] |
|---|
| 432 | [Follow changes in pragma error reporting. |
|---|
| 433 | Thomas Schilling <nominolo@googlemail.com>**20081121160235 |
|---|
| 434 | |
|---|
| 435 | Parse errors in pragmas are now normal error messages and printed as |
|---|
| 436 | such. The full span info is still there, but not by default we only |
|---|
| 437 | print the start of the region (for backwards compatibility). GHC API |
|---|
| 438 | clients will get the full source span info (and users can still get it |
|---|
| 439 | via -ferror-spans). |
|---|
| 440 | ] |
|---|
| 441 | [add test for #2783 |
|---|
| 442 | Simon Marlow <marlowsd@gmail.com>**20081117164854] |
|---|
| 443 | [make this test a bit more robust |
|---|
| 444 | Simon Marlow <marlowsd@gmail.com>**20081114113859] |
|---|
| 445 | [-package syb is required when linking now that array doesn't depend on syb |
|---|
| 446 | Simon Marlow <marlowsd@gmail.com>**20081114101303] |
|---|
| 447 | [make it so that WAY=profthreaded works |
|---|
| 448 | Simon Marlow <marlowsd@gmail.com>**20081112154221] |
|---|
| 449 | [Add a test that $( (\b -> [| b |]) True ) works |
|---|
| 450 | Ian Lynagh <igloo@earth.li>**20081112135613] |
|---|
| 451 | [add a DLL building test (#2745) |
|---|
| 452 | Simon Marlow <marlowsd@gmail.com>**20081110094845] |
|---|
| 453 | [Add some 6.10-specific test outputs |
|---|
| 454 | Ian Lynagh <igloo@earth.li>**20081109212017] |
|---|
| 455 | [Increase the requirements for the annotations tests from 6.9 to 6.11 |
|---|
| 456 | Ian Lynagh <igloo@earth.li>**20081109211524] |
|---|
| 457 | [TAG GHC 6.10.1 release |
|---|
| 458 | Ian Lynagh <igloo@earth.li>**20081107191824] |
|---|
| 459 | [extra_clean for rename.prog005 |
|---|
| 460 | Simon Marlow <marlowsd@gmail.com>**20081103150523] |
|---|
| 461 | [extra_clean for T2685 |
|---|
| 462 | Simon Marlow <marlowsd@gmail.com>**20081103150315] |
|---|
| 463 | [Test Trac #2735 |
|---|
| 464 | simonpj@microsof.com**20081103142217] |
|---|
| 465 | [Follow improvements in type signatures |
|---|
| 466 | simonpj@microsof.com**20081031090642] |
|---|
| 467 | [Make ann01 not depend on linking order |
|---|
| 468 | simonpj@microsof.com**20081030132215] |
|---|
| 469 | [Test annotations |
|---|
| 470 | Max Bolingbroke <batterseapower@hotmail.com>**20081016154455] |
|---|
| 471 | [Tests for Trac #2674 |
|---|
| 472 | simonpj@microsof.com**20081030094721] |
|---|
| 473 | [Add GHC 6.10 output for some tests |
|---|
| 474 | Ian Lynagh <igloo@earth.li>**20081029205326] |
|---|
| 475 | [We expect tc244 to fail in the 6.10 branch |
|---|
| 476 | Ian Lynagh <igloo@earth.li>**20081029162514] |
|---|
| 477 | [Add 6.10 output for tests gadt11, tcfail155, tcfail176 |
|---|
| 478 | Ian Lynagh <igloo@earth.li>**20081029162104] |
|---|
| 479 | [TF_GADT fails in 6.10 |
|---|
| 480 | Ian Lynagh <igloo@earth.li>**20081029160839] |
|---|
| 481 | [Expect T2723 to fail in 6.10 |
|---|
| 482 | Ian Lynagh <igloo@earth.li>**20081029155858] |
|---|
| 483 | [Track changes in naming of class dictionaries, coercions etc |
|---|
| 484 | simonpj@microsoft.com**20081029142425] |
|---|
| 485 | [Add -fno-method-sharing to eyeball/inline1.hs |
|---|
| 486 | simonpj@microsoft.com**20081029142228] |
|---|
| 487 | [Skip qq005(hpc) in the 6.10 branch; trac #1779 |
|---|
| 488 | Ian Lynagh <igloo@earth.li>**20081028205719] |
|---|
| 489 | [Omit the profiling ways when running qq005 |
|---|
| 490 | Ian Lynagh <igloo@earth.li>**20081028174704 |
|---|
| 491 | We'd need to jump through some hoops to run this test the |
|---|
| 492 | profiling ways, due to the TH use, so for now we just |
|---|
| 493 | omit them |
|---|
| 494 | ] |
|---|
| 495 | [Skip bytestring00{1,4,5} (designed for an earlier version of bytestring) |
|---|
| 496 | Ian Lynagh <igloo@earth.li>**20081027185817] |
|---|
| 497 | [Test for existential record update (cf Trac #2595) |
|---|
| 498 | simonpj@microsoft.com**20081028115524] |
|---|
| 499 | [Test Trac #2723 |
|---|
| 500 | simonpj@microsoft.com**20081028110244] |
|---|
| 501 | [Test Trac #2713 |
|---|
| 502 | simonpj@microsoft.com**20081027223522] |
|---|
| 503 | [Update output to follow improved error messages for fixity decls |
|---|
| 504 | simonpj@microsoft.com**20081027222448] |
|---|
| 505 | [Test Trac #2701 |
|---|
| 506 | simonpj@microsoft.com**20081025171123] |
|---|
| 507 | [Test Trac #2700 |
|---|
| 508 | simonpj@microsoft.com**20081025164338] |
|---|
| 509 | [skip conc069/conc070(ghci) if we have no threaded RTS |
|---|
| 510 | Simon Marlow <marlowsd@gmail.com>**20081023081250] |
|---|
| 511 | [Test Trac #2714 |
|---|
| 512 | simonpj@microsoft.com**20081022145517] |
|---|
| 513 | [TFs: 7 tests fail as they used unsupported superclass equalities |
|---|
| 514 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081021135941] |
|---|
| 515 | [Improved error message on data constructor return types |
|---|
| 516 | simonpj@microsoft.com**20081021063933] |
|---|
| 517 | [Track error message change in deriving |
|---|
| 518 | simonpj@microsoft.com**20081021063859] |
|---|
| 519 | [Add test for data instances that are GADTs |
|---|
| 520 | simonpj@microsoft.com**20081021043459] |
|---|
| 521 | [T2693 |
|---|
| 522 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081021115858] |
|---|
| 523 | [T2688 |
|---|
| 524 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081021043343] |
|---|
| 525 | [Skip 2228 on Windows |
|---|
| 526 | Ian Lynagh <igloo@earth.li>**20081019230413] |
|---|
| 527 | [Wibble to output |
|---|
| 528 | simonpj@microsof.com**20081015102844] |
|---|
| 529 | [Update test output |
|---|
| 530 | simonpj@microsof.com**20081015084111] |
|---|
| 531 | [add test for #2685 |
|---|
| 532 | Simon Marlow <marlowsd@gmail.com>**20081013122050] |
|---|
| 533 | [add test for #2636 |
|---|
| 534 | Simon Marlow <marlowsd@gmail.com>**20081010131452] |
|---|
| 535 | [add test for #2589 |
|---|
| 536 | Simon Marlow <marlowsd@gmail.com>**20081009094639] |
|---|
| 537 | [make this test more reliable, and enable threaded2 |
|---|
| 538 | Simon Marlow <marlowsd@gmail.com>**20081009094254] |
|---|
| 539 | [update output (Show Ratio changes) |
|---|
| 540 | Simon Marlow <marlowsd@gmail.com>**20081009085358] |
|---|
| 541 | [TFs: T2639 |
|---|
| 542 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081009132645] |
|---|
| 543 | [TFs: Examples for Relaxed Conditions |
|---|
| 544 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081004114546] |
|---|
| 545 | [Comments only |
|---|
| 546 | simonpj@microsof.com**20081003141316] |
|---|
| 547 | [Add test for Trac #2632 |
|---|
| 548 | simonpj@microsof.com**20081003141244] |
|---|
| 549 | [Tweak break017 |
|---|
| 550 | Ian Lynagh <igloo@earth.li>**20081002213202] |
|---|
| 551 | [TFs: Test for repeated tvs in left-hand sides of instances |
|---|
| 552 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081002142712] |
|---|
| 553 | [TFs: T2291 |
|---|
| 554 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081002055002] |
|---|
| 555 | [omit ways that run out of time |
|---|
| 556 | Simon Marlow <marlowsd@gmail.com>**20081002101157] |
|---|
| 557 | [accept output, and enable cg026 in validate |
|---|
| 558 | Simon Marlow <marlowsd@gmail.com>**20081002100444] |
|---|
| 559 | [add IOList optimisation example |
|---|
| 560 | Simon Marlow <marlowsd@gmail.com>**20081002093717] |
|---|
| 561 | [accept output (Show Ratio changes) |
|---|
| 562 | Simon Marlow <marlowsd@gmail.com>**20081002083641] |
|---|
| 563 | [add an extra delay to make this test a bit more robust |
|---|
| 564 | Simon Marlow <marlowsd@gmail.com>**20081002083623] |
|---|
| 565 | [accept break017 output (seems to be correct), and enable it in validate |
|---|
| 566 | Simon Marlow <marlowsd@gmail.com>**20081002083135] |
|---|
| 567 | [tcfail145 error message improved, too |
|---|
| 568 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081002052448] |
|---|
| 569 | [TFs: T2448 |
|---|
| 570 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081002045510] |
|---|
| 571 | [TFs: Proper error message for GADT12 |
|---|
| 572 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081001144244] |
|---|
| 573 | [Print out exceptions when cleaning tests |
|---|
| 574 | Ian Lynagh <igloo@earth.li>**20081001194813] |
|---|
| 575 | [add test for #2410 |
|---|
| 576 | Simon Marlow <marlowsd@gmail.com>**20080930150803] |
|---|
| 577 | [TFs: Fixed InstContextNorm |
|---|
| 578 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081001130446] |
|---|
| 579 | [GADTs/TFs: Added T2151 & TF's Simple14 passes |
|---|
| 580 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20081001053109] |
|---|
| 581 | [add test for #2594 |
|---|
| 582 | Simon Marlow <marlowsd@gmail.com>**20080930115425] |
|---|
| 583 | [Type families: T2627b |
|---|
| 584 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20080930054017] |
|---|
| 585 | [Type families: Tricky GADT/RankN/TF example |
|---|
| 586 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20080930033644] |
|---|
| 587 | [Type families: T2627 |
|---|
| 588 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20080930020317] |
|---|
| 589 | [Type families: fixed GivenCheckDecomp |
|---|
| 590 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20080929140957] |
|---|
| 591 | [Type families: T2219 |
|---|
| 592 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20080929074819] |
|---|
| 593 | [GADTs: T2040 |
|---|
| 594 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20080929073535] |
|---|
| 595 | [we can observe the exception again in break011 |
|---|
| 596 | pepe iborra <mnislaih@gmail.com>**20080926212515] |
|---|
| 597 | [Fix the mode001 test on OS X |
|---|
| 598 | Ian Lynagh <igloo@earth.li>**20080927161551] |
|---|
| 599 | [add test for #2295 (-outputdir) |
|---|
| 600 | Simon Marlow <simonmarhaskell@gmail.com>**20080923145850] |
|---|
| 601 | [oops, we haven't been running tests from packages for goodness knows how long |
|---|
| 602 | Simon Marlow <simonmarhaskell@gmail.com>**20080926233700] |
|---|
| 603 | [Improve the mode001 test |
|---|
| 604 | Ian Lynagh <igloo@earth.li>**20080926142730] |
|---|
| 605 | [Type families: another small tricky example of SPJ |
|---|
| 606 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20080925230155] |
|---|
| 607 | [Test Trac #303 |
|---|
| 608 | simonpj@microsoft.com**20080925230530] |
|---|
| 609 | [Fix conflicting_flags output |
|---|
| 610 | Ian Lynagh <igloo@earth.li>**20080925184801] |
|---|
| 611 | [Add a test that the --help and --version flags behave properly |
|---|
| 612 | Ian Lynagh <igloo@earth.li>**20080925165553] |
|---|
| 613 | [Update ghci025 output |
|---|
| 614 | Ian Lynagh <igloo@earth.li>**20080925153956] |
|---|
| 615 | [Type families: test for decomposition problem |
|---|
| 616 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20080925084015] |
|---|
| 617 | [Add a test for ":i thisIsNotDefined" |
|---|
| 618 | Ian Lynagh <igloo@earth.li>**20080924235240 |
|---|
| 619 | It used to make ghci exit |
|---|
| 620 | ] |
|---|
| 621 | [Skip the new qualified operator syntax tests in 6.10 |
|---|
| 622 | Ian Lynagh <igloo@earth.li>**20080924160332] |
|---|
| 623 | [Fix the driver100 test |
|---|
| 624 | Ian Lynagh <igloo@earth.li>**20080924152649] |
|---|
| 625 | [Update the ws-64 output for the arith011 test |
|---|
| 626 | Ian Lynagh <igloo@earth.li>**20080924151947] |
|---|
| 627 | [add test for #2499 (package flags in OPTIONS pragmas) |
|---|
| 628 | Simon Marlow <simonmarhaskell@gmail.com>**20080923175620] |
|---|
| 629 | [accept output (Show Ratio changes, #1920) |
|---|
| 630 | Simon Marlow <simonmarhaskell@gmail.com>**20080923144155] |
|---|
| 631 | [add test for #2566, also enable driver100 which wasn't being run |
|---|
| 632 | Simon Marlow <simonmarhaskell@gmail.com>**20080923140120] |
|---|
| 633 | [add tests for -XNewQualifiedOperators |
|---|
| 634 | Simon Marlow <simonmarhaskell@gmail.com>**20080922213748] |
|---|
| 635 | [make this test THREADS friendly |
|---|
| 636 | Simon Marlow <simonmarhaskell@gmail.com>**20080922213649] |
|---|
| 637 | [add test for #2228 |
|---|
| 638 | Simon Marlow <simonmarhaskell@gmail.com>**20080430204612] |
|---|
| 639 | [Minor change in error message |
|---|
| 640 | simonpj@microsoft.com**20080920210508] |
|---|
| 641 | [Add tests for Trac #2597 |
|---|
| 642 | simonpj@microsoft.com**20080920210420] |
|---|
| 643 | [Test Trac #2587 |
|---|
| 644 | simonpj@microsoft.com**20080915150402] |
|---|
| 645 | [TAG 2008-09-20 |
|---|
| 646 | Ian Lynagh <igloo@earth.li>**20080920162649] |
|---|
| 647 | Patch bundle hash: |
|---|
| 648 | 211c92dd6910b808fcb92229e9f679a65c6cc80b |
|---|