cabal

How do I install nano-hmac on Mac OS X?

"nano-hmac" is a Haskell package which can normally be installed using Cabal. However, Mac OS X has a different OpenSSL library than the one it expects, so it fails to compile bindings. I can install the version of openssl from openssl.org, but I'm not sure how to instruct Cabal to use this instead of the Mac OS X version. ...

Multiline Matching in Haskell Posix

I can't seem to find decent documentation on haskell's POSIX implementation. Specifically the module Text.Regex.Posix. Can anyone point me in the right direction of using multiline matching on a string? A snippet for the curious: > extractToken body = body =~ "<textarea[^>]*id=\"wpTextbox1\"[^>]*>(.*)</textarea>" :: String I'm tryi...

Haskell: How do I get the values of #define-d constants?

In a Haskell program, what's the best way to use constants defined in C headers? ...

How can I set up a simple test with Cabal?

I have a Haskell project and Cabal package-description that allows me to build and install my package with $ cabal configure $ cabal build $ cabal install But what about cabal test? Cabal's help says to configure a test suite with UserHooks, but how can I do that? ...

Haskell cabal+hsc2hs

Can cabal use hsc2hs to create hs files? How? I didn't find an answer in the manuals, googling, nor in other projects (had my hopes up for gtk2hs but it turns out that it doesn't use cabal) ...

Cabal won't get a new haskell package

Hi I tried to get the wxHaskell package using cabal using: cabal install wxcore --global cabal install wx But running this gave the following error: >cabal install wxcore --global Resolving dependencies... cabal: Error: some packages failed to install: wxcore-0.11.1.2 failed during the configure step. The exception was: sh: runGenPro...

How do I get Cabal to bypass my Windows proxy settings?

When retrieving packages with Cabal, I frequently get errors with this message: user error (Codec.Compression.Zlib: premature end of compressed stream) It looks like Cabal is using my Windows Networking proxy settings (for Privoxy). From digging around Google, Cabal or its libraries appear to have (had) a problem in this area. ...

Haddock for Cabal-installed modules?

I'm using GHC and have installed several packages via Cabal. One of the packages' web site says "go see the haddock documentation". The haddock command seems to only work on source files, and cabal haddock only seems to work in the top-level directory of a project with a .cabal build file. Is there a way to say "show me the haddock" for ...

Cabal not installing dependencies when needing profiling libraries?

I want to compile my program with profiling, so I run: $ cabal configure --enable-executable-profiling ... $ cabal build ... Could not find module 'Graphics.UI.GLUT': Perhaps you havent installed the profiling libraries for package 'GLUT-2.2.2.0'? ... $ # indeed I have not installed the prof libs for GLUT, so.. $ cabal install...

Multiple Haskell cabal-packages in one directory

What is the recommended way of having several cabal packages in one directory? Why: I have an old project with many separable modules. Since originally they formed just one program it was, and still is, handy to have them in same directory for easy compiling. Options Just suffer and split everything, including VCS holding the stuff, ...

Getting Cabal to work with GHC 6.12.1

I've installed the latest GHC package (6.12.1) on OS X, but I can't get Cabal to work. I've removed the version I had previously that worked with GHC 6.10 and tried to re-install from scratch. The latest Cabal version available for download is 1.6.0.2. However, when I try to build this I get the following error: Configuring Cabal-1.6...

using cabal readline package on i386 macbook (snow leopard)

Hi, I'm trying to build and install readline on a i386 MacBook with Snow Leopard. I have made the following steps: download and extract readline-6.0.tar.gz ./configure make everything sudo make install I checked the examples and they appear to work (for instance rltest has support for history). This is the output of file libreadline...

Enable --hyperlink-source for "cabal install"

The command cabal haddock has very useful --hyperlink-source option. I would like to have the source hyperlinked when building documentation with cabal install. The ticket #517 seems to be just about it: http://hackage.haskell.org/trac/hackage/ticket/517 However, perhaps it is possible to set this flag via ~/.cabal/config file? If not...

C compiler selection in cabal package

I decided to add some flags to control the way that C source file is compiled (i.e. something like use-clang, use-intel etc.). C-Sources: c_lib/tiger.c Include-Dirs: c_lib Install-Includes: tiger.h if flag(debug) GHC-Options: -debug -Wall -fno-warn-orphans CPP-Options: -DDEBUG C...

Using GHC, cabal with GMP installed in user-space

I have been trying to install Haskell Platform and cabal-install installed on Linux in user-space on a system that doesn't have the GNU Multi-Precision package (GMP) installed. I managed to get GHC-6.12.1 installed and ghci working by setting up LB_LIBRARY_PATH to point at the lib directory where I installed GMP, but then ran into probl...

How do I create a suitable .tar.gz file for use with `cabal upload`?

The standard way to share a Haskell library with other programmers is to create a Cabal package and upload it to http://hackage.haskell.org. I've written a library I wish to share, and I've successfully created a Cabal package using the guidelines online for creating cabal files. I've built the package and installed it locallyworks fi...

Cabal: Odd Error Message + Lack of Documentation

So I recently installed cabal (from the default binary of ArchLinux). I then tried to upgrade cabal as a user: cabal upgrade Cabal --user --prefix=$USER Resolving dependencies... cabal: fromFlag NoFlag. Use fromFlagOrDefault What I've already done: Googled the error message. Turned up the cabal source and little else. Looked ...

Are there tools that would be suitable for maintaining a changelog for a Cabal Haskell package?

I'm working fast and furiously on a new Haskell package for compiler writers. I'm going through many minor version numbers daily, and the Haskell packaging system, Cabal, doesn't seem to offer any tools for updating version numbers or for maintaining a change log. (Logs are going into git but that's not visible to anyone using the pack...

What are best practices for managing related Cabal packages?

I'm working on a dataflow-based optimization library written in Haskell. It now seems likely that the library is going to have to be split into two pieces: A core piece with minimal build dependencies; call it hoopl-core. A full piece, call it hoopl, which may have extra dependencies on packages like a prettyprinter, QuickCheck, and s...

can not get scion_server to be created using runghc

I downloaded the scion cabal and am attempting to created scion_server I ran all of the runghc Setup (configure/build/install) The Haskell libraries are installed, but the scion_server is not in the ~/.cabal/bin I have to use a --user on configure so I can install it on just my account. Any thoughts? ...