Top "Haskell" questions

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

In Haskell, when do we use in with let?

In the following code, the last phrase I can put an in in front. Will it change anything? Another question: …

haskell scope whitespace where-clause let
Large-scale design in Haskell?

What is a good way to design/structure large functional programs, especially in Haskell? I've been through a bunch of …

haskell functional-programming monads large-scale
In Haskell performing `and` and `or` for boolean functions

I just wrote the following two functions: fand :: (a -> Bool) -> (a -> Bool) -> …

haskell combinators pointfree
Fastest way to get the last element of a list in Haskell

What is the fastest way to get the last element of a list in Haskell. Also in next iteration, I …

haskell list-comprehension
Haskell error parse error on input `='

I'm new to Haskell and after starting ghci I tried: f x = 2 * x and I obtained: <interactive>:1:4: parse …

haskell
What are free monads?

I've seen the term Free Monad pop up every now and then for some time, but everyone just seems to …

haskell monads category-theory free-monad
Replace individual list elements in Haskell?

I have a list of elements and I wish to update them: from this: ["Off","Off","Off","Off"] to this: ["…

list haskell state
Non-exhaustive patterns in function

I've got a problem with this code, it should count the longest substring of the same letter in a string, …

haskell pattern-matching non-exhaustive-patterns
Divide Int to Int and return Int

I need a function which gets two Ints (a and b) and returns A/B as Int. I am sure …

haskell int
Dot Operator in Haskell: need more explanation

I'm trying to understand what the dot operator is doing in this Haskell code: sumEuler = sum . (map euler) . mkList The …

haskell syntax function-composition