Section 2 - Cookbook
Now that you have worked through the pure and impure Haskell coding tutorials in the first two chapters we will look at a “cookbook” of techniques and sample applications to solve some common programming tasks as well as implement a program to play the card game Blackjack.
I expect you, dear reader, to have studied and absorbed the tutorial material on pure and impure Haskell programming in the first two chapters. If you are new to Haskell, or don’t have much experience yet, carefully working through these tutorial chapters is a requirement for understanding the material in the rest of this book.
This section contains the following “recipe” applications:
- Using the OpenAI APIs for text completion
- Web app for calling Google Gemini AIs
- Command line application for calling Google Gemini AIs
- Command line application for calling Ollama LLM server (for local models)
- Using the Brave Search API
- Textprocessing CSV Files
- Textprocessing JSON Files
- Using sqlite and Postgres databases
- REST Server Providing JSON Data
- REST Client
- Accessing and Using Linked Data
- Querying Semantic Web RDF Data Sources
- Annotating English text with Wikipedia/DBPedia URIs for entities in the original text. Entities can be people, places, organizations, etc.
- Play the Blackjack card game