Questions tagged [haskell]
Haskell is a functional programming language.
33
questions
0
votes
1
answer
428
views
Toggle fullscreen in Xmonad?
I'm new around Xmonad WM and haskell is completely new to me, so be patient.
Running the almost stock ArcoLinux Xmonad.
I'm trying to setup Xmonad WM to be able to go full screen at anytime and in all ...
0
votes
1
answer
270
views
Error compiling xmonad.hs
I was trying to make different workspace have different layout, I found this module - https://hackage.haskell.org/package/xmonad-contrib-0.15/docs/XMonad-Layout-PerWorkspace.html
I imported XMonad....
1
vote
1
answer
663
views
How to debug XMonad.Layout.NoBorders.smartBorders not working?
Since resetting my xorg.conf to use a second monitor, XMonad.Layout.NoBorders.smartBorders no longer works: Even if there is only one window open on either monitor, and no docks, the main window still ...
1
vote
0
answers
153
views
Error when updating "cabal-install" from cabal cli
I was following this tutorial on how to install cabal on linux.
So far, I successfully installed cabal-install from apt:
sudo apt install cabal-install
However, at the step where they upgrade cabal ...
0
votes
1
answer
1k
views
How do I source in "/Users/<usr>/.ghcup/env" to $PATH in .zshrc after installing Haskell?
I cannot seem to get the $PATH variable sourced in via /Users/chris/.ghcup/env so that I can directly use the ghc or ghci binary in zsh.
I installed ghc & cabal-install via ghcup: curl https://...
1
vote
0
answers
26
views
Why the package haskell-platform does not follow the proper version number?
The package haskell-platform is a metapackage providing tools for developing in Haskell.
It is self-distributed with a versioning system using a version number, the release year and month. It is as ...
4
votes
2
answers
1k
views
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 ...
1
vote
1
answer
519
views
Getting current workspace name as a string in xmonad
I want to get the currently active tag in xmonad as a string. I've imported the stackset with
import qualified XMonad.StackSet as W
I can get get the tag of the currently focused workspace with W....
1
vote
1
answer
185
views
"Right" way to deal with adding packages to path
I downloaded and installed the Haskell Platform. And It got installed (default) to /usr/local/haskell/
I want to add the binarys inside /usr/local/haskell/bin/ to my path. But I dont want (if ...
3
votes
1
answer
274
views
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....
0
votes
1
answer
1k
views
Rendering window border on a specific side in XMonad
XMobar allows configuring border position, as well as width:
{ border = BottomB
, borderColor = "#4F5B66"
, borderWidth = 1 }
I'm hoping to do the same in XMonad, but it seems borders are only ...
0
votes
2
answers
772
views
How to remove the bottom edges and sides of the Xmonad windows, left the upper one?
I'm new to Xmonad and I want to customize the layout of the windows, I did not find anything to take as an example of how to edit the windows, so far I can change the color and width of the border.
...
2
votes
1
answer
823
views
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 ...
2
votes
0
answers
367
views
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-...
2
votes
1
answer
1k
views
How to recursively downgrade a package and its dependencies in Arch
I need to downgrade xmonad because after the latest upgrade it crashes when I run a specific program (fldigi specifically). Contrary to question How do you downgrade multiple packages in arch linux?, ...
0
votes
1
answer
625
views
GHC Haskell Compiler for AARCH64
I recently bought a Odroid C2 (AARCH64), but I need o execute Haskell programs on it.
There is no GHC (Haskell-Compiler) binary for this architecture on the web.
But I also failed to cross compile ...
2
votes
1
answer
273
views
cabal update causes segmentation fault on FreeBSD 10.2
I have installed FreeBSD 10.2-RELEASE 32-bit and I am trying to use Haskell on it.
I have installed package ghc-7.10.2 with pkg and then installed package hs-cabal-install-1.22.6.0 from /usr/ports/...
1
vote
0
answers
138
views
Change colors of statusline in haskell-vim-now
I am using haskell-vim-now, which has many features I like when editing Haskell. However, it also sets a colorscheme I do not like. In my ~/.vimrc.local I already resetted to the default colorscheme. ...
3
votes
2
answers
11k
views
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 ...
3
votes
1
answer
6k
views
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
...
3
votes
0
answers
253
views
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:...
5
votes
1
answer
5k
views
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 ||| ...
9
votes
3
answers
4k
views
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, ...
1
vote
1
answer
860
views
Alternatives to xsounds.org for haskell-core on arch linux
Every time I attempt to update my arch system using sudo pacman -Syu it fails because it failed to retrieve some files. The culprit is my ISP. It doesn't give me a reliable connection to the mirror of ...
1
vote
1
answer
1k
views
Haskell, C++, AWK, Bash, Lisp ... Which one is faster? [closed]
I was wondering, which of these programming languages are faster at handling big data files of only strings:
Haskell, C++(Boost), AWK, Bash, Lisp...
So far I have found the paper Haskell vs. Ada ...
0
votes
0
answers
1k
views
How to install pandoc
I tried to install pandoc on manjaro and therefore I installed ghc and caball-install, but I got an error by executing "cabal update"
$ cabal update
Downloading the latest package list from hackage....
7
votes
1
answer
8k
views
Configure xmobar to show workspaces
What should my xmonad.hs file look like to correctly give workspace info to xmobar?
9
votes
1
answer
428
views
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 ...
6
votes
2
answers
4k
views
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 ...
6
votes
1
answer
2k
views
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 ...
-1
votes
2
answers
690
views
Download and Install 32-bit Haskell GHC on CentOS
I need to install Haskell GHC 32 bit from the command line and I can't find this anywhere.
I need to install it because I need libgmp.so.3 for the 32-bit and i have read somewhere that I can find it ...
3
votes
1
answer
5k
views
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....
2
votes
1
answer
758
views
What ghc package does cabal-install need?
I've just installed cabal to try and get http://dmwit.com/yeganesh/, but on running cabal-install it throws the error:
cabal: ghc version >=6.4 is required but it could not be found.
Apt-cache ...