Type-Driven Development with Idris, written by the creator of Idris, teaches you how to improve the performance and accuracy of your programs by taking advantage of a state-of-the-art type system. This book teaches you with Idris, a language designed to support type-driven development.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the Technology
Stop fighting type errors! Type-driven development is an approach to coding that embraces types as the foundation of your code - essentially as built-in documentation your compiler can use to check data relationships and other assumptions. With this approach, you can define specifications early in development and write code that's easy to maintain, test, and extend. Idris is a Haskell-like language with first-class, dependent types that's perfect for learning type-driven programming techniques you can apply in any codebase.
About the Book
Type-Driven Development with Idris teaches you how to improve the performance and accuracy of your code by taking advantage of a state-of-the-art type system. In this book, you'll learn type-driven development of real-world software, as well as how to handle side effects, interaction, state, and concurrency. By the end, you'll be able to develop robust and verified software in Idris and apply type-driven development methods to other languages.
- Understanding dependent types
- Types as first-class language constructs
- Types as a guide to program construction
- Expressing relationships between data
About the Reader
Written for programmers with knowledge of functional programming concepts.
About the Author
Edwin Brady leads the design and implementation of the Idris language.
Table of Contents
PART 1 - INTRODUCTION
Chapter 1. Overview
Chapter 2. Getting Started With Idris
PART 2 - CORE IDRIS
Chapter 3. Interactive Development With Types
Chapter 4. User-Defined Data Types
Chapter 5. Interactive Programs: Input And Output Processing
Chapter 6. Programming With First-Class Types
Chapter 7. Interfaces: Using Constrained Generic Types
Chapter 8. Equality: Expressing Relationships Between Data
Chapter 9. Predicates: Expressing Assumptions And Contracts In Types
Chapter 10. Views: Extending Pattern Matching
PART 3 - IDRIS AND THE REAL WORLD
Chapter 11. Streams And Processes: Working With Infinite Data
Chapter 12. Writing Programs With State
Chapter 13. State Machines: Verifying Protocols In Types
Chapter 14. Dependent State Machines: Handling Feedback And Errors
Chapter 15. Type-Safe Concurrent Programming