У нас вы можете посмотреть бесплатно Safe coercions (Haskell Unfolder #48) или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
When GHC knows that two types have the same run-time representation, it allows you to use coerce to go from a value of one to a value of the other in a safe and cost-free way. Primarily, the opportunity to coerce arises from the use of newtype, where the new type is guaranteed to have the same representation as the wrapped type. However, the implications of this are surprisingly complex, primarily due to interactions with other features such as type classes, type families and GADTs, and have led to the introduction of roles as an aspect of the type system intended to reason about run-time representations more precisely. In this episode, we will explain why coerce is useful and how roles can help you understand what works and what does not.