packages feed

MicroHs-0.17.4.0: tests/RolesDefs.hs

{-# LANGUAGE RoleAnnotations #-}
module RolesDefs where

-- The role annotation comes before the data declaration.
type role P phantom representational
data P a b = P b deriving Show

type role N nominal
data N a = N a deriving Show

newtype Age = Age Int deriving Show