home
6 hours ago

IORef in Haskell

I was wondering if there was a legitimate usage for IORef in Haskell? More specifically I would be...
Why I can possibility to make in Haskell such list: slist = [ [], [[]], [[],[[]]] ] As far I...
A 'do' statement is used to execute multiple commands in one statement. For example, hello = ...
A famous Haskell book has an exercise (spoiler alert) that asks to write functor, applicative and...
Is there any command-line switch to stack that tells it to download all relevant packages without...
Sorry, I just started learning Haskell. I don't understand how to append a tuple to each...
I want to combine my list but I need to pass in a dummy initial value which is why I want to use...
I'm trying to create a base conversion function in Haskell, using the first argument as the number...
multiply :: Int -> Int -> Int multiply a b = a * b minus :: Int -> Int -> Int minus...
i wanted to use the som package from http://hackage.haskell.org/package/som to test some things...
I am looking up some Haskell exercises with answers. This is the exercise: Assume that you have...
Given a tree that looks like this: data Tree a = Leaf | Node (Tree a) a (Tree a) And a fold...
I'm writing a arithmetic parser to treat expressions like "1+2-3". I use this blog post as...
Background I have written the following code in Haskell (GHC): {-# LANGUAGE ...
I have some code as follows, that, when all on one line, compiles and functions correctly: let...
I defined a binary tree and used my functions to create a new tree. data Tree a = EmptyTree | Node...
I'm trying to get the index of a value in a list, doing so like this: items = "Test" zipItems xs =...
In Phil Wadler's paper : The essence of functional programming, Wadler describes the application of...
I am trying to use an unfold function to build trees. Tree t = Leaf | Node (Tree t) t (Tree...
I'm trying to write a recursive function that keeps going until a certain number is reached. The...
Given a tree defined to be: data Tree a = Leaf | Node (Tree a) a (Tree a) deriving (Eq, Show) I...
I'm trying to program a quadratic formula calculator program in Haskell using the following code on...
I have a Table (list of list of string) and have a method "select" to remove certain rows. Select...
I am trying to update my structured haskell mode using the cabal install command. Unfortunately,...
I could not understand why this error is occurred I have created yesod-sqlite project using stack...
I have some input data of the form below (this is just a small...
Trying to use the given fold function to flatten out a tree into a list. treeFold :: (b -> a...
This question already has an answer here: Haskell: How to return a...
In the Haskell Wiki article on prime numbers, the following implementation of the Sieve of...
What follows is a very simplified version of what I'm trying to do. Suppose I want to create a...