Click here to Skip to main content
15,881,600 members
Everything / Programming Languages / Haskell

Haskell

Haskell

Great Reads

by Sander Rossel
Using Venn diagrams to visualize sets.
by Member 4201813
Jump forward/backward procedures for XorShift RNG explained step by step
by Sander Rossel
Why you should learn new languages and why you should know a lot about a bit and a bit about a lot.
by José Cintra
Some suggestions of algorithms for computing the Fibonacci numbers addressing iterative, recursive and functional paradigms

Latest Articles

by Zachery Yee
This article will delve into the Lazy Evaluation and how to implement Haskell's G-Machine in MoonBit.
by Member 4201813
Jump forward/backward procedures for XorShift RNG explained step by step
by BlackMATov
One of the currying options and partial application of the functions in C++ which is my personal favourite
by Alexander Gutev
Another Programming Language?. CodeProjectI recently released version 0.4, the first version that is remotely usable, of Tridash, a programming language I've been working on...

All Articles

Sort by Score

Haskell 

9 Nov 2015 by Sander Rossel
Using Venn diagrams to visualize sets.
14 Apr 2020 by Member 4201813
Jump forward/backward procedures for XorShift RNG explained step by step
4 Apr 2015 by Sander Rossel
Why you should learn new languages and why you should know a lot about a bit and a bit about a lot.
29 Apr 2014 by Sergey Alexandrovich Kryukov
First of all, you should not incorrectly compare paradigms, functional vs imperative. Functional can actually be considered as a kind of imperative. (It is not declarative, right? :-)) And the question "why" is not, strictly speaking, correct. Why? Because it was designed this way.This is...
24 Aug 2014 by José Cintra
Some suggestions of algorithms for computing the Fibonacci numbers addressing iterative, recursive and functional paradigms
20 Jun 2014 by Philipp_Engelmann
Arabic-Roman number converter in Haskell (Part 1: Converting Arabic to Roman numbers)
24 Jun 2014 by Philipp_Engelmann
Arabic-Roman Number Converter in Haskell (Part 2: Converting Roman to Arabic Numbers)
21 Mar 2011 by Kubajzz
I guess the problem is that getLine gives you a string, but you need a number to do the multiplication. Check out the read function.And, by the way, asking Google is really faster...
13 Nov 2015 by CPallini
I am rusty at Haskell, however, I supposemain = do args
31 Jan 2011 by AkilMai
I need some help if possible with the following problem.....The WalkSat algorithm takes a formula, a probability 0 =
28 Apr 2012 by Thenraja
I googled and got some answers that communication between Java and Haskell can be done by GCJNI(Now the site is down) and LambdaVM.. To use the LambdaVM/GCJNI, whether I need to download any build tools? Where can I know more about them, since I don't find much resources on online?I want to...
28 Apr 2012 by Mehdi Gholam
Take a look here :http://www.haskell.org/haskellwiki/Applications_and_libraries/Interfacing_other_languages#Java[^]You could create a webservice also :http://stackoverflow.com/questions/6663888/web-service-frameworks-in-haskell[^]
16 Nov 2012 by Matias Espinosa
I'm trying to implement the hash to use the back button and keep a history in my web application which uses AJAX.When I press back, the hash is changed correctly but the page is not displayed as it should and does not keep the browsing history as to return to the previous page, this is like...
21 Dec 2012 by AboKhater
How do you implement a quick sort in Haskell?
21 Dec 2012 by DinoRondelly
Try this,http://c2.com/cgi/wiki?QuickSortInHaskell[^]
21 Dec 2012 by __TR__
Try Google[^]
17 Apr 2014 by Member 10758001
I was trying to write a code for scrabble game but i am facing a problem how to send the tuple of the word and score ([("XXX", 1), ("ZZZ", 11), ("WWW",11), ("YYY, 8)]) to a function. And even how that function sorts the tuple in descending order and rerun all those tuples with the maximum...
17 Apr 2014 by CPallini
See this Stack Overflow question: "In Haskell, how can I use the built in sortBy function to sort a list of pairs(tuple)?"[^].
22 Apr 2014 by Member 10758001
I am having a letter mapped with its respective scoredict = fromList([("A",1), ("B",3), ("C", 3), ("E", 1), ("D", 2), ("G", 2), ("F", 4), ("I", 1), ("H", 4), ("K", 5), ("J", 8), ("M", 3), ("L", 1), ("O", 1), ("N", 1), ("Q", 10), ("P", 3), ("S", 1), ("R", 1), ("U", 1), ("T", 1), ("W", 4), ("V",...
22 Apr 2014 by _Damian S_
Read the characters of the word one character at a time, locate the correct value for the letter you read in (might want to force to upper case at this point), and sum the values.
23 Apr 2014 by Member 10758001
I am having a file which contains a set of 200000+ words and i want the program to read the data and store it in array and form a new array with all the 200000+ wordsI wrote the code asimport System.IOmain = do handle
25 Apr 2014 by Member 10758001
I was writing a program for converting all the words in the file into a array and calculate their corresponding scores and then zip both of them and make a dictionary and print it.I want to use only dictionary to increase the performance but it is showing a error as .[1 of 1] Compiling...
13 Aug 2014 by Member 11010948
I am courious. which tool should be picked for massive sofisticatad statistic calculations data mining machine learning environement ?haskell language is pure functional, no mathematical packages, fast, professional.R language is procedural, has massive mathematical packages, slow,...
13 Nov 2015 by pkfox
Hi all, just dipping my toes into the waters of Haskell and need some help parsing command line args ( yes I've googled ) the code below works perfectly but I would like to pass a value on the command line - there is a Haskell function called getArgs that returns a string list of all command...
13 Nov 2015 by pkfox
I was just about to post this which seems to work arg1
6 Feb 2016 by Member 12311139
I am trying to access a list within a list using recursion. For example : you have as an input [[1,2], [2, 3]] and I trying to access every element within that input as taking the head [1,2] and now I would like to access 1 and after 2.What I have tried:I have tried the...
6 Mar 2017 by Michael Koops
how to use while loop in Haskell.Code example would be great.how to use while loop in Haskell.Code example would be great.how to use while loop in Haskell.Code example would be great.What I have tried:how to use while loop in Haskell.Code example would be great.how to...
6 Mar 2017 by CDP1802
I don't know Haskell, but there is one thing that should still be valid for a functional language: Iteration (loops) can always be replaced by an equivalent recursion or vice versa.The least confusing definition of recursion[^] is a function that calls itself. Each call represents an...
26 Mar 2017 by Richard MacCutchan
The Haskell documentation is the place to find explanations.
11 Jul 2019 by OriginalGriff
This is not a question - and that is what this area is intended for. This really suits a discussion-based forum format better, try this one: Collaboration / Beta Testing Discussion Boards[^]
4 Nov 2019 by RickZeeland
See Haskell tutorial here: Haskell Tutorial - Tutorialspoint[^]
3 May 2021 by Member 13702159
hi, could you please explain the declaration below? I am trying to understand but this one is not intuitive to me. add :: Integer -> Integer -> Integer --function declaration add x y = x + y --function definition why...
3 May 2021 by CPallini
Here some insight: A Gentle Introduction to Haskell: Functions[^].
5 May 2023 by OriginalGriff
Quote: Any one can solve it in the server side code and in the client side code and repost it? thanks in advance. While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do...
13 Mar 2024 by Zachery Yee
This article will delve into the Lazy Evaluation and how to implement Haskell's G-Machine in MoonBit.
4 Nov 2015 by Sander Rossel
A simple introduction to set theory
5 Nov 2018 by José Cintra
Calculating some mathematical sequences and series with the Haskell programming language
4 Nov 2019 by BlackMATov
One of the currying options and partial application of the functions in C++ which is my personal favourite
25 Nov 2018 by Roshan Choudhary
Component Interaction in Angular using Input Output decorator
7 Mar 2013 by Member 9736263
Hi guys, I'm somewhat new to Haskell and I'm stuck with the following. I have this type:newtype Node = N (String,[Edge])newtype Graph = G([Node])n2s (N (n,e)) = nHow come I can't use:n2s :: Node -> Stringn2s n = fst nIf n is a tuple then you should be able to do...
31 Aug 2019 by Alexander Gutev
Another Programming Language?. CodeProjectI recently released version 0.4, the first version that is remotely usable, of Tridash, a programming language I've been working on...
9 Nov 2018 by Сергей Челноков
29 Apr 2014 by khaledkee
F# supports mutable classes, however, I read that functional programming paradigm should not contain mutable classes/objects. If so, it will be imperative instead. I want to know why?
21 Mar 2011 by #realJSOP
You should learn to use google. When you search for "haskell", you get back over 8 million hits. Surely, there's a web site or forum somewhere that indicates an answer.
29 Jan 2012 by KiMO.1337
Hi. As the title says, I need to implement a interpreter which will take as input Description Logic axioms, and return Prolog rules. And this has to be done in Haskell. Can you please point me to some source where I can get started? Maybe a simple Haskell to prolog interpreter, or anything...
21 Mar 2011 by jovhenni19
--Compute for Rectangular Areamain = do putStr $ "Length: " len
4 Nov 2019 by Member 14644438
I have a problem with my homework. I need to do maze with 2 parametres. First parameter is list of strings which represent the maze by lines gradually from top to bottom. ('*' - wall, ' ' - field, 's' - starting position). At the beginning we are in position 's'.The second argument is a list of...