1
1
mirror of https://github.com/sdiehl/wiwinwlh.git synced 2024-11-20 12:27:16 +03:00
What I Wish I Knew When Learning Haskell
Go to file
2020-02-26 17:36:22 +00:00
css Write more 2020-01-05 22:10:28 +00:00
img Write more 2020-02-06 12:18:58 +00:00
js Navigation and scroll fixes (#143) 2016-11-07 06:00:16 -05:00
resources Remove eff, unstable 2020-02-24 14:22:18 +00:00
src Add cereal and aeson 2020-02-26 17:12:00 +00:00
.gitignore Misc fixes 2020-02-20 21:50:11 +00:00
.travis.yml Fix dependencies for blas 2020-02-26 17:36:22 +00:00
deploy.sh CI for Chapter 7 2020-02-18 19:01:10 +00:00
errata.md Misc fixes 2020-02-20 21:50:11 +00:00
extensions.csv Write more 2020-02-05 19:33:11 +00:00
extensions.html Typo 2016-04-25 21:25:59 +02:00
includes.hs Write more 2020-02-08 15:11:18 +00:00
LICENSE Write more 2020-02-12 09:30:49 +00:00
Makefile Misc fixes 2020-02-20 21:50:11 +00:00
README.md Fix page overflow 2020-02-20 16:07:18 +00:00
shell.nix Fixing missing unicode characters in rendered PDF (#177) 2020-01-17 16:01:01 +00:00
stack.yaml Write more 2020-02-08 15:11:18 +00:00
stack.yaml.lock Write more 2020-02-08 12:36:23 +00:00
tutorial.md Fix typos 2020-02-25 10:13:58 +00:00
wiwinwlh.cabal Write more 2020-02-08 15:11:18 +00:00

MIT License Build Status

Read Online:

If you'd like a physical copy of the text you can either print it out for yourself (see Printable PDF) or purchase one from a publisher. The price is at-cost since the text is open source and free.

The current published version is:

Date: February 16, 2020
Git: d429c2e21b9636cffa27a8d4f063644b8bcecf1a

Contributing

If you want to submit a fix for a typo or fix edit the following Markdown file which generates all other targets.

tutorial.md

Then submit a Pull Request on Github describing your change.

Source code is directly included from the src directory into the resulting document by the preprocessor. To include a new sample edit the example source code directly. When adding a new Haskell file, add it to the ci script inside of the folder so it is run in the continuous integration script.

Source Code

Chapter Code Examples:

Compiling

If you'd like to build the documents locally you'll need to compile the preprocessor run either use Nix, Stack or Cabal to compile the preprocessor executable in the cabal file.

$ stack exec make # Stack
$ cabal exec make # Cabal

For Nix:

$ make run-shell
$ ghc --make includes.hs
$ make

After this is built you can build anyone of the available target outputs.

LaTeX

You will need the whole XeTeX suite to compile.

$ apt-get install texlive texlive-xetex texlive-extra texlive-extra-utils
$ make pdf
$ make print

HTML

$ make html

Microsoft Word

$ make docx

Ebook

$ make epub

Continuous Integration

The book and example code is kept stable under continuous integration. The script src/ci will run through all example code and compile it against the example.cabal file of the given chapter. All bounds for dependencies are specified in the cabal file and ensure that the given code examples are up to date.

The CI is run in Github under TravisCI on every pull request.

To run the integration suite manually run:

$ cd src && ./ci

License

Copyright © 2009-2020 Stephen Diehl

This code included in the text is dedicated to the public domain. You can copy, modify, distribute and perform the code, even for commercial purposes, all without asking permission.

You may distribute this text in its full form freely, but may not reauthor or sublicense this work. Any reproductions of major portions of the text must include attribution.

The software is provided "as is", without warranty of any kind, express or implied, including But not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, Arising from, out of or in connection with the software or the use or other dealings in the software.