No video

@rae: All about `deriving` in GHC

  Рет қаралды 2,271

Tweag

Tweag

Күн бұрын

I walk through the four different strategies GHC uses to implement `deriving` when declaring a new datatype.
Previous video focusing on -XDerivingVia: • @rae: Avoid boilerplat...
Find me at richarde.dev/ or on Twitter at @RaeHaskell.
Video index at richarde.dev/v...

Пікірлер: 7
@SEKUNHO
@SEKUNHO 2 жыл бұрын
This is a great video. I like the pacing, and how focused it is (no switching of windows or tabs). Thank you!
@pliftkl
@pliftkl 2 жыл бұрын
Great pacing, great delivery. Learned a lot - now wandering off to watch your other videos!
@qseep
@qseep 2 жыл бұрын
Fantastic, clear explanation, with good examples and motivation. @rae, could you please make a follow-up video explaining type roles (nominal, representational, and phantom), and how they fit into deriving?
@qseep
@qseep 2 жыл бұрын
I guess the video “Roles can break abstraction” covers that?
@mehularora1813
@mehularora1813 2 жыл бұрын
Thank you, this was very helpful
@asitisj
@asitisj 2 жыл бұрын
Isn't this type wrapper mkage just a sub-type of mkt?
@asdfghyter
@asdfghyter 2 жыл бұрын
`T` and `Age` really doesn't have any formal relation at all. You can't coerce from one to the other since they have different runtime representations and their instances are completely different. I don't think they would be in a subtype relation even in an OOP language. Age might have been a subtype of Int in an OOP language, but that is still not the case here, since their instances are independent of each other. We could even use deriving via to copy instances in the reverse direction: *from* Age *to* Int.
@rae: Removing (/=) from the Eq type class
13:58
Tweag
Рет қаралды 1,7 М.
Higher-order Type-level Programming in Haskell
21:28
ACM SIGPLAN
Рет қаралды 3,6 М.
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 44 МЛН
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 15 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 28 МЛН
Whoa
01:00
Justin Flom
Рет қаралды 33 МЛН
@rae: Basics of Haskell instance selection
17:44
Tweag
Рет қаралды 1,5 М.
👑 Custom numeric literals - The Nim Manual 📖
5:38
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 551 М.
The purest coding style, where bugs are near impossible
10:25
Coderized
Рет қаралды 956 М.
Haskell Course - Lesson 10 - Creating Type Classes and Instances
58:28
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 272 М.
The Haskell Unfolder Episode 16: monads and deriving via
44:08
The Nix Hour #67 [language tooling]
38:48
Tweag
Рет қаралды 587
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 44 МЛН