# Constrain protocol usage outside the module

**URL:** <https://forums.swift.org/t/constrain-protocol-usage-outside-the-module/8832>\
**Category:** Pitches\
**Created:** [January 25, 2018, 9:03am UTC](https://forums.swift.org/t/constrain-protocol-usage-outside-the-module/8832 "2018-01-25T09:03:18Z")\
**Posts on this page:** 1\
**Showing post:** 76

<div class="post-metadata">

**Author:** ![anandabits](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/anandabits/32/355_2.png) [@anandabits](https://forums.swift.org/u/anandabits)\
**Post date:** [February 1, 2018, 3:43pm UTC](https://forums.swift.org/t/constrain-protocol-usage-outside-the-module/8832/76 "2018-02-01T15:43:39Z")

</div>

It turns out there was a talk at ICFP last year that discusses introducing closed type classes into Haskell as part of a proposal to require type families to be constrained to a type class. Closed type classes are necessary under this proposal to support closed type families. If anyone is interested, here's a link to the talk: [Constrained Type Families - YouTube](https://m.youtube.com/watch?v=AGJY95Otb9U).

---

_[View the full topic](https://forums.swift.org/t/constrain-protocol-usage-outside-the-module/8832)._
