Sometimes I run into expressions full of different operators and I have no idea how they get parsed. I know that I can ask GHCi information about an o ...
Sometimes I run into expressions full of different operators and I have no idea how they get parsed. I know that I can ask GHCi information about an o ...
I have been going through tutorial examples for data types and I have defined the following: If Dog "Fifo" gives Animal a String, why doesn't Dog 1 ...
Trying this in ghci: foldl (:) [1] [2,3,4] which gives the following error: But the same thing works with foldr foldr (:) [1] [2,3,4] which out ...
I have created the code below that is part of building a parser from scratch. I do however encounter unexpected output when using escape characters si ...
I am trying to learn how to structure a Haskell project/workflow that uses FFI. I am using stack, but I find myself unable to use GHCi when it comes t ...
I'm trying to start working on https://github.com/system-f/fp-course. After running stack ghci, it finishes with: Any idea why it's complaining tha ...
I'm new to Haskell, and have found the :type command in the ghci REPL to be really useful for interactively figuring out how things work. So far I've ...
I found the code of logical gate xor written in Haskell, but I don't know what does this "(/=)" mean! ...
I am currently 'getting my feet wet with monads' (http://learnyouahaskell.com/a-fistful-of-monads#getting-our-feet-wet-with-maybe) and still strugglin ...
let say I have a project which is just a bunch of Haskell modules with exercises. I'd like to provide a .ghci which automatically imports all modules ...
I'm a newbie here also at programming in general. I just installed Stack via curl but got stuck at 'stack setup.' Although the terminal shows the Stac ...
Haskell ghci doesn't show error messages, just "error: " without any message. I've looked through documentation and searched the web, but no joy. What ...
So I am trying to create a function such that it prints the number of common vowels between the given strings for example common vowels "Hello Joe" " ...
Here is the error message: I'm not sure what other process the file is being used for, I checked the logs and they say basically the same as these ...
I have a project (let's call it parent) that has a sub-package (child). Using HLS from emacs, whenever I change a file in the parent that imports part ...
I've got this code: and I typed it into ghci. When I try to execute the expression: it should make use of the third line and return 6, but I'll ...
I was trying to run this program on ghci, where it reorders the names in the ascending order of their last names. However, when I run it, I get this e ...
digits :: Int -> [Int] digits n = reverse (x) where x | n < 10 = [n] | otherwise = (mod n 10) : (digits (div n 10 ...
I am pretty new to Haskell, and I was wondering if one can define new types that are defined by lists of other types. For example, I assume a string i ...
I'm trying to implement a subString function which has a conditional part: "This function can accept negative start and end position. Negative start ...