EBOOK

Type-Driven Development with Idris

Edwin Brady
(0)
Pages
480
Year
2017
Language
English

About

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.

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.

What's Inside
• Understanding dependent types
• Types as first-class language constructs
• Types as a guide to program construction
• Expressing relationships between data

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

Related Subjects

Artists