## Basic tic-tac-toe matrix in Haskell

Problem Beginner functional programmer… (but not beginner programmer) Currently, I have the following code: import Control.Monad (mapM_) main = gridMaker […]

Problem This is a tiny etude on a theme given here, using Python: Provide a function that generates a human […]

## Implementing `Applicative Cons`

Problem Given the following definition: data Cons a = Cons a (Cons a) | Empty deriving Show I implemented the […]

## DRY Kleisli wrappers with lens

Problem This currently does what I intend: import Control.Arrow (Kleisli, runKleisli) import Control.Applicative (WrappedArrow(WrapArrow)) import Control.Lens.Traversal (preview) nested :: Request […]

## Naive Bayes classifier

Problem I just started learning Haskell, and I must say it is unlike anything else. As my first not-entirely-trivial piece […]

## Simple quotes app

Problem I created simple app that read ~ delimited txt file, convert it to [String] and display quotes on screen. […]

## soundex implementation

Problem The soundex algorithm maps several spellings of a name to a 4 character term. (hopefully mapping all different transcriptions […]

## Producing all possible combinations of a list

Problem I’ve written a function that produces all combinations of elements in a given list: createGroups :: [a] -> [[(a, […]

## Implement a fold-like Function in Haskell

Problem Let’s say I need to write a function that applies a function to each item in a List, and […]

## SICP Exercise 1.3: Sum of squares of two largest numbers out of three, Haskell Version

Problem The exercise 1.3 of the book Structure and Interpretation of Computer Programs asks the following: Exercise 1.3. Define a […]