Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jig/docker-haskell-parconc
Examples of the "Parallel and Concurrent Programming in Haskell" book
https://github.com/jig/docker-haskell-parconc
Last synced: 6 days ago
JSON representation
Examples of the "Parallel and Concurrent Programming in Haskell" book
- Host: GitHub
- URL: https://github.com/jig/docker-haskell-parconc
- Owner: jig
- Created: 2015-07-07T09:05:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-07T13:07:03.000Z (over 9 years ago)
- Last Synced: 2024-04-14T15:51:26.223Z (7 months ago)
- Size: 121 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-haskell-parconc
Examples of the ["Parallel and Concurrent Programming in Haskell" book](http://chimera.labs.oreilly.com/books/1230000000929).
To just download the image:
```
$ docker pull jordi/parconc
```to run GHCi:
```
$ docker run -ti --rm jordi/parconc
```For instance, should you test chapter 7's sample `mvar2.hs` in GHCi ("Basic Concurrency: Threads and MVars"):
```
$ docker run -ti --rm jordi/parconc
GHCi, version 7.8.4: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> :l mvar2.hs
[1 of 1] Compiling Main ( mvar2.hs, interpreted )
Ok, modules loaded: Main.
*Main> main
'x'
'y'
*Main>
```If you want either read or edit a book sample file, you can either use `less` or `emacs`. Select `--rm` as appropiate:
```
$ docker run -ti --rm jordi/parconc less GetURL.hs
...
$ docker run -ti jordi/parconc emacs GetURL.hs
...
```otherwise:
```
$ docker run -ti jordi/parconc bash
```