Questions tagged [haskell]

Haskell is a functional programming language.

Haskell is a functional programming language with non-strict semantics. Haskell's first version was released in 1990.

Some Links on Haskell:

35 questions
9
votes
1 answer

cabal dies on NixOS in KVM

I set up a NixOS system on KVM and installed the haskelPlatform package. Everything works fine, ghci works fine, but cabal dies without any helpful error message: [michas@nix:~]$ type -a cabal cabal is…
michas
  • 21,190
  • 4
  • 63
  • 93
9
votes
3 answers

Nix: Skipping unit tests when installing a Haskell package

I'm using Nix to install packages under my home (so no binary packages) on a shared host with limited resources. I'm trying to install git-annex. When building one of its dependencies, haskell-lens, the unit tests consume so much memory that they…
Miikka
  • 525
  • 4
  • 13
7
votes
1 answer

Configure xmobar to show workspaces

What should my xmonad.hs file look like to correctly give workspace info to xmobar?
user66261
  • 71
  • 1
  • 2
6
votes
2 answers

Pretty output in GHCI: no colours shown

Using this method to get a pretty GHCI colours, I am not getting any colours whatsoever. However, my terminal is a urxvt with 256 colours enabled and TERM is xterm-256color. Any idea what I could have missed? My ~/.ghci reads: import qualified…
6
votes
1 answer

How do I enable a three column layout in XMonad?

I'm a Haskell and XMonad beginner. I'm trying to set up my tiling layout to allow three side by side columns (so that I can have three simultaneous tall and thin Vim instances for coding, per workspace). In the docs, I've found a three-column layout…
ire_and_curses
  • 12,232
  • 3
  • 38
  • 33
6
votes
2 answers

Where are installed the files of a .deb package with dpkg / apt-get?

My OS is Ubuntu 14.04. I have done: sudo apt-get install haskell-platform-doc But I cannot find the corresponding documentation files. Where could I find them ? Or is there a command to launch so as to find where the .deb package has put them in my…
Stephane Rolland
  • 4,147
  • 6
  • 37
  • 49
5
votes
2 answers

How can I override a broken Haskell package in nix?

I use NixOS, and I'm trying to set up a Nix Haskell environment for my Haskell project. I have this Haskell package written in Nix that I'm trying to get working via nix-shell, but the dependent Haskell package Clay won't build, as described in this…
Jonathan
  • 1,210
  • 4
  • 23
  • 41
5
votes
1 answer

XMonad gaps in fullscreen

I am trying to set up XMonad so that multiple windows have gaps between them. The relevant part of my config file is as follows import XMonad.Layout.Spacing followed later by myLayout = tiled ||| Mirror tiled ||| Full where tiled = spacing 5…
Brian Fitzpatrick
  • 2,755
  • 3
  • 23
  • 43
3
votes
0 answers

Minimizing disk usage with parallel calls to GCC

I am experimenting with testing GCC in parallel. My setup will run 96 tests before giving me the test report. If I run these tests sequentially it will invoke GCC once, run the executable, gather diagnostics and then repeat. However, when I try to…
Rewbert
  • 131
  • 3
3
votes
1 answer

In NixOS, is there any way to create a package that has pandoc, pandoc-citeproc, and pandoc-crossref?

I'm very new to NixOS. I use Pandoc a lot, often with pandoc-citeproc, but I can't find a NixOS package for pandoc-citeproc. I see that there's a Haskell library for pandoc-citeproc in HaskellPackages. How can I combine a Pandoc binary which is…
Jonathan
  • 1,210
  • 4
  • 23
  • 41
3
votes
1 answer

Dragging and resizing floating windows in xmonad without the modkey

In my .xmonad/xmonad.hs file, I have the following lines, which control howto drag and resize windows. How can I change this, such that I don't need any mod key? myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $ -- mod-button1,…
student
  • 17,875
  • 31
  • 103
  • 169
3
votes
1 answer

Getting xmonad to show name of current workspace in xmobar

New to xmonad/xmobar/haskell, trying to get the name of the current workspace to show up in xmobar. So far I have this xmonad.hs: module Main where import XMonad import XMonad.Hooks.SetWMName import XMonad.Hooks.DynamicLog import…
mitchus
  • 161
  • 1
  • 9
3
votes
0 answers

How to use a package revision not yet in the published nixpkgs (but described in the development branches of nixpkgs)?

I'd like to use the new release of ghc (7.10, because of a new feature -- static ptr), and I'm using a single-user nix environment. I don't find the wanted new release in the published lists at https://nixos.org/nixos/packages.html; e.g., the latest…
imz -- Ivan Zakharyaschev
  • 15,113
  • 15
  • 61
  • 123
2
votes
1 answer

Renaming workspaces interactively using DynamicWorkspaces does not work

I have been trying to find a way to rename workspaces while working. I'm currently using up to 4 workspaces at the time and I would like to assign the workspaces new names as needed. I came across XMonad.Actions.DynamicWorkspaces, and I am able to…
user89423
  • 21
  • 1
2
votes
0 answers

Keep same width of middle column in ThreeColMid layout in xmonad

For my large screen I want to have one window in the middle of the screen and the other (slave) windows on the side of it, like in https://hackage.haskell.org/package/xmonad-contrib-0.13/docs/XMonad-Layout-ThreeColumns.html#g:1. If I have >= 3…
student
  • 17,875
  • 31
  • 103
  • 169
1
2 3