Questions tagged [ihaskell]

IHaskell is an implementation of the IPython kernel protocol which allows you to use Haskell inside IPython frontends such as qtconsole and notebook.

IHaskell is an implementation of the IPython kernel protocol which allows you to use Haskell inside IPython frontends such as qtconsole and notebook.

Links:

28 questions
55
votes
13 answers

How do I set custom CSS for my IPython/IHaskell/Jupyter Notebook?

I would like to apply a few simple changes to the appearance of my IPython/IHaskell/Jupyter Notebooks, such as: rendered_html :link { text-decoration: none; } However, I can't figure out how to do this. I've tried many of the…
orome
  • 45,163
  • 57
  • 202
  • 418
14
votes
2 answers

Haskell under Jupyter

The Internet is strangely absent of instructions on how to get Haskell running under the Jupyter environment. Any documentation that leads you toward this requires you to compile from source, however when attempting to do so, all sorts of build…
Daisha Lynn
  • 459
  • 1
  • 4
  • 16
8
votes
1 answer

Is there a ghci colon-command to hide a package?

At present I'm using ihaskell to learn about some libraries. IHaskell is still hazardous, and I can not do: -- This doesn't work: ":ext PackageImports", the kernel hangs -- This doesn't work: "{-# LANGUAGE PackageImports #-}", the kernel…
dsign
  • 12,340
  • 6
  • 59
  • 82
6
votes
4 answers

Installing IHaskell kernel for jupyter notebooks -lgmp cannot be found by Linker

I'm trying to install IHaskell in jupyter, directly from instructions here. I ran the following. sudo apt-get install -y python3-pip git libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev libmagic-dev libblas-dev liblapack-dev git clone…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
4
votes
1 answer

Is there a way to run IHaskell using a particular sandbox directory?

Exactly that - can I run IHaskell and have it load packages from a particular sandbox directory?
daj
  • 6,962
  • 9
  • 45
  • 79
2
votes
2 answers

Pretty printing a list vertically in haskell in an interactive session

In a ghci session (that happens to be in a jupyter kernel), I'd like to pretty print a list in haskell vertically. (In my use-case, I'm viewing a CSV, so this list represents a column of data, and I'd like the display to reflect that.) Prelude>…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
2
votes
1 answer

IHaskell and Latex

Is it possible, when using IHaskell, to have all the output automatically processed by Latex, or understood as Markdown ? Perhaps this will involve (at least if I want it to work with data of type MyType) using import IHaskell.Display and instance…
Pierre
  • 233
  • 1
  • 7
2
votes
0 answers

How do I use a stack built haskell package in an IHaskell Notebook?

I can successfully open and use the IHaskell demo notebook. I also have some haskell code that I wrote and which builds with stack and for which stack ghci gives me an interactive venue for using my functions and data types. How do I combine these…
brittAnderson
  • 1,428
  • 11
  • 25
2
votes
1 answer

How to install custom libraries, and use them?

I have been trying to install some libraries, csv and hs-gchart. I know that IHaskell has alternatives for charting but I just wanted to try to install something. I'm using Gibianski's docker image. I already tried to do a cabal install in the…
Nick Tchayka
  • 563
  • 3
  • 14
2
votes
1 answer

How do I show bindings in in an IHaskell Notebook?

In GHCi I can show current bindings by executing :show bindings but when I try this in an IHaskell Notebook I get Parse error (line 1, column 1): Unknown directive: 'show'. Is there a way to get a list of (and perhaps even remove specific)…
orome
  • 45,163
  • 57
  • 202
  • 418
2
votes
1 answer

Why can I change the type of a variable in separate IHaskell Notebook cells?

If I define data Thing = Shoe | Ship | SealingWax | Cabbage | King and then in a later cell in an IHaskell Notebook enter thing :: Thing thing = 4 I get an error ("No instance for (Num Thing) arising…
orome
  • 45,163
  • 57
  • 202
  • 418
2
votes
1 answer

Can IHaskell and IPython coexist?

I have IPython and IPython Notbook installed and am working my way through the IHaskell installation instructions. I have all the IHaskell prerequisites installed, but before I commit to the final step of installing IHaskell itself with cabal…
orome
  • 45,163
  • 57
  • 202
  • 418
2
votes
1 answer

Stack/Docker/IHaskell weird behaviour

I have a package with bunch of *.c and *.cpp files, listed inside c-sources field of *.cabal file. I need to include it inside a project with IHaskell and some other packages. Everything works fine, and builds without a problem. stack exec ghci…
swish
  • 367
  • 4
  • 18
1
vote
1 answer

IHaskell installation via stack problem, Process exited with code: ExitFailure 1

I have a problem with installation of IHaskell for Jupyter notebook, my instruction for this proces for MacOS was https://github.com/gibiansky/IHaskell specially brew install python3 zeromq libmagic cairo pkg-config haskell-stack pango git clone…
1
vote
0 answers

IHaskell for new-style cabal project?

When using IHaskell via JupyterLab, there seems to be only partial support for new-style cabal projects. When creating a workbook in a cabal project's directory, IHaskell picks up the .ghc.environment file. So the kernel sees exactly the same…
Maxim
  • 173
  • 5
1
2