Questions tagged [haskell]

Haskell is a purely functional programming language, general purpose, named after the logician Haskell Curry.

Filter by
Sorted by
Tagged with
1
vote
1answer
127 views

How to spawn a program on a specific workspace at startup using XMonad?

Like, many, others, I am trying to spawn a program on a specific Xmonad workspace at startup. Here is my xmonad.hs that should start Firefox on workspace 4: import XMonad import XMonad.Actions.SpawnOn ...
0
votes
1answer
43 views

How to change the default Xmonad configuration off all users?

The canonical way to configure Xmonad is by creating the file ~/.xmonad/xmonad.hs However, I would like to change the default Xmonad configuration for all users, and not just for myself. I have ...
0
votes
0answers
64 views

VS Code Haskero debug configuration on Ubuntu

I am trying to configure VS Code for Haskell. I use Haskero extension, which works great for code navigation, highlighting etc. However, for some reason when I try to start a debugging session I ...
0
votes
1answer
1k views

After installation of Haskell: Haskell works, but isn't attainable in terminal

I installed Haskell for the use of TidalCycles on Mac / 10.14.6 TidalCycles works fine, so Haskell should to work too. However, after entering 'ghci' in the terminal, the following message appears -...
0
votes
1answer
393 views

Xmonad change keybinds based on keyboard layout

Is there there a way to define different keybindings in Xmonad depending on the current keyboard layout? For example, if I switch between standard US and Dvorak keyboard layouts, is there a way to ...
0
votes
0answers
152 views

Dump memory of process which exits immediately

I am doing a little keygen challenge (written in Haskell), which accepts one commandline argument (a license) and exists after checking if the provided string is valid or not. Hence I am not able to ...
0
votes
1answer
22 views

Installing Haskell math-functions-0.3.1.0 hangs

