Index

A

Aeson library

AI agents framework

agent functionality

MRWST monad transformer

AI chat agent

chat history

Jarvis

logging function

terminal-based UI

business logic

initialization

Jarvis

main function

monad transformer stack

response function

writer monad

AI multi-agents

error handling

catching exceptions

style

GUI

LLMs

web authentication, JWTs

Algebraic data types (ADTs)

anotherWeirdFunction

Applicative functors

Arrows

AI multi-agents

ChatGPT

creation

examples

LLM-based module

OpenAI LLM

URLs

definitions/examples

interface

monad transformer stacks

typeclasses

typed functional programming

Artificial intelligence (AI)

Haskell/LLM

framework

MongoDB

terminal chatbot

LLM

ANNs

fine tuning

limitations

text generation

tokens

vector embeddings

vector RAG

Artificial neural networks (ANN)

Associated type and data families

B

Bifunctor

applicative typeclass

bimap

generic function

generic type

Maybe

PlayerData type

regular functions

String Double

Blackjack program

domain modeling

final computation, game cycle

GameFloor, create file

implementation

IO

iterative development and testing

layered architecture

“main” function

preparation

pure design

solve problems

Boxed vectors

C

cabal and stack for package management

“Call by need” lazy evaluation approach

Cards.hs

Cartesian product

Category laws

Chatbots

chatCompletion function

ChatGPT

“C--” language

Comprehension

Constructor function

Coproduct types

Currying

D

DeckM

Deep Reinforcement Learning

Dependent function type

Dependent pair/sigma types

Dependent types

Do notation

E

Endomorphism

execStateT function

extractBearerToken function

F

findAll method

Full-featured terminal-based application

Functional programming

Functional dependencies

Functional reactive programming (FRP)

Functor

three-dimensional vector example

tracking players, game

typeclass

typeclass definition

G

GameFloor

GenAI models

Generalized algebraic data type (GADT)

H

Hask

Haskell’s aeson library

I

Identity

id function

incrementVector function

initAll function

Input output (IO) monad

Blackjack game

computations

DeckM

designers

do notation

effects

Haskell code

Haskell libraries

Haskell programs

identity

imperative language

lift function

operations

single monad

state

typeclass

typical real-world program

“where” block

InputT monad transformer

IOFloor.hs

J

Jarvis

JSON Web Tokens (JWTs)

K

Kind system

Kleisli constructor

L

Lambda function

Large language models (LLMs)

List

ListInt

M

Magma

Map

mapM_C function

Maybe type function

Monads

applicative

card playing competition

countable

reader

state

transformer stacks

typeclass

typeclass/basic monads

writer

Monad transformer stacks

MongoDB

initialization

no-SQL database

system prompts collection

terminal and web server modes

web API functionality

Monoids

Morphisms/maps

Mutable variables

relationship, IORef/MVar/TVar

functional programming

IORef

MVar

performant algorithms

TVar

N

Nat

Normal functions

O

OpenAI

OpenAI’s API

chatCompletion function

chatoptions

handling optional fields

Haskell

JSON

message type

program

streaming fashion

types/JSON

P

Parametric types

Partial function

Perceptron

Polymorphic function

Prelude

Primitive types

Primops/primitive operations

Product types

Q

Query

R

Rank-N polymorphism

Rank-N types

S

Schema data type

Sigma types

Software Transactional Memory (STM)

Spineless Tagless G-machine (STG)

State monad

Structure-preserving maps

System FC

T

Tokens

Transformer stacks

See Input output (IO) monad

Traversable typeclass

Type/category theory

advanced generalized functions

characteristics

dependent function type

functional programming

Haskell

morphisms

sum/product/dependent pair types

typeclasses

types and functions

Typechecker

Typeclasses

algebra

Char or Int

example

functor

Magma

Maybe/list

monoid

multiparameter

show

Type construction

ADTs

data constructors/types

deck of cards, create

functions

house of cards, algebra

list

map function, list

records

Typed functional programming

Type families

associated types/data

data

functions

synonym

Type functions

Type-level functions

Types

functions

char/int

curry/recurse

string

synonym

U

Unboxed vectors

V

Values

Vector embeddings

Vector library

boxed and unboxed vectors

implementation/generic interface

mutable vectors/ST monad

practice

rank-N types

Vector RAG

implementation

in-memory vector search engine

implement functions

Mongo storage

store

terminal and web UI

testing Jarvis

text-to-vector embeddings

verySafeDivide

W, X, Y, Z

Web-enabled AI

GHC

adding web API

Jarvis program

newtype keyword

STG

terminal UI

Wizards

problem

solving problems