Magical Haskell
eBook - ePub

Magical Haskell

A Friendly Approach to Modern Functional Programming, Type Theory, and Artificial Intelligence

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Magical Haskell

A Friendly Approach to Modern Functional Programming, Type Theory, and Artificial Intelligence

About this book

Discover a unique and fun approach to adopting modern typed functions programming patterns. This book uses playful metaphors and examples to help you learn Haskell through imagination, building on math without relying on imperative crutches or technical complexity. You'll use math to build completely different Typed Functional patterns from the ground up and understand the link between building Mathematics through Types and constructing Haskell as a programming language.  

Intended for working with various applications, especially AI-powered apps, the book gently builds up to what are normally considered complex and difficult concepts all without needing a PhD to understand them. Illustrative explanations will guide you to tackle monads, using monad transformer stacks to structure real programs, foldable and traversable structures, as well as other Type classes. This book will also help you structure programs efficiently and apply your own abstractions to real-life problem domains. Next, you'll explore exciting advancements in AI, including building with OpenAI APIs, creating a terminal chatbot, adding web functionality, and enhancing with retrieval-augmented generation. Finally, you'll delve into AI multi-agents and future directions using Arrows abstraction, reinforcing Haskell's design.

Magical Haskell is a solution for programmers who feel limited by imperative programming languages but are also put off by excessively mathematical approaches.

What You Will Learn

  • Grasp a solid math foundation without complex technicalities for Types and Typeclasses.
  • Solve problems via a typed functional approach and understand why it's superior to what's available in the imperative language world ("if it compiles, it runs").
  • Build your own abstractions to efficiently resolve problems in any given domain.
  • Develop AI frameworks in Haskell, including chatbots, web functionality, and retrieval-augmented generation.

Who This Book Is For

Haskell programmers of all levels and those interested in Type Theory.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Information

Table of contents

  1. Cover
  2. Front Matter
  3. 1. Wizards, Types, and Functions
  4. 2. Type Construction
  5. 3. Very Gentle Type Theory and Category Theory Intro
  6. 4. Basic Typeclasses or “Show Me a Monoid”
  7. 5. Functor, Bifunctor, and Applicative Functor Enter an Elevator …
  8. 6. O, Monad, Help Me Compose!
  9. 7. Input, Transformer Stack, Output
  10. 8. Blackjack: Full Haskell Program
  11. 9. Let’s AI
  12. 10. Terminal AI Chat Agent
  13. 11. Web-Enabled AI Framework and GHC “Guts”
  14. 12. Down the Rabbit Hole
  15. 13. AI Multi-agents, Arrows, and the Future
  16. Back Matter

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • 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.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Magical Haskell by Anton Antich in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming. We have over one million books available in our catalogue for you to explore.