GithubHelp home page GithubHelp logo

bravit / hid-examples Goto Github PK

View Code? Open in Web Editor NEW
248.0 248.0 88.0 3.04 MB

Examples to accompany the book "Haskell in Depth"

License: BSD 3-Clause "New" or "Revised" License

Haskell 99.92% Shell 0.08%
book code haskell sample

hid-examples's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hid-examples's Issues

Build Failure

When I do cabal build, I get:

[tedkord@fedora hid-examples]$ cabal build
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: hid-examples-0.5 (user goal)
[__1] rejecting: hid-examples:!test (constraint from config file, command line
flag, or user target requires opposite flag selection)
[__1] trying: hid-examples:*test
[__2] trying: doctest-0.18.1 (dependency of hid-examples *test)
[__3] trying: ghc-8.8.4/installed-8.8... (dependency of doctest)
[__4] trying: req-3.9.1 (dependency of hid-examples)
[__5] trying: transformers-base-0.4.6 (dependency of req)
[__6] trying: transformers-compat-0.7 (dependency of transformers-base)
[__7] trying: http-client-tls-0.3.5.3 (dependency of req)
[__8] trying: network-uri-2.6.4.1 (dependency of http-client-tls)
[__9] trying: parsec-3.1.14.0/installed-3.1... (dependency of network-uri)
[_10] trying: Chart-diagrams-1.9.3 (dependency of hid-examples)
[_11] trying: diagrams-postscript-1.5 (dependency of Chart-diagrams)
[_12] next goal: statestack (dependency of diagrams-postscript)
[_12] rejecting: statestack-0.3, statestack-0.2.0.5 (conflict:
transformers-compat==0.7, statestack => transformers-compat>=0.4 && <0.7)
[_12] rejecting: statestack-0.2.0.4, statestack-0.2.0.3 (conflict: ghc =>
transformers==0.5.6.2/installed-0.5..., statestack => transformers>=0.3 &&
<0.5)
[_12] rejecting: statestack-0.2 (conflict: parsec =>
mtl==2.2.2/installed-2.2..., statestack => mtl>=2.1 && <2.2)
[_12] rejecting: statestack-0.1.1, statestack-0.1 (conflict:
diagrams-postscript => statestack>=0.2 && <0.4)
[_12] fail (backjumping, conflict set: diagrams-postscript, ghc, parsec,
statestack, transformers-compat)
Backjump limit reached (currently 4000, change with --max-backjumps or try to
run with --reorder-goals).

With stack build, these lines and others similar make the build fail:

Only > : error:
Only > Warning: Couldn't figure out linker information!
Only > Make sure you're using GNU ld, GNU gold or the built in OS X linker, etc.
Only > collect2: fatal error: cannot find ‘ld’
Only > compilation terminated.
Only > gcc' failed in phase Linker'. (Exit code: 1)

My stack version is:
Version 2.7.3, Git revision 7927a3aec32e2b2e5e4fb5be76d0d50eddcc197f x86_64 hpack-0.34.4

and my cabal version is:
cabal-install version 3.0.0.0 compiled using version 3.0.1.0 of the Cabal library

Getting error trying to stack build

Running stack build I'm getting an error:

Downloaded lts-10.10 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""

does not build

diagrams-lib > [36 of 73] Compiling Diagrams.Trail
diagrams-lib >
diagrams-lib > /tmp/stack-01e77da6031f7a18/diagrams-lib-1.4.4/src/Diagrams/Trail.hs:314:32: error:
diagrams-lib > • Couldn't match type ‘Option a0’ with ‘Maybe m’
diagrams-lib > Expected type: t -> Maybe m
diagrams-lib > Actual type: t -> Option a0
diagrams-lib > • In the second argument of ‘(.)’, namely ‘get . FT.measure’
diagrams-lib > In the expression: maybe d f . get . FT.measure
diagrams-lib > In an equation for ‘trailMeasure’:
diagrams-lib > trailMeasure d f = maybe d f . get . FT.measure
diagrams-lib > • Relevant bindings include
diagrams-lib > f :: m -> a (bound at src/Diagrams/Trail.hs:314:16)
diagrams-lib > trailMeasure :: a -> (m -> a) -> t -> a
diagrams-lib > (bound at src/Diagrams/Trail.hs:314:1)
diagrams-lib > |
diagrams-lib > 314 | trailMeasure d f = maybe d f . get . FT.measure

Build/ghci issues with version 0.4

Hi, I'm having some problems with the latest version of the source code:

stack build succeeds but it warns that "This package indirectly depends on multiple versions of the same package" (see attached build.txt).

Executables seem to run fine with stack exec.

stack ghci [any file] fails with the message cannot satisfy -package z-hid-examples-z-ipgen-lib (see attached ghci.txt).

I am using homebrew stack version 1.9.3 x86_64. Thanks for any advice.

build.txt
ghci.txt

Various problems in Readme.

Readme file gives an example of running a program:

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

But if you do that you'll get:

