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

[ bsd3, library, program, sample-code ] [ Propose Tags ]

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]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.2, 0.3, 0.4, 0.5
Change log ChangeLog.md
Dependencies base (>=4.10 && <4.12), blaze-html (>=0.9 && <0.10), bytestring (>=0.10 && <0.11), cassava (>=0.5 && <0.6), Chart (>=1.8 && <1.10), Chart-diagrams (>=1.8 && <1.10), fmt (>=0.5 && <0.7), hint (>=0.7 && <0.9), optparse-applicative (>=0.14 && <0.15), safe (>=0.3 && <0.4), text (>=1.2 && <1.3), time (>=1.8 && <1.9) [details]
License BSD-3-Clause
Copyright (c) Vitaly Bragilevsky 2018
Author Vitaly Bragilevsky
Maintainer Vitaly Bragilevsky <vit.bragilevsky@gmail.com>
Revised Revision 1 made by bravit at 2018-06-12T13:04:12Z
Category Sample Code
Home page https://github.com/bravit/hid-examples/
Bug tracker https://github.com/bravit/hid-examples/issues
Source repo head: git clone https://github.com/bravit/hid-examples.git
Uploaded by bravit at 2018-05-26T13:20:06Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables stockquotes, showexpr, vocab3, vocab2, vocab1, locator
Downloads 2708 total (14 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2018-05-26 [all 2 reports]

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