Click here to Skip to main content
14,982,961 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 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...
by Roshan Choudhary
Component Interaction in Angular using Input Output decorator

All Articles

Sort by Score

Haskell 

Please Sign up or sign in to vote.
9 Nov 2015
Sander Rossel
Using Venn diagrams to visualize sets.
Please Sign up or sign in to vote.
14 Apr 2020
Member 4201813
Jump forward/backward procedures for XorShift RNG explained step by step
Please Sign up or sign in to vote.
4 Apr 2015
Sander Rossel
Why you should learn new languages and why you should know a lot about a bit and a bit about a lot.
Please Sign up or sign in to vote.
29 Apr 2014
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...
Please Sign up or sign in to vote.
24 Aug 2014
José Cintra
Some suggestions of algorithms for computing the Fibonacci numbers addressing iterative, recursive and functional paradigms
Please Sign up or sign in to vote.
20 Jun 2014
Philipp_Engelmann
Arabic-Roman number converter in Haskell (Part 1: Converting Arabic to Roman numbers)
Please Sign up or sign in to vote.
24 Jun 2014
Philipp_Engelmann
Arabic-Roman Number Converter in Haskell (Part 2: Converting Roman to Arabic Numbers)
Please Sign up or sign in to vote.
21 Mar 2011
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...
Please Sign up or sign in to vote.
13 Nov 2015
CPallini
I am rusty at Haskell, however, I supposemain = do args
Please Sign up or sign in to vote.
31 Jan 2011
AkilMai
I need some help if possible with the following problem.....The WalkSat algorithm takes a formula, a probability 0 =
Please Sign up or sign in to vote.
28 Apr 2012
Thenraja
1 alternative  
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...
Please Sign up or sign in to vote.
28 Apr 2012
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[^]
Please Sign up or sign in to vote.
16 Nov 2012
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...
Please Sign up or sign in to vote.
21 Dec 2012
AboKhater
2 alternatives  
How do you implement a quick sort in Haskell?
Please Sign up or sign in to vote.
21 Dec 2012
DinoRondelly
Try this,http://c2.com/cgi/wiki?QuickSortInHaskell[^]
Please Sign up or sign in to vote.
21 Dec 2012
__TR__
Try Google[^]
Please Sign up or sign in to vote.
17 Apr 2014
Member 10758001
1 alternative  
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...
Please Sign up or sign in to vote.
17 Apr 2014
CPallini
See this Stack Overflow question: "In Haskell, how can I use the built in sortBy function to sort a list of pairs(tuple)?"[^].
Please Sign up or sign in to vote.
22 Apr 2014
Member 10758001
1 alternative  
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",...
Please Sign up or sign in to vote.
22 Apr 2014
_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.
Please Sign up or sign in to vote.
23 Apr 2014
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
Please Sign up or sign in to vote.
25 Apr 2014
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...
Please Sign up or sign in to vote.
13 Aug 2014
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,...
Please Sign up or sign in to vote.
13 Nov 2015
pkfox
2 alternatives  
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...
Please Sign up or sign in to vote.
13 Nov 2015
pkfox
I was just about to post this which seems to work arg1
Please Sign up or sign in to vote.
6 Feb 2016
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...
Please Sign up or sign in to vote.
6 Mar 2017
Michael Koops
1 alternative  
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...
Please Sign up or sign in to vote.
6 Mar 2017
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...
Please Sign up or sign in to vote.
26 Mar 2017
Richard MacCutchan
The Haskell documentation is the place to find explanations.
Please Sign up or sign in to vote.
11 Jul 2019
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[^]
Please Sign up or sign in to vote.
4 Nov 2019
RickZeeland
See Haskell tutorial here: Haskell Tutorial - Tutorialspoint[^]
Please Sign up or sign in to vote.
3 May 2021
Member 13702159
1 alternative  
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...
Please Sign up or sign in to vote.
3 May 2021
CPallini
Here some insight: A Gentle Introduction to Haskell: Functions[^].
Please Sign up or sign in to vote.
4 Nov 2015
Sander Rossel
A simple introduction to set theory.
Please Sign up or sign in to vote.
5 Nov 2018
José Cintra
Calculating some mathematical sequences and series with the Haskell programming language
Please Sign up or sign in to vote.
4 Nov 2019
BlackMATov
One of the currying options and partial application of the functions in C++ which is my personal favourite
Please Sign up or sign in to vote.
25 Nov 2018
Roshan Choudhary
Component Interaction in Angular using Input Output decorator
Please Sign up or sign in to vote.
7 Mar 2013
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...
Please Sign up or sign in to vote.
31 Aug 2019
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...
Please Sign up or sign in to vote.
9 Nov 2018
Сергей Челноков
How to write your Notepad
Please Sign up or sign in to vote.
29 Apr 2014
khaledkee
1 alternative  
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?
Please Sign up or sign in to vote.
21 Mar 2011
#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.
Please Sign up or sign in to vote.
29 Jan 2012
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...
Please Sign up or sign in to vote.
21 Mar 2011
jovhenni19
2 alternatives  
--Compute for Rectangular Areamain = do putStr $ "Length: " len
Please Sign up or sign in to vote.
4 Nov 2019
Member 14644438
1 alternative  
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...