Get the latest tech news

A Note about Coercions


Safe coercions in GHC are a very powerful feature. However, they are not perfect; and already many years ago I was also thinking about how we could make them more expressive.

For language like GHC Haskell where being zero-cost is non-negotiable requirement, this simple approach doesn't work. Because the language is simple (i.e. not dependent), we can define typing rules and small step semantics independently. Such uni-directional version of Coercible amounts to explicit inclusive subtyping and is more complicated than our current symmetric system.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of note

note

Photo of Coercions

Coercions

Related news:

News photo

Infinix unveils the Note 40 series with a dedicated chip for smart charging

News photo

Infinix is gunning for the top Android phones with the Note 40 Pro Plus

News photo

‘Boycott Tesla’ ads to air during Super Bowl — “Tesla dances away from liability in Autopilot crashes by pointing to a note buried deep in the owner’s manual, that says Autopilot is only safe on freeways.”