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 vs. Prolog comparison

What kind of problems is better solved in Prolog than in Haskell? What are the main differences between these two …

haskell prolog
A Haskell function of type: IO String-> String

I wrote a bunch of code in Haskell to create an index of a text. The top function looks like …

haskell io monads readfile
How to install a package using stack?

Using cabal, I could install hakyll with the command: cabal install hakyll How can I do the same thing using …

haskell cabal cabal-install package-management haskell-stack
Haskell: Deriving Show for custom type

I have this type definition: data Operace = Op (Int->Int->Int) String (Int->Int->Int) deriving …

haskell show typeclass ghci
Difference between print and putStrLn in Haskell

I am confused. I tried to use print, but I know people apply putStrLn. What are the real differences between …

haskell printing ghc
Haskell Error - Naked Expression at Top Level

I have the following code: fib n | n == 0 = 0 | n == 1 = 1 | n > 1 = fib (n-1) + fib (n-2) print fib 5 And for some …

haskell ghc
What is "lifting" in Haskell?

I don't understand what "lifting" is. Should I first understand monads before understanding what a "lift" is? (I'm completely ignorant …

haskell functional-programming
Why is lazy evaluation useful?

I have long been wondering why lazy evaluation is useful. I have yet to have anyone explain to me in …

haskell functional-programming lazy-evaluation
ghci 'Not in scope:' message

I'm going through the 'Learn you a Haskell' tutorial and I am at this part: lucky :: (Integral a) => a …

haskell ghci
Difference between logic programming and functional programming

I have been reading many articles trying to understand the difference between functional and logic programming, but the only deduction …

haskell functional-programming prolog