Update haskell, minor tweaks.
This commit is contained in:
parent
37524f1f06
commit
676733ed6c
|
|
@ -17,7 +17,7 @@ This image ships a minimal Haskell toolchain with the following packages from th
|
||||||
- `cabal-install`
|
- `cabal-install`
|
||||||
- `happy`
|
- `happy`
|
||||||
|
|
||||||
As of `7.10.3`, the `stack` tool is included via FPComplete's Debian repository.
|
As of `7.10.3`, the `stack` tool is included.
|
||||||
|
|
||||||
Note: The GHC developers do not support legacy release branches (i.e. `7.8.x`). While older GHC release tags are available in this DockerHub repository, only the latest stable release (or upcoming release candidates) will be shown in the "Supported tags ..." section at the top of this page.
|
Note: The GHC developers do not support legacy release branches (i.e. `7.8.x`). While older GHC release tags are available in this DockerHub repository, only the latest stable release (or upcoming release candidates) will be shown in the "Supported tags ..." section at the top of this page.
|
||||||
|
|
||||||
|
|
@ -26,15 +26,15 @@ Note: The GHC developers do not support legacy release branches (i.e. `7.8.x`).
|
||||||
Start an interactive interpreter session with `ghci`:
|
Start an interactive interpreter session with `ghci`:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run -it --rm haskell:7.10.3
|
$ docker run -it --rm haskell:8
|
||||||
GHCi, version 7.10.3: http://www.haskell.org/ghc/ :? for help
|
GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help
|
||||||
Prelude>
|
Prelude>
|
||||||
```
|
```
|
||||||
|
|
||||||
Dockerize an application from Hackage with a `Dockerfile`:
|
Dockerize an application from Hackage with a `Dockerfile`:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM haskell:7
|
FROM haskell:8
|
||||||
RUN stack install pandoc pandoc-citeproc
|
RUN stack install pandoc pandoc-citeproc
|
||||||
ENTRYPOINT ["pandoc"]
|
ENTRYPOINT ["pandoc"]
|
||||||
```
|
```
|
||||||
|
|
@ -42,7 +42,7 @@ ENTRYPOINT ["pandoc"]
|
||||||
Alternatively, using `cabal`:
|
Alternatively, using `cabal`:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM haskell:7
|
FROM haskell:8
|
||||||
RUN cabal update && cabal install pandoc pandoc-citeproc
|
RUN cabal update && cabal install pandoc pandoc-citeproc
|
||||||
ENTRYPOINT ["pandoc"]
|
ENTRYPOINT ["pandoc"]
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue