You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HyperHaskell is currently in a pre-release state, you have to run it from source.
18
+
[haskell]: https://haskell.org
19
+
[ghc]: https://www.haskell.org/ghc/
20
+
[electron]: http://electron.atom.io/
21
+
[stack]: https://www.haskellstack.org
22
+
[release]: ../../releases
24
23
25
24
## Overview
26
25
26
+
*HyperHaskell* is intended to be easy to install. The easiest way to install it is to download the binary distribution. This is explained in the next subsection. However, there is a pitfall which you have to know about, and which requires knowledge of the installation structure.
27
+
27
28
A HyperHaskell installation consists of two parts:
28
29
29
30
1. The graphical front-end.
@@ -35,21 +36,55 @@ A HyperHaskell installation consists of two parts:
35
36
Consists of an executable `hyper-haskell-server`,
36
37
written in Haskell using the [GHC API][ghc],
37
38
and a library (module) `Hyper` for visualizing and pretty printing Haskell values.
38
-
39
+
39
40
Both parts depend on several different Haskell packages.
40
41
Unfortunately, the versions of the packages used to compile the executable
41
42
and to compile the library have to be exactly the same.
42
-
43
+
43
44
This is why, at the moment,
44
45
the front-end does *not* come with the back-end executable included.
45
46
Instead, the user is asked to install the `hyper-haskell-server` back-end
46
47
into his or her own database of Haskell packages,
47
48
and then tell the front-end about it.
48
49
This way, the user is free to use different package or compiler versions.
49
50
51
+
## Installation of the binary distribution
52
+
53
+
Installation from the binary distribution follows the structure explained above.
54
+
55
+
1.[Download the graphical front-end from the latest release][release] und unpack it.
56
+
57
+

58
+
59
+
*NOTE*: At the moment, I can only provide OS X binaries, because I don't have access to other architectures. Help is appreciated!
60
+
61
+
2. Install the back-end server
62
+
63
+
1. Make sure that you have a working installation of the [GHC][] Haskell compiler.
64
+
65
+
2. Install the back-end with Cabal by executing
66
+
67
+
cabal install hyper hyper-haskell-server
68
+
69
+
It is also recommended (but not necessary) that you install the additional
70
+
support for other popular Haskell packages, e.g. the [Diagrams][] library by
71
+
additionally executing
72
+
73
+
cabal install hyper-extra
74
+
75
+
3. Now you can start the front-end application and create a new worksheet, or open an existing one. Make sure that the "Interpreter Back-end" in the "Settings" section of the worksheet is set to "cabal". (The path field does not matter in this case.)
4. Go into the root directory of this repository and type `make run`.
@@ -82,8 +117,8 @@ To run HyperHaskell from source, follow these steps:
82
117
5. Use the *File* menu to open one of the example worksheets from the [worksheets](worksheets/) folder. Voilà!
83
118
84
119
You can also create a new worksheet, but note that you have to set the back-end path in the "Settings" section. The path is relative to the directory where the worksheet was saved. For instance, if you run a worksheet from the [worksheets](worksheets/) directory, the path `../haskell/stack.yaml` will point to the right `hyper-haskell-server` executable. Screenshot:
Note that for this setting, the `stack` utility has to be in your path. You can also set an explicit path for this utility in the "Preferences…" menu item.
Copy file name to clipboardExpand all lines: docs/misc.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,12 @@ How to create an .icns file on OS X?
77
77
78
78
Application icons on OS X are stored in `.icns` files. There is a command line utility called `iconutil` that is supposed to be able to create such files, but unfortunately, it only creates garbled icons for me. No idea why. Online converters seem to work fine.
0 commit comments