
- 480 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Type-Driven Development with Idris
About this book
Summary 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. What's Inside
- 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
- Overview
- Getting started with Idris
PART 2 - CORE IDRIS
- Interactive development with types
- User-defined data types
- Interactive programs: input and output processing
- Programming with first-class types
- Interfaces: using constrained generic types
- Equality: expressing relationships between data
- Predicates: expressing assumptions and contracts in types
- Views: extending pattern matching
PART 3 - IDRIS AND THE REAL WORLD
- Streams and processes: working with infinite data
- Writing programs with state
- State machines: verifying protocols in types
- Dependent state machines: handling feedback and errors
- Type-safe concurrent programming
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Table of contents
- Type-Driven Development with Idris
- Copyright
- Brief Table of Contents
- Table of Contents
- Preface
- Acknowledgments
- About this Book
- About the Author
- About the Cover Illustration
- 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
- Appendix A. Installing Idris and editor modes
- Appendix B. Interactive editing commands
- Appendix C. REPL commands
- Appendix D. Further reading
- Appendix E.
- Appendix F.
- Index
- List of Figures
- List of Tables
- List of Listings