Last active
September 3, 2015 09:04
-
-
Save nmk/75c7ba95917608ba8c69 to your computer and use it in GitHub Desktop.
Stack ghci fails to load Prelude
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
haskell $ stack new foobar | |
Downloading template "new-template" to create project "foobar" in foobar/ ... | |
The following parameters were needed by the template but not provided: author-email, author-name, category, copyright, github-username | |
You can provide them in /Users/nmk/.stack/stack.yaml, like this: | |
templates: | |
params: | |
author-email: value | |
author-name: value | |
category: value | |
copyright: value | |
github-username: value | |
Or you can pass each one as parameters like this: | |
stack new foobar new-template -p "author-email:value" -p "author-name:value" -p "category:value" -p "copyright:value" -p "github-username:value" | |
Writing default config file to: /Users/nmk/code/haskell/foobar/stack.yaml | |
Basing on cabal files: | |
- /Users/nmk/code/haskell/foobar/foobar.cabal | |
Checking against build plan lts-3.2 | |
Selected resolver: lts-3.2 | |
Wrote project config to: /Users/nmk/code/haskell/foobar/stack.yaml | |
haskell $ cd foobar | |
foobar $ stack test | |
foobar-0.1.0.0: configure | |
Configuring foobar-0.1.0.0... | |
foobar-0.1.0.0: build | |
Preprocessing library foobar-0.1.0.0... | |
[1 of 1] Compiling Lib ( src/Lib.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/Lib.o ) | |
In-place registering foobar-0.1.0.0... | |
Preprocessing executable 'foobar-exe' for foobar-0.1.0.0... | |
[1 of 1] Compiling Main ( app/Main.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/foobar-exe/foobar-exe-tmp/Main.o ) | |
Linking .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/foobar-exe/foobar-exe ... | |
foobar-0.1.0.0: install | |
Installing library in | |
/Users/nmk/code/haskell/foobar/.stack-work/install/x86_64-osx/lts-3.2/7.10.2/lib/x86_64-osx-ghc-7.10.2/foobar-0.1.0.0-E05fmeQhYiF0vVxMlsqLP6 | |
Installing executable(s) in | |
/Users/nmk/code/haskell/foobar/.stack-work/install/x86_64-osx/lts-3.2/7.10.2/bin | |
Registering foobar-0.1.0.0... | |
foobar-0.1.0.0: build (test) | |
Preprocessing library foobar-0.1.0.0... | |
In-place registering foobar-0.1.0.0... | |
Preprocessing test suite 'foobar-test' for foobar-0.1.0.0... | |
[1 of 1] Compiling Main ( test/Spec.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/foobar-test/foobar-test-tmp/Main.o ) | |
Linking .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/foobar-test/foobar-test ... | |
foobar-0.1.0.0: test (suite: foobar-test) | |
Progress: 1/2Test suite not yet implemented | |
Completed all 2 actions. | |
foobar $ stack ghci :foobar-test | |
Using main module: Package `foobar' component test:foobar-test with main-is file: /Users/nmk/code/haskell/foobar/test/Spec.hs | |
Configuring GHCi with the following packages: foobar | |
GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help | |
<interactive>:1:1: | |
Failed to load interface for ‘Prelude’ | |
It is a member of the hidden package ‘base-4.8.1.0’. | |
Use -v to see a list of the files searched for. | |
foobar $ stack ghci foobar:test:foobar-test | |
Using main module: Package `foobar' component test:foobar-test with main-is file: /Users/nmk/code/haskell/foobar/test/Spec.hs | |
Configuring GHCi with the following packages: foobar | |
GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help | |
<interactive>:1:1: | |
Failed to load interface for ‘Prelude’ | |
It is a member of the hidden package ‘base-4.8.1.0’. | |
Use -v to see a list of the files searched for. | |
foobar $ stack --version | |
Version 0.1.3.1, Git revision 154fd25a9b231ca178ad3401aaec00c6b608e5db X86_64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment