blob: 70d4c0c7d077ec7b3df5a5366124f275fcb352d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{-# LANGUAGE TypeFamilies, GeneralizedNewtypeDeriving,
MultiParamTypeClasses, FunctionalDependencies #-}
-- tests axiom roles
module Roles13 where
newtype Age = MkAge Int
newtype Wrap a = MkWrap a
convert :: Wrap Age -> Int
convert (MkWrap (MkAge i)) = i
|