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]
Versions [faq] 0.1.0.0, 0.2, 0.3, 0.4
Change log ChangeLog.md
Dependencies aeson (>=1.2 && <1.5), base (>=4.10 && <4.13), blaze-html (==0.9.*), bytestring (==0.10.*), cassava (==0.5.*), Chart (>=1.8 && <1.10), Chart-diagrams (>=1.8 && <1.10), data-default (>=0.5 && <0.8), directory (==1.3.*), extra (>=1.5 && <1.7), filepath (>=1.4.1 && <1.5), fmt (>=0.5 && <0.7), hedgehog (>=0.5 && <0.7), hint (>=0.7 && <0.10), http-client (>=0.4 && <0.6), ipgen-lib, iplookup-lib, mtl (>=2.0 && <2.3), optparse-applicative (==0.14.*), random (>=1.0 && <1.2), req (>=1.0 && <1.3), safe (==0.3.*), safe-exceptions (>=0.1.5 && <0.2), system-locale (>=0.2 && <0.4), text (==1.2.*), time (>=1.8 && <1.10), transformers (==0.5.*), unix-compat (==0.5.*) [details]
License BSD-3-Clause
Author Vitaly Bragilevsky
Maintainer Vitaly Bragilevsky <vit.bragilevsky@gmail.com>
Category Sample Code
Home page https://github.com/bravit/hid-examples#readme
Bug tracker https://github.com/bravit/hid-examples/issues
Source repo head: git clone https://github.com/bravit/hid-examples
Uploaded by bravit at Sun Jan 20 10:46:38 UTC 2019
Distributions NixOS:0.4
Executables weapons, vocab3, vocab2, vocab1, suntimes, stref, stockquotes, shunting-yard, showexpr, rpnexpr, reader, maybe, locator, iplookup, ipgen, ioref, genSQL, gcd, filecount, du, dicegame
Downloads 624 total (72 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2019-01-20 [all 3 reports]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for hid-examples-0.4

[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

Testing

stack test

Exploring in GHCi

stack ghci <module file>

For example:

stack ghci stockquotes/Statistics.hs

Using Cabal sandbox

Building

cabal sandbox init
cabal install --only-dependencies --enable-tests
cabal configure --enable-tests
cabal build

Running

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

For example:

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

Testing

cabal test
cabal test iplookup-test

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

Testing

cabal new-test