Trying to install Haskell datasets (http://hackage.haskell.org/package/datasets). The installation hangs when building math-functions-0.3.1.0. Tried to install individual dependencies, and again had ...
1
vote
0answers
55 views

When running stack build for with scalpel as a dependency, I encounter exitFailure1

Currently using stack to build the project with only base and scalpel as my 2 dependencies. This is the error log: 2019-03-31 19:47:34.154259: [info] curl-1.3.8: configure 2019-03-31 19:47:34.154652:...
2
votes
1answer
624 views

XMonad, spawn mutliple terminals on startup on different workspaces

Is it possible to spawn multiple terminals on startup on different workspaces? I have a bunch of terminals and Firefox which I would like to have running on startup. XMonad places Firefox correctly, ...
0
votes
1answer
226 views

Xmonad, How to set up a grid of workspaces?

I want to have 9 workspaces as a grid. And to navigate them using the arrow-keys. So far I can navigate with the arrow-keys, but I want to get rid of the "wrap-around". For example, if workspace 9 is ...
3
votes
1answer
919 views

Attempting to install Xmonad - package hidden

Probably just a big case of PICNIC, but when I tried to install Xmonad, I get errors stating Could not load module ‘XMonad’ It is a member of the hidden package ‘xmonad-0.15’. You can run ‘:set -...
0
votes
1answer
2k views

Haskell error with modules

I had Haskell platform installed on my computer and it worked fine until today. Today, when I wanted to load a file in prelude I got this error: Could not find module `Test.QuickCheck' Use -v to see ...
2
votes
0answers
162 views

xmonad: mouse hover hook

I'm trying to make xmonad focus the window underneath the pointer when the mouse is moved, regardless of which window is focused. This was addressed in this question; however, the provided solution ...
2
votes
2answers
1k views

Install haskell in existing msys2

Is there any simple way to install haskell / cabal / stack in an existing msys2 installation? I can't find one. Note: Apparently it is possible to install both at the same time using MinGHC, see here....
1
vote
1answer
1k views

Installing ghc-mod on Windows

I am trying to set up Atom as my Haskell IDE. I have already installed Haskell, and all of the Haskell plugins I need in Atom. I ran cabal install ghc-mod, which failed to install/configure old-time, ...
0
votes
1answer
597 views

cygwin doesn't recognize config.guess when installing Haskell package

I am trying to install a Haskell package on Windows 10 64-bit. I installed cygwin for x64 architecture. Later I installed automake-1.15 using cygwin's setup file. I downloaded the latest config.guess ...
3
votes
1answer
656 views

xmonad: focus window when mouse is moved

In my xmonad config, I have set focusFollowsMouse=true so that a window is focused when the mouse pointer is moved onto it. However, I would also like a window to become focused when the mouse pointer ...
1
vote
1answer
3k views

Compile Glasgow Haskell Compiler on Fedora 22

So I want to upgrade "GHC 7.8.4-45" that comes prepackaged with Fedora 22 (courtesy of the Fedora Haskell SIG) to GHC 7.10.2 (the latest). How to do that easily?
1
vote
0answers
148 views

Running Helm in VirtualBox

I've written a game in Haskell using Helm, but I'm having problems when I try to run the game in my virtual box. I have tried running the game on other (Linux) computers and it works well, but when I ...
1
vote
1answer
2k views

How to update pandoc on centos linux?

I dowloaded cabal-install-1.20.0.3.tar.gz file and extracted when I try to run am getting following errors.My aim is to update pandoc. Now I have pandoc 1.9 but I need 1.12 version.To update pandoc am ...
3
votes
1answer
386 views

Installing EclipseFP on Mac OS X

I am trying to install EclipseFP. I'm running OS X Mavericks. I've tried following both the official installation instructions and the advice in this answer on SU, but I'm still having the same ...
3
votes
1answer
2k views

Compiling Pandoc Haskell script: Could not find module `Text.Pandoc.JSON'

I am trying to use a canned example from Pandoc's scripting page, but I don't understand enough Haskell to make this work. Here's the script. #!/usr/bin/env runhaskell -- includes.hs import Text....
0
votes
1answer
29 views

How can I add an extra flag to Leksah?

How can I add an extra flag to Leksah? I'm getting this error: You need -XDeriveDataTypeable to derive an instance .... Where can I add the extra flag in Leksah?
0
votes
1answer
2k views

Xmonad can't find module XMonad

Whenever xmonad starts, restarts, or is recompiled, I get an xmessage: xmonad.hs:1:8: Could not find module `XMonad' Perhaps you meant Monad (needs flag -package haskell98-2.0.0.2) ...
1
vote
0answers
316 views

Installing leksah from source

I tried to install leksah via cabal but I got tons of different build errors so I tried to build it from git. I followed this guide http://www.leksah.org/download.html and I was able to build binary-...
1
vote
1answer
89 views

iTerm2 not respecting my key bindings…sometimes

I have my iTerm2 keybindings set to have command+left arrow and command+right arrow move the cursor to the beginning and end of the line. This works most of the time. But not when I am in ghci (the ...
1
vote
1answer
181 views

Installing haskell ghc fails

I am trying to install Haskell-2012.4.0.0.exe on my computer running windows 7. When I run the installer I get the following message and the installation fails, Installer integrity check has failed. ...
3
votes
1answer
239 views

Emacs saving automatically (*not* auto-save)

When I edit Haskell files, Emacs saves the file whenever I stop typing for more than a second. This is not auto-save mode, as it's overwriting the original file. Also, I disabled auto-save mode, and ...
6
votes
2answers
4k views

What is a good method to solve cabal install problems?

I've used the cabal package manager for Haskell programs to install libraries and new projects that I've cloned from some repositories. More often than not, I keep running into problems. Most projects ...
6
votes
1answer
2k views

Portable Haskell Compiler

I have a Haskell program that I want to run on my school's cluster, but their version of GHC is too old and they won't update it. I want to somehow package it with my source code, but by default it ...
1
vote
1answer
1k views

What is wrong in this xmonad configuration?

I have the following configuration on xmonad.hs, I really just want to add xmobar to the spawn pipe, but i dont know whats wrong. This is my config: import XMonad main = do xmproc <- ...
0
votes
1answer
156 views

How do I modify a literate haskell script to contain unicode characters?

I would like to modify a .lhs file currently written in plain text. For example, -> would be replaced by → in the .lhs file. I am aware that for display purposes, many text editors can replace these ...
0
votes
1answer
278 views

Fedora 16: Failed to install scion-browser with cabal

It seems like on Fedora 16 cabal isn't able to install scion-browser from hackage because of some incompatibilities with respect to Fedora's shared objects. When I run cabal install scion-browser I ...
0
votes
1answer
2k views

Where to get GHC for centos 6?

Can anyone direct me as to how to install GHC? I went here: http://pkgs.org/centos-6-rhel-6/epel-testing-i386/ghc-ghc-6.12.3-6.el6.i686.rpm/download/ and tried both the binary and source packages (...
15
votes
2answers
869 views

What XMonad Configuration Best Replicates Default Ion3 Behavior and Feature Set?

Not being very familiar with Haskell and lamenting that Ion 3 is now abandonware, I am curious if anyone out there has found a way of replicating the default Ion 3 behavior and aesthetics in XMonad. ...
2
votes
0answers
269 views

Installing haskell platform fails

I am trying to install haskell-platform-2011.2.0.1 onto my SUSE 11.4. I have got all the dependencies required for ./configure, which works ok. But when getting to make, it builds with this error: ...
2
votes
1answer
950 views

How to setup TextMate to work with Haskel

I am new to mac, and am in the process of getting my computer setup with all the programs I need, one of them being Haskell. To my surprise, the Haskell platform for OS X is not like in Windows (...
0
votes
1answer
599 views

How to uninstall GHC 7.x from FreeBSD?

I have installed GHC 7.x on FreeBSD, (installed with binary distribution, not pkg_add) but I have to downgrade it to 6.x. How can I uninstall it? Or is there general method to uninstall program on ...
2
votes
0answers
602 views

ghc6 install trouble: hGetContents: invalid argument (invalid UTF-8 byte sequence)

Having trouble installing ghc6 on Ubuntu Maverick via apt. Here's what seems to be the relevant error that comes up when I try to (apt-get|aptitude) install ghc6: A package failed to install. ...
13
votes
3answers
5k views

Start applications on specific workspaces in xmonad

I know how to associate specific applications with specific workspaces using manageHook and composeAll. What I'm looking for is a way to spawn applications on specific workspaces, i.e. a function with ...
11
votes
2answers
9k views

Configuring Eclipse to compile Haskell with EclipseFP Plugin

I just installed the EclipseFP plugin into my Eclipse setup (on Windows 7 32bit, if that matters), following the instructions. Then I followed the directions in the Eclipse help docs to create a Hello ...
3
votes
0answers
277 views

libedit ignores editrc file in Ubuntu Lucid

I'm trying to get ghci (Haskell's interactive command line) to handle Ctrl+Left and Ctrl+Right arrows properly rather than showing garbage like this: Prelude> 1;5D1;5C At the bottom of this bug ...
1
vote
1answer
2k views

Making fullscreen windows not tiled in xmonad + KDE

I understand, that I need to add something like: composeOne [ isFullscreen -?> doFullFloat ] to my ManageHook. At least according to this page. But I'm not really sure where to add it in my ...
1
vote
1answer
82 views

Unable to have full-screen in Mac's Xmonad

I installed the newest X11. I run the following command unsuccessfully after sourcing ~/.profile $exec /usr/X11/lib/X11/xinit/xinitrc I get a message Screen is terminating and I do not see any ...