diff options
author | Richard Eisenberg <rae@richarde.dev> | 2019-08-18 16:02:50 +0200 |
---|---|---|
committer | Richard Eisenberg <rae@richarde.dev> | 2020-03-17 13:46:57 +0000 |
commit | 53ff2cd0c49735e8f709ac8a5ceab68483eb89df (patch) | |
tree | 2c22014de33e6d0fcdfef7e5436ff0abc7e0fca1 /testsuite/tests/typecheck/should_fail/UnliftedNewtypesInfinite.stderr | |
parent | 75168d07c9c30289709423fc184bbab8dcad0f4e (diff) | |
download | haskell-53ff2cd0c49735e8f709ac8a5ceab68483eb89df.tar.gz |
Fix #17021 by checking more return kinds
All the details are in new Note [Datatype return kinds] in
TcTyClsDecls.
Test case: typecheck/should_fail/T17021{,b}
typecheck/should_compile/T17021a
Updates haddock submodule
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/UnliftedNewtypesInfinite.stderr')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/UnliftedNewtypesInfinite.stderr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/tests/typecheck/should_fail/UnliftedNewtypesInfinite.stderr b/testsuite/tests/typecheck/should_fail/UnliftedNewtypesInfinite.stderr index 65db9f5a84..bf50beed5e 100644 --- a/testsuite/tests/typecheck/should_fail/UnliftedNewtypesInfinite.stderr +++ b/testsuite/tests/typecheck/should_fail/UnliftedNewtypesInfinite.stderr @@ -1,6 +1,7 @@ -UnliftedNewtypesInfinite.hs:9:15: error: +UnliftedNewtypesInfinite.hs:9:20: error: • Occurs check: cannot construct the infinite kind: t0 ~ 'GHC.Types.TupleRep '[ 'GHC.Types.IntRep, t0] - • In the definition of data constructor ‘FooC’ + • In the type ‘(# Int#, Foo #)’ + In the definition of data constructor ‘FooC’ In the newtype declaration for ‘Foo’ |