Commit c5cf3b3c authored by dreixel's avatar dreixel

Adapt to the improved error output.

parent 2672cdec
CannotDoRep0.hs:9:45:
GenCannotDoRep0.hs:9:45:
Can't make a derived instance of `Generic Dynamic':
Cannot derive Generic for type Dynamic
Dynamic is not a vanilla data constructor
In the data type declaration for `Dynamic'
CannotDoRep1.hs:8:49:
GenCannotDoRep1.hs:8:49:
Can't make a derived instance of `Generic (Context a)':
Cannot derive Generic for type Context
Context has a datatype context
In the data type declaration for `Context'
CannotDoRep2.hs:13:1:
GenCannotDoRep2.hs:13:1:
Can't make a derived instance of `Generic (Term a)':
Cannot derive Generic for type Term
Int is not a vanilla data constructor
In the stand-alone deriving instance for `Generic (Term a)'
{-# LANGUAGE Generics #-}
module GenericsDeprecated where
module GenDeprecated where
GenericsDeprecated.hs:1:14:
GenDeprecated.hs:1:14:
Warning: -XGenerics is deprecated: it does nothing; look into -XDefaultSignatures and -XDeriveGeneric for generic programming support.
ShouldFail0.hs:9:1:
GenShouldFail0.hs:9:1:
Can't make a derived instance of `Generic X':
You need -XDeriveGeneric to derive an instance for this class
or
You need -XGenerics to derive an instance for this class
In the stand-alone deriving instance for `Generic X'
......@@ -6,7 +6,7 @@
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE IncoherentInstances #-} -- necessary, unfortunately
module Uniplate where
module GUniplate where
import GHC.Generics
......
......@@ -3,7 +3,7 @@
module Main where
import GHC.Generics
import Uniplate
import GUniplate
data Tree = Leaf | Node Int Tree Tree deriving (Show, Generic)
......
setTestOpts(only_compiler_types(['ghc']))
test('Uniplate1', normal, multimod_compile_and_run, ['Main', ''])
\ No newline at end of file
test('GUniplate1', normal, multimod_compile_and_run, ['Main', ''])
\ No newline at end of file
setTestOpts(only_compiler_types(['ghc']))
test('CanDoRep0', normal, compile, [''])
test('GenCanDoRep0', normal, compile, [''])
test('ShouldFail0', normal, compile_fail, [''])
test('CannotDoRep0', normal, compile_fail, [''])
test('CannotDoRep1', normal, compile_fail, [''])
test('CannotDoRep2', normal, compile_fail, [''])
test('GenDeprecated', normal, compile, [''])
test('GenShouldFail0', normal, compile_fail, [''])
test('GenCannotDoRep0', normal, compile_fail, [''])
test('GenCannotDoRep1', normal, compile_fail, [''])
test('GenCannotDoRep2', normal, compile_fail, [''])
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