Relative Content

Tag Archive for haskell

Using foldr to append two lists together (Haskell)

I have been given the following question as part of a college assignment. Due to the module being very short, we are using only a subset of Haskell, without any of the syntactic sugar or idiomatic shortcuts….I must write:

Fastest Functional Language

I’ve recently been delving into functional programming especially Haskell and F#, the prior more so. After some googling around I could not find a benchmark comparison of the more prominent functional languages (Scala,F# etc).

Fastest Haskell library sort implementation

I am implementing an application in Haskell and, for sorting, I use the library function Data.List.sort. However, I was wondering whether this is the fastest sort implementation in the Haskell standard library (perhaps lists are not the best choice for efficient sorting).

Why would I use Control.Exception in Haskell?

I’m trying to really master Haskell error handling, and I’ve gotten to the point where I don’t understand why I would use Control.Exception instead of Control.Monad.Error.

does haskell have dependent types?

I know Haskell already has the ability to parametrise a type over another type (similar to template programming in C++), but I’m wondering whether Haskell can also parametrise a type over values – whether it supports dependent types. With dependent types, you can have a type that’s parametrised over integers, for example vectors of size n, matrices of size n×m, etc.