Top "Haskell" questions

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

Why do we need monads?

In my humble opinion the answers to the famous question "What is a monad?", especially the most voted ones, try …

haskell monads
Haskell: Where vs. Let

I am new to Haskell and I am very confused by Where vs. Let. They both seem to provide a …

haskell keyword where let
Scala: How to define "generic" function parameters?

I am trying to learn Scala now, with a little bit of experience in Haskell. One thing that stood out …

scala haskell polymorphism type-inference
Generating Fibonacci numbers in Haskell?

In Haskell, how can I generate Fibonacci numbers based on the property that the nth Fibonacci number is equal to …

haskell fibonacci
Why is Haskell (GHC) so darn fast?

Haskell (with the GHC compiler) is a lot faster than you'd expect. Used correctly, it can get close-ish to low-level …

performance haskell ghc higher-order-functions lambda-calculus
Haskell file reading

I have just recently started learning Haskell and I am having a lot of trouble trying to figure out how …

file haskell word
What is the Haskell response to Node.js?

I believe the Erlang community is not envious of Node.js as it does non-blocking I/O natively and has …

multithreading haskell concurrency node.js
Why is the minimalist, example Haskell quicksort not a "true" quicksort?

Haskell's website introduces a very attractive 5-line quicksort function, as seen below. quicksort [] = [] quicksort (p:xs) = (quicksort lesser) ++ [p] ++ (quicksort …

sorting haskell quicksort
How does deriving work in Haskell?

Algebraic Data Types (ADTs) in Haskell can automatically become instances of some typeclasses (like Show, Eq) by deriving from them. …

haskell typeclass derived-types derived-instances deriving
Get sqrt from Int in Haskell

How can I get sqrt from Int. I try so: sqrt . fromInteger x But get error with types compatibility.

haskell types sqrt