MuniHac 2020: Richard Eisenberg - Partial Type Constructors
Title: Partial Type Constructors
Speaker: Richard Eisenberg
When we describe the type Set a, we say that this type makes sense for any a. But this is a small lie: it really only makes sense for types a that have an ordering – that is, types for which Ord a holds. This small lie has far-reaching consequences. It means that we cannot write a Functor instance for Set, it means we might accidentally write uncallable functions that take a Set, and it means we must repetitively write Ord a ... constraints on every function working with Sets.
This talk will explore the possibility of explicitly partial type constructors, where we can declare loudly that types like Set work only with some type arguments, but not others. The design proposed improves error messages, simplifies type signatures, and allows instances like Functor over Sets.
MuniHac 2020, September 11 / https://munihac.de/
TNG Technology Consulting GmbH / https://www.tngtech.com
Видео MuniHac 2020: Richard Eisenberg - Partial Type Constructors канала TNG Technology Consulting GmbH
Speaker: Richard Eisenberg
When we describe the type Set a, we say that this type makes sense for any a. But this is a small lie: it really only makes sense for types a that have an ordering – that is, types for which Ord a holds. This small lie has far-reaching consequences. It means that we cannot write a Functor instance for Set, it means we might accidentally write uncallable functions that take a Set, and it means we must repetitively write Ord a ... constraints on every function working with Sets.
This talk will explore the possibility of explicitly partial type constructors, where we can declare loudly that types like Set work only with some type arguments, but not others. The design proposed improves error messages, simplifies type signatures, and allows instances like Functor over Sets.
MuniHac 2020, September 11 / https://munihac.de/
TNG Technology Consulting GmbH / https://www.tngtech.com
Видео MuniHac 2020: Richard Eisenberg - Partial Type Constructors канала TNG Technology Consulting GmbH
Показать
Комментарии отсутствуют
Информация о видео
12 сентября 2020 г. 11:15:31
01:06:36
Другие видео канала
MuniHac 2022 - Friday, October 7 - Joachim Breitner: Getting recursive definitions off their bottomsBig Techday 23: Glean: Query your Code [EN] - Simon Marlow, Meta ResearchMuniHac 2020: Duncan Coutts - Contravariant Logging: How to add logging without getting grumpyBig Techday 22: Mindblowing P2P Stealth App [EN] - Mathias Buus Madsen, Holepunch IncMuniHac 2020: Andrew Lelechenko - Polynomials in HaskellvBTD13: Startup by Accident - Teja PhilippTrailer vBTD13: Künstliche Intelligenz in der Chemie: Computer und Wissenschaftler Hand in HandMuniHac 2022 - Saturday, October 8 - Krzysztof Gogolewski: Quines and metaprogrammingSemantic fingerprinting: Democratising natural language processingBTD11: Hilfe, Kind im Brunnen - Systematisch technische Schulden abbauenQuantum vs Classical Optimization: A Status Update on the Arms RaceTale of two Cities: the Future of Applied Smart Cities on Cities and Towns - Barcelona and BeasainBTD12: Building a Useful Chatbot: Beyond the ML and NLP, Dr. Andreea HossmannHyperloop: Designing and Building the Future of TransportationDie Zukunft der Hardware-Entwicklung - Brauchen wir neue Systemkonzepte für Künstliche Intelligenz?BTD21: Brain Computer Interfaces Demystified [DE] - Förtsch, Mayer, Endres, TNGBTD21: IoT Device Data Processing at KONUX from Zero to One [EN] - Marc Gaines, KONUX GmbHMuniHac 2020: Nicolas Wu - Persistence makes a DifferenceBTD12: Building a Self-Driving RC Car, Bert Jan SchrijverBig Techday 23: Generative Data Calibrates the Sky [EN] - Dr Tamás Varga, LMU MunichBTD21: Have you secured your DevOps recently? [EN] - Dr. Benjamin Goose, Dr. Christoph Niehoff, TNG