01:34GHC Language Extensions • Andrew McMiddlin • YOW! 2019
From the creator
This presentation was recorded at YOW! 2019. #GOTOcon #YOW https://yowcon.com Andrew McMiddlin - Functional Programming Engineer in the Queensland Functional Programming Lab at Data61 RESOURCES https://www.linkedin.com/in/ajmcmiddlin http://twitter.com/ajmacca ABSTRACT #LanguageExtensions are everywhere in the modern #Haskell world. As beginners we are often told by instructors or the compiler itself to enable particular extensions to allow for some syntactic sugar or enable a common feature. If we continue to use Haskell, we likely come to depend on even more language extensions, until it is common place for the first 10 lines of each file to be #LanguagePragmas. Many of us, myself included, are probably guilty of enabling extensions without fully understanding what they do, or understanding what tradeoffs and risks they might present. This talk hopes to improve the situation by shedding some light on commonly used extensions. We'll start with what language extensions are and why they exist. Next we'll consider the different ways they may be enabled. From there, we'll look at some of the simpler extensions that provide syntactic sugar and not much else --- for example, LambdaCase and TupleSections. At this point we'll start to ramp up and look at some heavier weight extensions (e.g. ScopedTypeVariables and GeneralizedNewtypeDeriving), their use cases, and their tradeoffs. Finally, we'll take a more detailed look at some language extensions related to type classes. Specif
Published 2023-12-23 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





