Type Families language pragma
22 Mar 2017The Type Families language pragma provides the developer the ability to attribute an association between two different types. This is going to allow us to write the same function for different types.
In this example, the type class Falsey
is somewhat of a loose boolean test on every day values . . not just Bool
values. By allowing the developer to specify type
within the class
and instance
we establish the association between the types: