1 2 3 4 5 6 7 8
:set -XTypeFamilies data family Foo a data instance Foo Int = FooInt Int :kind! Foo Int let f (FooInt i) = i :info f :type +v f :type f