summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail176.hs
blob: 39f3818ede6af3f471d5df77f0efed23dc9b4a3d (plain)
1
2
3
4
5
6
7
{-# LANGUAGE GADTs #-}

-- Newtype in GADT syntax

module ShouldFail where

newtype Bug a where Bug :: a -> Maybe a