Top "Haskell" questions

Haskell is a functional programming language featuring strong static typing, lazy evaluation, extensive parallelism and concurrency support, and unique abstraction capabilities.

Haskell types frustrating a simple 'average' function

I'm playing around with beginner Haskell, and I wanted to write an average function. It seemed like the simplest thing …

haskell types typeclass
Built-in factorial function in Haskell

I know this sounds like a stupid question, but here it is: Is there a built-in factorial in Haskell? Google …

haskell factorial
Cartesian product of 2 lists in Haskell

I wish to produce the Cartesian product of 2 lists in Haskell, but I cannot work out how to do it. …

haskell combinatorics cartesian-product
Using Haskell's map function to calculate the sum of a list

Haskell addm::[Int]->Int addm (x:xs) = sum(x:xs) I was able to achieve to get a …

list haskell recursion fold
Comparing Haskell's Snap and Yesod web frameworks

The two Haskell web frameworks in the news recently are Yesod (at 0.8) and Snap (at 0.4). It's quite obvious that Yesod …

haskell web-frameworks yesod haskell-snap-framework
Running a Haskell program on the Android OS

Forenote: This is an extension of the thread started on /r/haskell Lets start with the facts: Android is one …

android haskell executable
How do you represent a graph in Haskell?

It's easy enough to represent a tree or list in haskell using algebraic data types. But how would you go …

haskell types graph functional-programming algebraic-data-types
What is Weak Head Normal Form?

What does Weak Head Normal Form (WHNF) mean? What does Head Normal form (HNF) and Normal Form (NF) mean? Real …

haskell definition strictness weak-head-normal-form
What is the purpose of the reader monad?

The reader monad is so complex and seems to be useless. In an imperative language like Java or C++, there …

haskell monads reader-monad
What are the primary differences between Haskell and F#?

I've searched on the Internet for comparisons between F# and Haskell but haven't found anything really definitive. What are the …

haskell f# functional-programming language-comparisons