hid-examples: Examples to accompany the book "Haskell in Depth"

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

This package provides source code examples which accompany the book "Haskell in Depth" by Vitaly Bragilevsky (Manning Publications 2019). You may want to get this package via cabal get hid-examples and explore its content.


[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.1.0.0, 0.2, 0.3
Change logChangeLog.md
Dependenciesbase (==4.10.*), blaze-html (==0.9.*), bytestring (==0.10.*), cassava (==0.5.*), Chart (==1.8.*), Chart-diagrams (==1.8.*), fmt (>=0.5 && <0.7), hint (>=0.7 && <0.9), optparse-applicative (==0.14.*), safe (==0.3.*), text (==1.2.*), time (==1.8.*) [details]
LicenseBSD-3-Clause
Copyright(c) Vitaly Bragilevsky 2018
AuthorVitaly Bragilevsky
MaintainerVitaly Bragilevsky <vit.bragilevsky@gmail.com>
CategorySample Code
Home pagehttps://github.com/bravit/hid-examples/
Bug trackerhttps://github.com/bravit/hid-examples/issues
Source repositoryhead: git clone https://github.com/bravit/hid-examples.git
Executablesstockquotes, showexpr, vocab3, vocab2, vocab1, locator
UploadedSat May 26 13:15:24 UTC 2018 by bravit

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for hid-examples-0.1.0.0

[back to package description]

This is the sample code to accompany the book Haskell in Depth (Vitaly Bragilevsky, Manning Publications 2019).

To get the source code on your system, you may want to run:

cabal get hid-examples

Alternatively, you may clone GitHub repository with the most current version.

To work with the code on your system, you need either:

Using Stack

Building

stack build

Running

stack exec <executable> [ -- <arguments>]

For example:

stack exec stockquotes -- data/quotes.csv -p -v

Exploring in GHCi

stack ghci <module file>

For example:

stack ghci stockquotes/Statistics.hs

Using Cabal sandbox

Building

cabal sandox init
cabal install --only-dependencies
cabal configure
cabal build

Running

cabal run <executable> [ -- <arguments>]

For example:

cabal run stockquotes -- data/quotes.csv -p -v

Exploring in GHCi

cabal repl <executable>

For example:

cabal repl stockquotes

To work with particular module, you have to load it in GHCi with :load.

Using Cabal new-*

Building

cabal new-build