Haskell

Tag: Haskell

Hakyll and CircleCi

This blog was on tumblr, which was easy to setup and post and such. However, I spend like 8 hours a day with a text editor open and a git in terminal window.

Read more...

Incrementing

In an old essay, Paul Graham, talks about how some languages are more succinct and therefore they are more powerful. In fact, some programming languages can say things that you can’t easily say in others. Maybe you can’t say them at all. Its a good essay overall, you should read it.

Read more...

Project Euler #19 in haskell and by hand

How many Sundays fell on the first of the month during the twentieth century (1 Jan 1901 to 31 Dec 2000)?

http://projecteuler.net/problem=19

Read more...

Functor is to Lens as Applicative is to Biplate

“Functor is to Lens as Applicative is to Biplate”

Haskell, the language with seemingly endless new concepts to learn about

Project Euler #11 in haskell

What is the greatest product of four adjacent numbers in any direction (up, down, left, right, or diagonally) in the 20×20 grid?

http://projecteuler.net/problem=11

Read more...

Graham’s scan algorithm for the convex hull

Using the code from the preceding three exercises, implement Graham’s scan algorithm for the convex hull of a set of 2D points. You can find good description of what a convex hull. is, and how the Graham scan algorithm should work, on Wikipedia

Read more...