bravit / hid-examples

Examples to accompany the book "Haskell in Depth"
BSD 3-Clause "New" or "Revised" License
257 stars 93 forks source link

Does not build on Windows #15

Open grguthrie opened 2 years ago

grguthrie commented 2 years ago

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):

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):

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):

juhp commented 2 years ago

I would recommend retrying with ghc-8.10.7.