Guest User

Untitled

a guest
Jan 16th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. $ stack --version
  2.  
  3. Version 1.6.3, Git revision b27e629b8c4ce369e3b8273f04db193b060000db (5454 commits) x86_64 hpack-0.20.0
  4.  
  5. $ ghci --version
  6.  
  7. The Glorious Glasgow Haskell Compilation System, version 8.2.1
  8.  
  9. $ stack new so-mve
  10.  
  11. Downloading template "new-template" to create project "so-mve" in so-mve/
  12. ... blah blah blah ...
  13. Looking for .cabal or package.yaml files to use to init the project.
  14. Using cabal packages:
  15. - so-mve/
  16. Selecting the best among 12 snapshots...
  17. * Matches lts-10.3
  18. Selected resolver: lts-10.3
  19. Initialising configuration using resolver: lts-10.3
  20. Total number of user packages considered: 1
  21. Writing configuration to file: so-mve/stack.yaml
  22. All done.
  23.  
  24. $ tree so-mve
  25.  
  26. so-mve
  27. ├── ChangeLog.md
  28. ├── LICENSE
  29. ├── README.md
  30. ├── Setup.hs
  31. ├── app
  32. │   └── Main.hs
  33. ├── package.yaml
  34. ├── so-mve.cabal
  35. ├── src
  36. │   └── Lib.hs
  37. ├── stack.yaml
  38. └── test
  39. └── Spec.hs
  40.  
  41. $ cd so-mve
  42. $ stack build
  43.  
  44. so-mve-0.1.0.0: build (lib + exe)
  45. Preprocessing library for so-mve-0.1.0.0..
  46. Building library for so-mve-0.1.0.0..
  47. Preprocessing executable 'so-mve-exe' for so-mve-0.1.0.0..
  48. Building executable 'so-mve-exe' for so-mve-0.1.0.0..
  49. so-mve-0.1.0.0: copy/register
  50. Installing library in /...blah-blah.../so-mve/.stack-work/install/x86_64-osx/lts-10.3/8.2.2/lib/x86_64-osx-ghc-8.2.2/so-mve-0.1.0.0-5kG2WnHWwo99IiYYGoxrcC
  51. Installing executable so-mve-exe in /...blah-blah.../so-mve/.stack-work/install/x86_64-osx/lts-10.3/8.2.2/bin
  52. Registering library for so-mve-0.1.0.0..
  53.  
  54. $ stack exec so-mve-exe
  55.  
  56. someFunc
  57.  
  58. $ stack test
  59. $ stack test
  60.  
  61. blah blah blah
  62. [2 of 2] Compiling Main ( test/Spec.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/so-mve-test/so-mve-test-tmp/Main.o )
  63. ...blah-blah-blah...
  64. Progress: 1/2Test suite not yet implemented
  65. so-mve-0.1.0.0: Test suite so-mve-test passed
  66. Completed 2 action(s).
  67.  
  68. $ stack install HUnit
  69.  
  70. Populated index cache.
  71.  
  72. $ cat test/Spec.hs
  73.  
  74. import Test.HUnit
  75. main :: IO ()
  76. main = putStrLn "Test suite not yet implemented"
  77.  
  78. $ stack test
  79.  
  80. so-mve-0.1.0.0: unregistering (components added: test:so-mve-test)
  81. so-mve-0.1.0.0: build (lib + exe + test)
  82. Preprocessing library for so-mve-0.1.0.0..
  83. Building library for so-mve-0.1.0.0..
  84. Preprocessing executable 'so-mve-exe' for so-mve-0.1.0.0..
  85. Building executable 'so-mve-exe' for so-mve-0.1.0.0..
  86. Preprocessing test suite 'so-mve-test' for so-mve-0.1.0.0..
  87. Building test suite 'so-mve-test' for so-mve-0.1.0.0..
  88. [2 of 2] Compiling Main ( test/Spec.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/so-mve-test/so-mve-test-tmp/Main.o )
  89.  
  90. /...blah-blah.../so-mve/test/Spec.hs:1:1: error:
  91. Could not find module ‘Test.HUnit’
  92. Use -v to see a list of the files searched for.
  93. |
  94. 1 | import Test.HUnit
  95. | ^^^^^^^^^^^^^^^^^
  96.  
  97. Progress: 1/2
  98. -- While building custom Setup.hs for package so-mve-0.1.0.0 using:
  99. /Users/XXXXXXXX/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.0.1.0 build lib:so-mve exe:so-mve-exe test:so-mve-test --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
  100. Process exited with code: ExitFailure 1
Add Comment
Please, Sign In to add comment