stack exec stockquotes -- data/quotes.csv -p -v
Invalid option `-p'

Usage: stockquotes FILE [-n|--name ARG] [-c|--chart] [--html FILE] [-s|--silent]
  Stock quotes data processing

Maybe it should be?

$ stack exec stockquotes -- data/quotes.csv -c
+-------------+-------------+----------+----------+----------------------+
| Quote Field | Mean        | Min      | Max      | Days between Min/Max |
+-------------+-------------+----------+----------+----------------------+
| Open        | 202.04      | 175.44   | 224.80   | 100                  |
| Close       | 202.16      | 173.30   | 223.59   | 100                  |
| High        | 204.10      | 177.92   | 226.42   | 101                  |
| Low         | 200.32      | 170.27   | 222.86   | 101                  |
| Volume      | 27869192.38 | 11362000 | 69281400 | 28                   |
+-------------+-------------+----------+----------+----------------------+
stack exec stockquotes -- data/quotes.csv -c
$ file chart.svg
chart.svg: SVG Scalable Vector Graphics image

Same issue applies to the cabal example


Another problem:

$ cabal repl hello
...
$ cabal repl stockquotes
ghci> :load Statistics

Running it gives:

cabal repl stockquotes
Build profile: -w ghc-8.10.1 -O1
In order, the following will be built (use -v for more details):
 - hid-examples-0.5 (exe:stockquotes) (ephemeral targets)
Preprocessing executable 'stockquotes' for hid-examples-0.5..
GHCi, version 8.10.1: https://www.haskell.org/ghc/  :? for help
[1 of 7] Compiling Params           ( stockquotes/Params.hs, interpreted )
[2 of 7] Compiling Paths_hid_examples ( /Users/qnikst/workspace/hid-examples/dist-newstyle/build/x86_64-osx/ghc-8.10.1/hid-examples-0.5/x/stockquotes/build/stockquotes/autogen/Paths_hid_examples.hs, interpreted )
[3 of 7] Compiling QuoteData        ( stockquotes/QuoteData.hs, interpreted )
[4 of 7] Compiling Charts           ( stockquotes/Charts.hs, interpreted )
[5 of 7] Compiling StatReport       ( stockquotes/StatReport.hs, interpreted )
[6 of 7] Compiling HtmlReport       ( stockquotes/HtmlReport.hs, interpreted )
[7 of 7] Compiling Main             ( stockquotes/Main.hs, interpreted )
Ok, 7 modules loaded.
*Charts> :l StatReport
*Charts> :load Statistics

<no location info>: error:
    module ‘Statistics’ cannot be found locally
Failed, no modules loaded.
Prelude>

I expect that it should StatReport there?


cabal test locator-test
cabal: Cannot run the package locator-test, it is not in this project (either
directly or indirectly). If you want to add it to the project then edit the
cabal.project file.

cabal -V
cabal-install version 3.0.0.0
compiled using version 3.0.0.0 of the Cabal library

`stack build` command failed with the message can't load framework: Cocoa (not found)

stack build command failed with the following message:

diagrams-lib > : can't load framework: Cocoa (not found)

I believe this has to do with the new macos version big sur.

I've read something about it here. https://gitlab.haskell.org/ghc/ghc/-/issues/18592

I've tried locally to update the resolver (stack.yml) from lts-14.27 to newer ones (i.e: resolver: lts-16.31) but I started to stumble upon some issues with dependencies' versions.
I really like the book but I would like to run the examples on my machine. I am really interested in learning to develop production with haskell and this book looks like a good fit for my adventure.

Is there something I can do on my side?

Thanks

Info:

❯ stack exec -- which ghc
/Users/xxx/.stack/programs/x86_64-osx/ghc-8.6.5/bin/ghc
System Version: macOS 11.2.1 (20D74)
Kernel Version: Darwin 20.3.0

Error when running "stack build"

After cloning and cd-ing in the created directory, here the output I get when running "stack build"

HttpExceptionRequest Request {      
  host                 = "s3.amazonaws.com"
  port                 = 443
  secure               = True
  requestHeaders       = [("User-Agent","Haskell pantry package")]
  path                 = "/hackage.fpcomplete.com/package/streaming-utils-0.2.0.0.tar.gz"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 ConnectionTimeout

NixOS experience is discouraging

Hey I'm just starting the book and getting my dev environment setup. I use NixOS even though I don't understand it very well and I probably have no business making demands about accommodating it. I just wanted to let you know that my experience so far has been discouraging:

$ stack build
error: attribute 'ghc8104' missing, at (string):1:43

Ok so I either need to figure out the nix-fu to get that older resolver installed, or I need to update stack.yml to use my system GHC. I went for the later.

# stack.yaml

resolver:
  compiler: ghc-8.10.7

nix:
  enable: true

...

Ok, try again:

$ stack build

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for Chart-diagrams-1.9.3:
    Chart must match >=1.9 && <1.10, but the stack configuration has no specified version  (latest matching version is 1.9.3)
    blaze-markup must match >=0.7 && <0.9, but the stack configuration has no specified version  (latest matching version is 0.8.2.8)
    colour must match >=2.2.1 && <2.4, but the stack configuration has no specified version  (latest matching version is 2.3.6)
    data-default-class must match <0.2, but the stack configuration has no specified version  (latest matching version is 0.1.2.0)
    lens must match >=3.9 && <5.1, but the stack configuration has no specified version  (latest matching version is 5.0.1)
    old-locale needed, but the stack configuration has no specified version  (latest matching version is 1.0.0.7)
    operational must match >=0.2.2 && <0.3, but the stack configuration has no specified version  (latest matching version is 0.2.4.1)
needed due to hid-examples-0.5 -> Chart-diagrams-1.9.3

< ... and a bunch of other redacted dependency issues ... >

My understanding is that stack has first-class support for nix, so I was hoping this would all just work out of the box. It seems that I could write some custom config for nix-shell to ensure the correct environment, but that's beyond my abilities at this point.

please reconsider from single brittle Big bang build to convenient accessible modular approach stepwise small builds that make each chapter really independent and avoids early unnecessary complex decluttering of all dependencies at once when something goes wrong

Here's a recommended directory structure for managing multiple executables in a Stack project:

.
├── App1
│ ├── Main.hs
│ └── stack.yaml
├── App2
│ ├── Main.hs
│ └── stack.yaml
├── App3
│ ├── Main.hs
│ └── stack.yaml
└── stack.yaml
Each App# directory contains the Haskell source code and Stack configuration for a specific executable. This allows you to build and run each executable independently using the following commands:

stack build App1
stack build App2
stack build App3
You can also run each executable directly from the corresponding directory:

cd App1
stack exec Main
This approach promotes modularity and makes it easier to reuse code between different executables. You can also define shared libraries and dependencies using Stack's configuration files.

Does not build

When I do "stack build", I get the following errors:

directory must match >=1.2 && <1.4, but this GHC boot package has been pruned (issue
          #4510); you need to add the package explicitly to extra-deps  (latest
          matching version is 1.3.4.0)
process must match >=1.1.0.2 && <1.7, but this GHC boot package has been pruned
        (issue #4510); you need to add the package explicitly to extra-deps  (latest
        matching version is 1.6.7.0)

Does not build on Windows

Install & build fails.

PS C:\Users\guthrie\Desktop\hTest\hid-examples-0.5> cabal new-build
Resolving dependencies...
Build profile: -w ghc-8.10.2 -O1
In order, the following will be built (use -v for more details):

  • SHA-1.6.4.4 (lib) (requires build)
  • ...
    Installing basement-0.0.12 (lib)
    Completed basement-0.0.12 (lib)
    cabal.exe: Failed to unpack distributive-0.6.2.1 (which is required by
    exe:stockquotes from hid-examples-0.5 and exe:suntimes from hid-examples-0.5).
    The exception was:
    C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-38188\distributive-0.6.2.1\dis70A4.tmp:
    renameFile:renamePath:MoveFileEx
    "\\?\C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-38188\distributive-0.6.2.1\dis70A4.tmp"
    Just
    "\\?\C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-38188\distributive-0.6.2.1\distributive.cabal":
    permission denied (Access is denied.)

PS C:\Users\guthrie\Desktop\hTest\hid-examples-0.5> cabal run stockquotes -- data/quotes.csv -p -v
Build profile: -w ghc-8.10.2 -O1
...
Installing hsc2hs-0.68.8 (exe:hsc2hs)
Completed hsc2hs-0.68.8 (exe:hsc2hs)
cabal.exe: Failed to unpack microlens-0.4.12.0 (which is required by
exe:stockquotes from hid-examples-0.5). The exception was:
C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-35411\microlens-0.4.12.0\micEC17.tmp:
renameFile:renamePath:MoveFileEx
"\\?\C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-35411\microlens-0.4.12.0\micEC17.tmp"
Just
"\\?\C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-35411\microlens-0.4.12.0\microlens.cabal":
permission denied (Access is denied.)


Full Details::

PS C:\Users\guthrie\Desktop\hTest\hid-examples-0.5> cabal new-build
Resolving dependencies...
Build profile: -w ghc-8.10.2 -O1
In order, the following will be built (use -v for more details):

  • SHA-1.6.4.4 (lib) (requires build)
  • StateVar-1.2.2 (lib) (requires download & build)
  • attoparsec-0.14.4 (lib:attoparsec-internal) (requires download & build)
  • base-compat-0.12.1 (lib) (requires download & build)
  • base64-bytestring-1.2.1.0 (lib) (requires download & build)
  • basement-0.0.12 (lib) (requires download & build)
  • blaze-builder-0.4.2.2 (lib) (requires download & build)
  • cabal-doctest-1.0.9 (lib) (requires download & build)
  • call-stack-0.4.0 (lib) (requires download & build)
  • cereal-0.5.8.2 (lib) (requires download & build)
  • clock-0.8.3 (lib) (requires download & build)
  • colour-2.3.6 (lib) (requires download & build)
  • cookie-0.4.5 (lib) (requires download & build)
  • data-default-instances-containers-0.0.1 (lib:data-default-instances-containers) (requires build)
  • diagrams-solve-0.1.3 (lib) (requires download & build)
  • distributive-0.6.2.1 (lib) (requires build)
  • dlist-0.8.0.8 (lib) (requires build)
  • double-conversion-2.0.4.1 (lib) (requires download & build)
  • entropy-0.4.1.7 (lib:entropy) (requires download & build)
  • erf-2.0.0.0 (lib:erf) (requires build)
  • fingertree-0.1.5.0 (lib) (requires download & build)
  • ghc-paths-0.1.0.12 (lib:ghc-paths) (requires download & build)
  • groups-0.5.3 (lib) (requires download & build)
  • hashable-1.3.5.0 (lib) (requires download & build)
  • haskell-lexer-1.1 (lib:haskell-lexer) (requires download & build)
  • hid-examples-0.5 (exe:api-stage0) (first run)
  • hid-examples-0.5 (exe:api-stage1) (first run)
  • hid-examples-0.5 (exe:api-stage2) (first run)
  • hid-examples-0.5 (exe:api-stage3) (first run)
  • hid-examples-0.5 (exe:describe-proxies) (first run)
  • hid-examples-0.5 (exe:describe-type-apps) (first run)
  • hid-examples-0.5 (exe:doors-singletons) (first run)
  • hid-examples-0.5 (exe:doors-type-equality) (first run)
  • hid-examples-0.5 (exe:dynvalues-gadt) (first run)
  • hid-examples-0.5 (exe:expr-gadt) (first run)
  • hid-examples-0.5 (exe:gcd) (first run)
  • hid-examples-0.5 (exe:genSQL) (first run)
  • hid-examples-0.5 (exe:graph-assoc-tf) (first run)
  • hid-examples-0.5 (exe:ioref) (first run)
  • hid-examples-0.5 (exe:locator) (first run)
  • hid-examples-0.5 (exe:nummod-rank-n) (first run)
  • hid-examples-0.5 (exe:reader) (first run)
  • hid-examples-0.5 (exe:shunting-yard) (first run)
  • hid-examples-0.5 (exe:stref) (first run)
  • hid-examples-0.5 (exe:type-families) (first run)
  • hid-examples-0.5 (exe:type-lits) (first run)
  • hid-examples-0.5 (exe:type-operators) (first run)
  • hid-examples-0.5 (exe:vocab1) (first run)
  • hid-examples-0.5 (exe:vocab2) (first run)
  • hid-examples-0.5 (exe:vocab3) (first run)
  • hid-examples-0.5 (exe:weights-kinds) (first run)
  • hid-examples-0.5 (exe:weights-phantom) (first run)
  • hid-examples-0.5 (exe:xlist-data-families) (first run)
  • hourglass-0.2.12 (lib) (requires download & build)
  • hsc2hs-0.68.8 (exe:hsc2hs) (requires download & build)
  • indexed-traversable-0.1.2 (lib) (requires download & build)
  • microlens-0.4.12.0 (lib) (requires download & build)
  • mime-types-0.1.0.9 (lib) (requires download & build)
  • mmorph-1.2.0 (lib) (requires download & build)
  • newtype-generics-0.6.1 (lib) (requires download & build)
  • old-locale-1.0.0.7 (lib) (requires build)
  • operational-0.2.4.1 (lib) (requires download & build)
  • parser-combinators-1.3.0 (lib) (requires download & build)
  • random-1.1 (lib) (requires build)
  • reflection-2.1.6 (lib) (requires download & build)
  • safe-0.3.19 (lib) (requires download & build)
  • safe-exceptions-0.1.7.2 (lib) (requires download & build)
  • semigroups-0.20 (lib) (requires download & build)
  • split-0.2.3.4 (lib) (requires build)
  • splitmix-0.1.0.4 (lib) (requires download & build)
  • statestack-0.3 (lib) (requires download & build)
  • th-abstraction-0.3.2.0 (lib) (requires download & build)
  • th-compat-0.1.3 (lib) (requires download & build)
  • time-locale-compat-0.1.1.5 (lib) (requires download & build)
  • transformers-base-0.4.6 (lib) (requires download & build)
  • type-equality-1 (lib) (requires build)
  • unix-compat-0.5.4 (lib) (requires download & build)
  • unliftio-core-0.2.0.1 (lib) (requires download & build)
  • void-0.7.3 (lib) (requires build)
  • wl-pprint-annotated-0.1.0.1 (lib) (requires download & build)
  • xml-1.3.14 (lib:xml) (requires download & build)
  • zlib-0.6.2.3 (lib) (requires download & build)
  • contravariant-1.5.5 (lib) (requires download & build)
  • memory-0.16.0 (lib) (requires download & build)
  • blaze-markup-0.8.2.8 (lib) (requires download & build)
  • cereal-vector-0.2.0.1 (lib) (requires download & build)
  • extra-1.7.10 (lib) (requires download & build)
  • intervals-0.9.2 (lib) (requires download & build)
  • data-default-instances-dlist-0.0.1 (lib:data-default-instances-dlist) (requires build)
  • crypto-api-0.13.3 (lib:crypto-api) (requires build)
  • unordered-containers-0.2.16.0 (lib) (requires download & build)
  • time-compat-1.9.6.1 (lib) (requires download & build)
  • text-short-0.1.5 (lib) (requires download & build)
  • scientific-0.3.7.0 (lib) (requires download & build)
  • case-insensitive-1.2.1.0 (lib) (requires download & build)
  • async-2.2.4 (lib) (requires download & build)
  • OneTuple-0.3.1 (lib) (requires download & build)
  • pretty-show-1.10 (lib) (requires download & build)
  • terminal-size-0.3.2.1 (lib) (requires build)
  • network-3.1.2.7 (lib:network) (requires download & build)
  • mintty-0.1.3 (lib) (requires download & build)
  • comonad-5.0.8 (lib) (requires build)
  • data-default-instances-old-locale-0.0.1 (lib:data-default-instances-old-locale) (requires build)
  • uuid-types-1.0.5 (lib) (requires download & build)
  • temporary-1.3 (lib) (requires download & build)
  • retry-0.8.1.2 (lib) (requires download & build)
  • hid-examples-0.5 (exe:weapons) (first run)
  • hid-examples-0.5 (exe:dicegame) (first run)
  • hid-examples-0.5 (exe:rpnexpr) (first run)
  • hid-examples-0.5 (exe:maybe) (first run)
  • hid-examples-0.5 (lib:iplookup-lib) (first run)
  • QuickCheck-2.14.2 (lib) (requires build)
  • network-uri-2.6.4.1 (lib) (requires download & build)
  • monad-control-1.0.3.1 (lib) (requires download & build)
  • constraints-0.13.3 (lib) (requires download & build)
  • resourcet-1.2.4.3 (lib) (requires download & build)
  • JuicyPixels-3.3.6 (lib) (requires download & build)
  • pem-0.2.4 (lib) (requires build)
  • cryptonite-0.29 (lib) (requires download & build)
  • asn1-types-0.3.4 (lib:asn1-types) (requires download & build)
  • blaze-svg-0.3.6.1 (lib) (requires download & build)
  • blaze-html-0.9.1.2 (lib) (requires download & build)
  • hid-examples-0.5 (exe:filecount) (first run)
  • svg-builder-0.1.1 (lib) (requires download & build)
  • formatting-7.1.3 (lib) (requires download & build)
  • attoparsec-0.14.4 (lib) (requires download & build)
  • megaparsec-9.2.0 (lib) (requires download & build)
  • http-types-0.12.3 (lib) (requires download & build)
  • fsnotify-0.3.0.1 (lib) (requires download & build)
  • binary-orphans-1.0.2 (lib) (requires download & build)
  • base-compat-batteries-0.12.1 (lib) (requires download & build)
  • streaming-commons-0.2.2.4 (lib) (requires download & build)
  • socks-0.6.1 (lib) (requires download & build)
  • ansi-terminal-0.11.1 (lib) (requires download & build)
  • bifunctors-5.5.7 (lib) (requires download & build)
  • data-default-0.7.1.1 (lib:data-default) (requires build)
  • hint-0.9.0.5 (lib) (requires download & build)
  • hid-examples-0.5 (exe:iplookup-simulation) (first run)
  • lifted-base-0.2.3.12 (lib) (requires download & build)
  • asn1-encoding-0.9.6 (lib) (requires download & build)
  • fmt-0.6.3.0 (lib) (requires download & build)
  • cassava-0.5.2.0 (lib) (requires build)
  • bytes-0.17.1 (lib) (requires download & build)
  • attoparsec-iso8601-1.0.2.1 (lib) (requires download & build)
  • aeson-1.4.7.1 (lib) (requires download & build)
  • http-client-0.6.4.1 (lib) (requires download & build)
  • concurrent-output-1.10.15 (lib) (requires download & build)
  • ansi-wl-pprint-0.6.9 (lib) (requires build)
  • semigroupoids-5.3.4 (lib:semigroupoids) (requires build)
  • profunctors-5.6 (lib) (requires download & build)
  • hid-examples-0.5 (exe:showexpr) (first run)
  • lifted-async-0.10.2.2 (lib) (requires download & build)
  • crypto-pubkey-types-0.4.3 (lib:crypto-pubkey-types) (requires build)
  • asn1-parse-0.9.5 (lib:asn1-parse) (requires download & build)
  • http-api-data-0.4.3 (lib) (requires download & build)
  • optparse-applicative-0.15.1.0 (lib) (requires build)
  • monoid-extras-0.6.1 (lib) (requires download & build)
  • modern-uri-0.3.4.3 (lib) (requires download & build)
  • invariant-0.5.3 (lib) (requires build)
  • free-5.1.3 (lib) (requires build)
  • hedgehog-1.0.5 (lib) (requires download & build)
  • RSA-2.4.1 (lib) (requires download & build)
  • x509-1.7.6 (lib) (requires download & build)
  • hid-examples-0.5 (exe:iplookup) (first run)
  • hid-examples-0.5 (exe:du) (first run)
  • dual-tree-0.2.3.0 (lib) (requires download & build)
  • adjunctions-4.4 (lib) (requires build)
  • hid-examples-0.5 (lib:ipgen-lib) (first run)
  • authenticate-oauth-1.6.0.1 (lib:authenticate-oauth) (requires download & build)
  • x509-store-1.6.9 (lib) (requires download & build)
  • kan-extensions-5.2.3 (lib) (requires download & build)
  • hid-examples-0.5 (exe:ipgen) (first run)
  • x509-validation-1.6.12 (lib) (requires download & build)
  • x509-system-1.6.7 (lib) (requires download & build)
  • lens-4.19.2 (lib:lens) (requires download & build)
  • tls-1.5.7 (lib) (requires download & build)
  • linear-1.21.8 (lib) (requires download & build)
  • Chart-1.9.3 (lib:Chart) (requires download & build)
  • connection-0.3.1 (lib:connection) (requires download & build)
  • diagrams-core-1.5.0 (lib) (requires download & build)
  • active-0.2.0.15 (lib) (requires download & build)
  • http-client-tls-0.3.6 (lib) (requires download & build)
  • diagrams-lib-1.4.5.1 (lib) (requires download & build)
  • req-3.1.0 (lib) (requires download & build)
  • diagrams-svg-1.4.3.1 (lib) (requires download & build)
  • diagrams-postscript-1.5.1 (lib) (requires download & build)
  • SVGFonts-1.7.0.1 (lib) (requires download & build)
  • hid-examples-0.5 (exe:suntimes) (first run)
  • Chart-diagrams-1.9.3 (lib:Chart-diagrams) (requires download & build)
  • hid-examples-0.5 (exe:stockquotes) (first run)
    Downloading base-compat-0.12.1
    Starting SHA-1.6.4.4 (lib)
    Downloaded base-compat-0.12.1
    Downloading clock-0.8.3
    Downloaded clock-0.8.3
    Downloading colour-2.3.6
    Downloaded colour-2.3.6
    Downloading diagrams-solve-0.1.3
    Downloaded diagrams-solve-0.1.3
    Downloading call-stack-0.4.0
    Downloaded call-stack-0.4.0
    Downloading fingertree-0.1.5.0
    Downloaded fingertree-0.1.5.0
    Downloading groups-0.5.3
    Downloaded groups-0.5.3
    Downloading haskell-lexer-1.1
    Downloaded haskell-lexer-1.1
    Downloading microlens-0.4.12.0
    Starting base-compat-0.12.1 (lib)
    Downloaded microlens-0.4.12.0
    Downloading parser-combinators-1.3.0
    Downloaded parser-combinators-1.3.0
    Downloading safe-0.3.19
    Downloaded safe-0.3.19
    Downloading semigroups-0.20
    Downloaded semigroups-0.20
    Downloading operational-0.2.4.1
    Downloaded operational-0.2.4.1
    Downloading newtype-generics-0.6.1
    Downloaded newtype-generics-0.6.1
    Downloading mmorph-1.2.0
    Downloaded mmorph-1.2.0
    Downloading statestack-0.3
    Downloaded statestack-0.3
    Downloading unliftio-core-0.2.0.1
    Downloaded unliftio-core-0.2.0.1
    Downloading base64-bytestring-1.2.1.0
    Downloaded base64-bytestring-1.2.1.0
    Downloading zlib-0.6.2.3
    Starting base64-bytestring-1.2.1.0 (lib)
    Downloaded zlib-0.6.2.3
    Downloading cereal-0.5.8.2
    Downloaded cereal-0.5.8.2
    Downloading reflection-2.1.6
    Downloaded reflection-2.1.6
    Downloading th-abstraction-0.3.2.0
    Downloaded th-abstraction-0.3.2.0
    Downloading th-compat-0.1.3
    Downloading splitmix-0.1.0.4
    Downloaded splitmix-0.1.0.4
    Downloading cereal-vector-0.2.0.1
    Downloaded cereal-vector-0.2.0.1
    Downloading indexed-traversable-0.1.2
    Downloaded indexed-traversable-0.1.2
    Downloading bifunctors-5.5.7
    Downloaded bifunctors-5.5.7
    Downloading intervals-0.9.2
    Downloaded intervals-0.9.2
    Downloading resourcet-1.2.4.3
    Downloaded resourcet-1.2.4.3
    Downloading safe-exceptions-0.1.7.2
    Downloaded safe-exceptions-0.1.7.2
    Downloading transformers-base-0.4.6
    Downloaded transformers-base-0.4.6
    Downloading monad-control-1.0.3.1
    Downloaded monad-control-1.0.3.1
    Downloading lifted-base-0.2.3.12
    Downloaded lifted-base-0.2.3.12
    Downloading attoparsec-0.14.4
    Building SHA-1.6.4.4 (lib)
    Building base-compat-0.12.1 (lib)
    Downloaded attoparsec-0.14.4
    Downloading blaze-builder-0.4.2.2
    Downloaded blaze-builder-0.4.2.2
    Downloading blaze-markup-0.8.2.8
    Downloaded blaze-markup-0.8.2.8
    Downloading blaze-html-0.9.1.2
    Starting blaze-builder-0.4.2.2 (lib)
    Downloaded blaze-html-0.9.1.2
    Downloading blaze-svg-0.3.6.1
    Starting attoparsec-0.14.4 (lib:attoparsec-internal)
    Downloaded blaze-svg-0.3.6.1
    Downloading double-conversion-2.0.4.1
    Downloaded double-conversion-2.0.4.1
    Downloading hashable-1.3.5.0
    Building base64-bytestring-1.2.1.0 (lib)
    Downloaded hashable-1.3.5.0
    Downloading async-2.2.4
    Downloaded async-2.2.4
    Downloading case-insensitive-1.2.1.0
    Downloaded case-insensitive-1.2.1.0
    Downloading constraints-0.13.3
    Downloaded constraints-0.13.3
    Downloading lifted-async-0.10.2.2
    Downloaded lifted-async-0.10.2.2
    Downloading unordered-containers-0.2.16.0
    Downloaded unordered-containers-0.2.16.0
    Downloading http-types-0.12.3
    Downloaded http-types-0.12.3
    Downloading mime-types-0.1.0.9
    Downloaded mime-types-0.1.0.9
    Downloading network-uri-2.6.4.1
    Downloaded network-uri-2.6.4.1
    Downloading pretty-show-1.10
    Downloaded pretty-show-1.10
    Downloading scientific-0.3.7.0
    Downloaded scientific-0.3.7.0
    Downloading megaparsec-9.2.0
    Downloaded megaparsec-9.2.0
    Downloading svg-builder-0.1.1
    Downloaded svg-builder-0.1.1
    Downloading text-short-0.1.5
    Downloaded text-short-0.1.5
    Downloading wl-pprint-annotated-0.1.0.1
    Downloaded wl-pprint-annotated-0.1.0.1
    Downloading xml-1.3.14
    Downloaded xml-1.3.14
    Downloading basement-0.0.12
    Downloaded basement-0.0.12
    Downloading memory-0.16.0
    Downloaded memory-0.16.0
    Downloading cryptonite-0.29
    Downloaded cryptonite-0.29
    Downloading hourglass-0.2.12
    Downloaded hourglass-0.2.12
    Downloading asn1-types-0.3.4
    Starting basement-0.0.12 (lib)
    Downloaded asn1-types-0.3.4
    Downloading asn1-encoding-0.9.6
    Building blaze-builder-0.4.2.2 (lib)
    Downloaded asn1-encoding-0.9.6
    Downloading asn1-parse-0.9.5
    Installing base64-bytestring-1.2.1.0 (lib)
    Downloaded asn1-parse-0.9.5
    Downloading x509-1.7.6
    Downloaded x509-1.7.6
    Downloading cookie-0.4.5
    Building attoparsec-0.14.4 (lib:attoparsec-internal)
    Downloaded cookie-0.4.5
    Downloading hsc2hs-0.68.8
    Downloaded hsc2hs-0.68.8
    Downloading mintty-0.1.3
    Downloaded mintty-0.1.3
    Downloading ansi-terminal-0.11.1
    Downloaded ansi-terminal-0.11.1
    Downloading network-3.1.2.7
    Downloaded network-3.1.2.7
    Downloading socks-0.6.1
    Downloaded socks-0.6.1
    Downloading concurrent-output-1.10.15
    Completed base64-bytestring-1.2.1.0 (lib)
    Downloaded concurrent-output-1.10.15
    Downloading x509-store-1.6.9
    Starting call-stack-0.4.0 (lib)
    Downloaded x509-store-1.6.9
    Downloading x509-validation-1.6.12
    Downloaded x509-validation-1.6.12
    Downloading tls-1.5.7
    Downloaded tls-1.5.7
    Downloading extra-1.7.10
    Downloaded extra-1.7.10
    Downloading formatting-7.1.3
    Downloaded formatting-7.1.3
    Downloading hedgehog-1.0.5
    Installing SHA-1.6.4.4 (lib)
    Downloaded hedgehog-1.0.5
    Downloading retry-0.8.1.2
    Downloaded retry-0.8.1.2
    Downloading streaming-commons-0.2.2.4
    Downloaded streaming-commons-0.2.2.4
    Downloading http-client-0.6.4.1
    Downloaded http-client-0.6.4.1
    Downloading temporary-1.3
    Downloaded temporary-1.3
    Downloading uuid-types-1.0.5
    Completed SHA-1.6.4.4 (lib)
    Starting cereal-0.5.8.2 (lib)
    Downloaded uuid-types-1.0.5
    Downloading time-compat-1.9.6.1
    Downloaded time-compat-1.9.6.1
    Downloading time-locale-compat-0.1.1.5
    Downloaded time-locale-compat-0.1.1.5
    Downloading fmt-0.6.3.0
    Downloaded fmt-0.6.3.0
    Downloading unix-compat-0.5.4
    Downloaded unix-compat-0.5.4
    Downloading fsnotify-0.3.0.1
    Downloaded fsnotify-0.3.0.1
    Downloading x509-system-1.6.7
    Downloaded x509-system-1.6.7
    Downloading connection-0.3.1
    Building basement-0.0.12 (lib)
    Downloaded connection-0.3.1
    Downloading http-client-tls-0.3.6
    Installing attoparsec-0.14.4 (lib:attoparsec-internal)
    Downloaded http-client-tls-0.3.6
    Downloading StateVar-1.2.2
    Downloaded StateVar-1.2.2
    Downloading contravariant-1.5.5
    Starting StateVar-1.2.2 (lib)
    Downloaded contravariant-1.5.5
    Downloading profunctors-5.6
    Downloaded profunctors-5.6
    Downloading modern-uri-0.3.4.3
    Completed attoparsec-0.14.4 (lib:attoparsec-internal)
    Downloading OneTuple-0.3.1
    Installing blaze-builder-0.4.2.2 (lib)
    Downloaded OneTuple-0.3.1
    Downloading base-compat-batteries-0.12.1
    Starting clock-0.8.3 (lib)
    Downloaded base-compat-batteries-0.12.1
    Downloading aeson-1.4.7.1
    Building call-stack-0.4.0 (lib)
    Downloaded aeson-1.4.7.1
    Downloading attoparsec-iso8601-1.0.2.1
    Downloaded attoparsec-iso8601-1.0.2.1
    Downloading http-api-data-0.4.3
    Downloaded http-api-data-0.4.3
    Downloading binary-orphans-1.0.2
    Downloaded binary-orphans-1.0.2
    Downloading bytes-0.17.1
    Completed blaze-builder-0.4.2.2 (lib)
    Downloaded bytes-0.17.1
    Downloading JuicyPixels-3.3.6
    Starting colour-2.3.6 (lib)
    Downloaded JuicyPixels-3.3.6
    Downloading cabal-doctest-1.0.9
    Downloaded cabal-doctest-1.0.9
    Downloading entropy-0.4.1.7
    Starting cabal-doctest-1.0.9 (lib)
    Downloaded entropy-0.4.1.7
    Downloading RSA-2.4.1
    Downloaded RSA-2.4.1
    Downloading authenticate-oauth-1.6.0.1
    Downloaded authenticate-oauth-1.6.0.1
    Downloading req-3.1.0
    Downloaded req-3.1.0
    Downloading ghc-paths-0.1.0.12
    Downloaded ghc-paths-0.1.0.12
    Building cereal-0.5.8.2 (lib)
    Downloading hint-0.9.0.5
    Downloaded hint-0.9.0.5
    Downloading kan-extensions-5.2.3
    Downloaded kan-extensions-5.2.3
    Downloading lens-4.19.2
    Installing call-stack-0.4.0 (lib)
    Downloaded lens-4.19.2
    Downloading Chart-1.9.3
    Downloaded Chart-1.9.3
    Downloading linear-1.21.8
    Downloaded linear-1.21.8
    Downloading active-0.2.0.15
    Downloaded active-0.2.0.15
    Downloading monoid-extras-0.6.1
    Building StateVar-1.2.2 (lib)
    Completed call-stack-0.4.0 (lib)
    Starting cookie-0.4.5 (lib)
    Downloaded monoid-extras-0.6.1
    Downloading dual-tree-0.2.3.0
    Downloaded dual-tree-0.2.3.0
    Downloading diagrams-core-1.5.0
    Downloaded diagrams-core-1.5.0
    Downloading diagrams-lib-1.4.5.1
    Downloaded diagrams-lib-1.4.5.1
    Downloading SVGFonts-1.7.0.1
    Downloaded SVGFonts-1.7.0.1
    Downloading diagrams-postscript-1.5.1
    Downloaded diagrams-postscript-1.5.1
    Downloading diagrams-svg-1.4.3.1
    Building clock-0.8.3 (lib)
    Downloaded diagrams-svg-1.4.3.1
    Downloading Chart-diagrams-1.9.3
    Downloaded Chart-diagrams-1.9.3
    Installing StateVar-1.2.2 (lib)
    Building colour-2.3.6 (lib)
    Building cabal-doctest-1.0.9 (lib)
    Completed StateVar-1.2.2 (lib)
    Starting data-default-instances-containers-0.0.1 (all, legacy fallback)
    Building cookie-0.4.5 (lib)
    Installing cabal-doctest-1.0.9 (lib)
    Completed cabal-doctest-1.0.9 (lib)
    Starting diagrams-solve-0.1.3 (lib)
    Installing cereal-0.5.8.2 (lib)
    Installing cookie-0.4.5 (lib)
    Completed cereal-0.5.8.2 (lib)
    Completed cookie-0.4.5 (lib)
    Starting dlist-0.8.0.8 (lib)
    Building data-default-instances-containers-0.0.1 (all, legacy fallback)
    Installing data-default-instances-containers-0.0.1 (all, legacy fallback)
    Installing colour-2.3.6 (lib)
    Installing clock-0.8.3 (lib)
    Completed data-default-instances-containers-0.0.1 (all, legacy fallback)
    Completed colour-2.3.6 (lib)
    Building diagrams-solve-0.1.3 (lib)
    Completed clock-0.8.3 (lib)
    Building dlist-0.8.0.8 (lib)
    Installing diagrams-solve-0.1.3 (lib)
    Completed diagrams-solve-0.1.3 (lib)
    Installing dlist-0.8.0.8 (lib)
    Completed dlist-0.8.0.8 (lib)
    Installing base-compat-0.12.1 (lib)
    Completed base-compat-0.12.1 (lib)
    Installing basement-0.0.12 (lib)
    Completed basement-0.0.12 (lib)
    cabal.exe: Failed to unpack distributive-0.6.2.1 (which is required by
    exe:stockquotes from hid-examples-0.5 and exe:suntimes from hid-examples-0.5).
    The exception was:
    C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-38188\distributive-0.6.2.1\dis70A4.tmp:
    renameFile:renamePath:MoveFileEx
    "\\?\C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-38188\distributive-0.6.2.1\dis70A4.tmp"
    Just
    "\\?\C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-38188\distributive-0.6.2.1\distributive.cabal":
    permission denied (Access is denied.)

PS C:\Users\guthrie\Desktop\hTest\hid-examples-0.5>
PS C:\Users\guthrie\Desktop\hTest\hid-examples-0.5>
PS C:\Users\guthrie\Desktop\hTest\hid-examples-0.5> cabal run stockquotes -- data/quotes.csv -p -v
Build profile: -w ghc-8.10.2 -O1
In order, the following will be built (use -v for more details):

  • blaze-markup-0.8.2.8 (lib) (requires build)
  • cereal-vector-0.2.0.1 (lib) (requires build)
  • contravariant-1.5.5 (lib) (requires build)
  • distributive-0.6.2.1 (lib) (requires build)
  • double-conversion-2.0.4.1 (lib) (requires build)
  • fingertree-0.1.5.0 (lib) (requires build)
  • groups-0.5.3 (lib) (requires build)
  • hashable-1.3.5.0 (lib) (requires build)
  • hsc2hs-0.68.8 (exe:hsc2hs) (requires build)
  • indexed-traversable-0.1.2 (lib) (requires build)
  • microlens-0.4.12.0 (lib) (requires build)
  • newtype-generics-0.6.1 (lib) (requires build)
  • old-locale-1.0.0.7 (lib) (requires build)
  • operational-0.2.4.1 (lib) (requires build)
  • random-1.1 (lib) (requires build)
  • reflection-2.1.6 (lib) (requires build)
  • safe-0.3.19 (lib) (requires build)
  • semigroups-0.20 (lib) (requires build)
  • split-0.2.3.4 (lib) (requires build)
  • statestack-0.3 (lib) (requires build)
  • th-abstraction-0.3.2.0 (lib) (requires build)
  • time-locale-compat-0.1.1.5 (lib) (requires build)
  • transformers-base-0.4.6 (lib) (requires build)
  • unix-compat-0.5.4 (lib) (requires build)
  • void-0.7.3 (lib) (requires build)
  • xml-1.3.14 (lib:xml) (requires build)
  • zlib-0.6.2.3 (lib) (requires build)
  • blaze-svg-0.3.6.1 (lib) (requires build)
  • blaze-html-0.9.1.2 (lib) (requires build)
  • intervals-0.9.2 (lib) (requires build)
  • unordered-containers-0.2.16.0 (lib) (requires build)
  • text-short-0.1.5 (lib) (requires build)
  • scientific-0.3.7.0 (lib) (requires build)
  • async-2.2.4 (lib) (requires build)
  • OneTuple-0.3.1 (lib) (requires build)
  • mintty-0.1.3 (lib) (requires build)
  • comonad-5.0.8 (lib) (requires build)
  • JuicyPixels-3.3.6 (lib) (requires build)
  • svg-builder-0.1.1 (lib) (requires build)
  • formatting-7.1.3 (lib) (requires build)
  • attoparsec-0.14.4 (lib) (requires build)
  • fsnotify-0.3.0.1 (lib) (requires build)
  • binary-orphans-1.0.2 (lib) (requires build)
  • ansi-terminal-0.11.1 (lib) (requires build)
  • bifunctors-5.5.7 (lib) (requires build)
  • fmt-0.6.3.0 (lib) (requires build)
  • cassava-0.5.2.0 (lib) (requires build)
  • bytes-0.17.1 (lib) (requires build)
  • ansi-wl-pprint-0.6.9 (lib) (requires build)
  • semigroupoids-5.3.4 (lib:semigroupoids) (requires build)
  • profunctors-5.6 (lib) (requires build)
  • optparse-applicative-0.15.1.0 (lib) (requires build)
  • monoid-extras-0.6.1 (lib) (requires build)
  • invariant-0.5.3 (lib) (requires build)
  • free-5.1.3 (lib) (requires build)
  • dual-tree-0.2.3.0 (lib) (requires build)
  • adjunctions-4.4 (lib) (requires build)
  • kan-extensions-5.2.3 (lib) (requires build)
  • lens-4.19.2 (lib:lens) (requires build)
  • linear-1.21.8 (lib) (requires build)
  • Chart-1.9.3 (lib:Chart) (requires build)
  • diagrams-core-1.5.0 (lib) (requires build)
  • active-0.2.0.15 (lib) (requires build)
  • diagrams-lib-1.4.5.1 (lib) (requires build)
  • diagrams-svg-1.4.3.1 (lib) (requires build)
  • diagrams-postscript-1.5.1 (lib) (requires build)
  • SVGFonts-1.7.0.1 (lib) (requires build)
  • Chart-diagrams-1.9.3 (lib:Chart-diagrams) (requires build)
  • hid-examples-0.5 (exe:stockquotes) (first run)
    Starting contravariant-1.5.5 (lib)
    Starting distributive-0.6.2.1 (lib)
    Starting cereal-vector-0.2.0.1 (lib)
    Starting groups-0.5.3 (lib)
    Starting fingertree-0.1.5.0 (lib)
    Starting blaze-markup-0.8.2.8 (lib)
    Starting hashable-1.3.5.0 (lib)
    Starting double-conversion-2.0.4.1 (lib)
    Building cereal-vector-0.2.0.1 (lib)
    Building groups-0.5.3 (lib)
    Building hashable-1.3.5.0 (lib)
    Building fingertree-0.1.5.0 (lib)
    Building distributive-0.6.2.1 (lib)
    Building contravariant-1.5.5 (lib)
    Building blaze-markup-0.8.2.8 (lib)
    Building double-conversion-2.0.4.1 (lib)
    Installing groups-0.5.3 (lib)
    Installing distributive-0.6.2.1 (lib)
    Installing cereal-vector-0.2.0.1 (lib)
    Completed groups-0.5.3 (lib)
    Starting hsc2hs-0.68.8 (exe:hsc2hs)
    Installing contravariant-1.5.5 (lib)
    Completed cereal-vector-0.2.0.1 (lib)
    Starting indexed-traversable-0.1.2 (lib)
    Completed distributive-0.6.2.1 (lib)
    Starting newtype-generics-0.6.1 (lib)
    Completed contravariant-1.5.5 (lib)
    Installing fingertree-0.1.5.0 (lib)
    Completed fingertree-0.1.5.0 (lib)
    Installing blaze-markup-0.8.2.8 (lib)
    Completed blaze-markup-0.8.2.8 (lib)
    Installing hashable-1.3.5.0 (lib)
    Building hsc2hs-0.68.8 (exe:hsc2hs)
    Completed hashable-1.3.5.0 (lib)
    Building indexed-traversable-0.1.2 (lib)
    Building newtype-generics-0.6.1 (lib)
    Installing newtype-generics-0.6.1 (lib)
    Completed newtype-generics-0.6.1 (lib)
    Installing indexed-traversable-0.1.2 (lib)
    Completed indexed-traversable-0.1.2 (lib)
    Installing double-conversion-2.0.4.1 (lib)
    Completed double-conversion-2.0.4.1 (lib)
    Installing hsc2hs-0.68.8 (exe:hsc2hs)
    Completed hsc2hs-0.68.8 (exe:hsc2hs)
    cabal.exe: Failed to unpack microlens-0.4.12.0 (which is required by
    exe:stockquotes from hid-examples-0.5). The exception was:
    C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-35411\microlens-0.4.12.0\micEC17.tmp:
    renameFile:renamePath:MoveFileEx
    "\\?\C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-35411\microlens-0.4.12.0\micEC17.tmp"
    Just
    "\\?\C:\Users\guthrie\Desktop\hTest\hid-examples-0.5\dist-newstyle\tmp\src-35411\microlens-0.4.12.0\microlens.cabal":

base package conflict

I cannot properly run the course package with stack (as per comment on #2) or with cabal. It seems my version of base is incompatible with the ones accepted by hid-examples.

➜  hid-examples-0.4 cabal new-configure
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: hid-examples-0.4 (user goal)
[__1] next goal: base (dependency of hid-examples)
[__1] rejecting: base-4.9.1.0/installed-4.9... (conflict: hid-examples =>
base>=4.10 && <4.13)
[__1] rejecting: base-4.12.0.0, base-4.11.1.0, base-4.11.0.0, base-4.10.1.0,
base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0,
base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1,
base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0,
base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0,
base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from
non-upgradeable package requires installed instance)
[__1] fail (backjumping, conflict set: base, hid-examples)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, hid-examples

My GHC version is 8.0.2. I am not sure where this comes from, I think it is from the Ubuntu 18.04 version of the cabal-install package.

What should I do? Can I use cabal to get a new ghc version? Which one should I get? Would that replace the one I currently have, or live alongside it creating conflicts?

Doesn't build on Linux with Stack

Trying to build: $ stack build

   Error: [S-7282]
   Stack failed to execute the build plan.
   
   While executing the build plan, Stack encountered the following errors:
   
   [S-7011]
   While building package streaming-utils-0.2.1.0 (scroll up to its section
   to see the error) using:
   /home/xodiqus/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_SvXsv1f__3.2.1.0_ghc-8.10.7 --verbose=1 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0 configure --with-ghc=/home/xodiqus/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/bin/ghc-8.10.7 --with-ghc-pkg=/home/xodiqus/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/bin/ghc-pkg-8.10.7 --user --package-db=clear --package-db=global --package-db=/home/xodiqus/.stack/snapshots/x86_64-linux-tinfo6/643cd9fed3fa515e293793015f5dec796a167f11c8c345f1bf81c2662ed90b39/8.10.7/pkgdb --libdir=/home/xodiqus/.stack/snapshots/x86_64-linux-tinfo6/643cd9fed3fa515e293793015f5dec796a167f11c8c345f1bf81c2662ed90b39/8.10.7/lib --bindir=/home/xodiqus/.stack/snapshots/x86_64-linux-tinfo6/643cd9fed3fa515e293793015f5dec796a167f11c8c345f1bf81c2662ed90b39/8.10.7/bin --datadir=/home/xodiqus/.stack/snapshots/x86_64-linux-tinfo6/643cd9fed3fa515e293793015f5dec796a167f11c8c345f1bf81c2662ed90b39/8.10.7/share --libexecdir=/home/xodiqus/.stack/snapshots/x86_64-linux-tinfo6/643cd9fed3fa515e293793015f5dec796a167f11c8c345f1bf81c2662ed90b39/8.10.7/libexec --sysconfdir=/home/xodiqus/.stack/snapshots/x86_64-linux-tinfo6/643cd9fed3fa515e293793015f5dec796a167f11c8c345f1bf81c2662ed90b39/8.10.7/etc --docdir=/home/xodiqus/.stack/snapshots/x86_64-linux-tinfo6/643cd9fed3fa515e293793015f5dec796a167f11c8c345f1bf81c2662ed90b39/8.10.7/doc/streaming-utils-0.2.1.0 --htmldir=/home/xodiqus/.stack/snapshots/x86_64-linux-tinfo6/643cd9fed3fa515e293793015f5dec796a167f11c8c345f1bf81c2662ed90b39/8.10.7/doc/streaming-utils-0.2.1.0 --haddockdir=/home/xodiqus/.stack/snapshots/x86_64-linux-tinfo6/643cd9fed3fa515e293793015f5dec796a167f11c8c345f1bf81c2662ed90b39/8.10.7/doc/streaming-utils-0.2.1.0 --dependency=aeson=aeson-1.5.6.0-DkwLMaMFAoKEbTeMR8x6ex --dependency=attoparsec=attoparsec-0.13.2.5-8izDPW0DwnMA1uBRNCYnOn --dependency=base=base-4.14.3.0 --dependency=bytestring=bytestring-0.10.12.0 --dependency=http-client=http-client-0.6.4.1-L2WcCX1S6G93IdjWhCRWqB --dependency=http-client-tls=http-client-tls-0.3.5.3-HTIy4TwCUHGEAIs303kndw --dependency=json-stream=json-stream-0.4.2.4-GP7H9k6ydGpFhkWpAV7fhV --dependency=mtl=mtl-2.2.2 --dependency=network=network-3.1.1.1-3xFSBe7XCrO7SWRn35NgL3 --dependency=network-simple=network-simple-0.4.5-H8Jo56Izwck74qgHRp8fkL --dependency=pipes=pipes-4.3.16-Ae9yuHIGpRS6XXQM8QsguE --dependency=resourcet=resourcet-1.2.4.3-EZpbKEiS8a8G4IXFok6D1M --dependency=streaming=streaming-0.2.3.1-CtrX5s6nvJ7aJwf6Heg8A --dependency=streaming-bytestring=streaming-bytestring-0.2.1-I9SmIejUQYt8JNbBT9Ypd9 --dependency=streaming-commons=streaming-commons-0.2.2.3-AQIpgNlfUfQ17AfvJCMo3o --dependency=transformers=transformers-0.5.6.2 --exact-configuration --ghc-option=-fhide-source-paths
   Process exited with code: ExitFailure 1 

What am I doing wrong? Thanks for any help.

Stack: Version 2.9.3, Git revision 6cf638947a863f49857f9cfbf72a38a48b183e7e x86_64 hpack-0.35.1
Ubuntu: 22.04.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.