Problem I’m trying to write a function that produces an infinite list containing strings of the form
Category: Haskel
Sum of multiples of 3 or 5 below N
Problem How do I improve speed of this code? The problem definition is “Find the sum of all the multiples […]
Get Height of Tree
Problem Given the following Abstact Data Type: data Tree a = Leaf | Node Integer (Tree a) a (Tree a) […]
CRUD App in Haskell with Servant/Opaleye
Problem I was trying to learn how to use libraries like Opaleye and Servant. I wrote this toy Create/Read/Update/Delete App. […]
Lexer for expression evaluator
Problem I started learning my first functional programming language (Haskell) yesterday and I have been working on a lexer for […]
Simple Prefix Matching Library in Haskell
Problem For some context, I’m trying to write a streaming tokenizer in Haskell and noticed that I was writing a […]
insertBST exercise
Problem I’m just learning Haskell on my own, and did an exercise to implement insertBST. Is this idiomatic Haskell? insertBST […]
Popping from a list in state while a condition is true
Problem I’m dealing with data that stores its state as a String, treating the string like a stack. I also […]
Playing with event-sourcing
Problem I’m playing around with some ideas about how to read aggregates from events. From a high-level view I would […]
Loading Files from a Directory in Haskell
Problem I’m a very new Haskell programmer, and I’ve written the following code for loading TSV files. I think it […]