PS Unscripted – Code Reuse in PS: Fns, Classes, and Interpreters

PureScript Unscripted, June 9, 2018 Thanks to @natefaubion for organizing and presenting the topic! It is very interesting! ## Code Reuse in PureScript: Functions, Type classes, and Interpreters 0:25 – Intro 1:53 – Example function: `sayHello` 3:08 – Extract “Hello, ” 4:40 – Extract prepend operation 5:30 – Extract String type 7:42 – Support type-changing in transformer 8:40 – Extract List type using `Transform` synonym 10:20 – Move `a` & `b` polymorphism to `Transform` synonym 11:20 – Parameterize a function over a `Transform` 12:06 – `sayHello`, before & after 13:10 – Reducing redundancy in function using `Transform` 13:55 – From type synonym to type class 17:19 – Reducing redundancy in related type classes 22:55 – A world without (compiler-assisted) type classes 23:40 – Let’s try im

It's only fair to share...Tweet about this on TwitterShare on FacebookShare on TumblrShare on Google+Digg thisShare on LinkedInPin on PinterestShare on VKShare on RedditPrint this pageEmail this to someone
Flattr the authorShare on StumbleUponShare on YummlyBuffer this page

Leave a Reply

Your email address will not be published. Required fields are marked *