summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T10347.hs
blob: ca9fdd98cc20870e4a02d016fffb56e2a5d03029 (plain)
1
2
3
4
5
6
7
8
9
10
{-# OPTIONS_GHC -fwarn-unused-binds #-}

module T10347 (N, mkN) where

import Data.Coerce

newtype N a = MkN Int

mkN :: Int -> N a
mkN = coerce