Skip to content

Instantly share code, notes, and snippets.

@Wizek
Last active January 29, 2016 12:58
Show Gist options
  • Select an option

  • Save Wizek/c0334800377f960e69fe to your computer and use it in GitHub Desktop.

Select an option

Save Wizek/c0334800377f960e69fe to your computer and use it in GitHub Desktop.
➜ syntax-example-json-1.0.0.0 ll -a
total 32K
drwxrwxr-x 3 wizek wizek 4,0K jan 24 09:50 .
drwxrwxr-x 4 wizek wizek 4,0K jan 22 22:53 ..
-rw-rw-r-- 1 wizek wizek 1,4K jan 22 23:03 cabal.sandbox.config
drwxr-xr-x 2 wizek wizek 4,0K jan 22 22:57 dist
-rw-rw-r-- 1 wizek wizek 1,1K jan 22 22:53 LICENSE
-rw-rw-r-- 1 wizek wizek 3,9K jan 22 22:53 Main.hs
-rw-rw-r-- 1 wizek wizek 46 jan 22 22:53 Setup.hs
-rw-rw-r-- 1 wizek wizek 1,2K jan 22 22:53 syntax-example-json.cabal
➜ syntax-example-json-1.0.0.0 stack init
Using cabal packages:
- syntax-example-json.cabal
Selecting the best among 5 snapshots...
* Partially matches lts-4.1
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
* Partially matches lts-3.6
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
* Partially matches lts-5.0
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
* Partially matches lts-4.2
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
Downloaded nightly-2016-01-29 build plan.
Caching build plan
Fetched package index.
Populated index cache.
* Partially matches nightly-2016-01-29
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
Selected resolver 'lts-4.1' does not have all the packages to match your requirements.
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
However, you can try '--solver' to use external packages.
➜ syntax-example-json-1.0.0.0 stack init --solver
Using cabal packages:
- syntax-example-json.cabal
Selecting the best among 5 snapshots...
* Partially matches lts-4.1
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
* Partially matches lts-3.6
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
* Partially matches lts-5.0
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
* Partially matches lts-4.2
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
* Partially matches nightly-2016-01-29
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
Using resolver: lts-4.1
Using compiler: ghc-7.10.3
Asking cabal to calculate a build plan...
Trying with packages from lts-4.1 as hard constraints...
Attempt failed.
>>>> Cabal errors begin
cabal: Could not resolve dependencies:
trying: syntax-example-json-1.0.0.0 (user goal)
trying: base-4.8.2.0/installed-0d6... (dependency of
syntax-example-json-1.0.0.0)
next goal: syntax-printer (dependency of syntax-example-json-1.0.0.0)
rejecting: syntax-printer-1.0.0.0 (conflict: base==4.8.2.0/installed-0d6...,
syntax-printer => base>=4.7 && <4.8)
rejecting: syntax-printer-0.1.0.0 (conflict: syntax-example-json =>
syntax-printer>=1)
Dependency tree exhaustively searched.
<<<< Cabal errors end
Retrying with packages from lts-4.1 as preferences...
Attempt failed.
>>>> Cabal errors begin
cabal: Could not resolve dependencies:
trying: syntax-example-json-1.0.0.0 (user goal)
trying: base-4.8.2.0/installed-0d6... (dependency of
syntax-example-json-1.0.0.0)
next goal: syntax-printer (dependency of syntax-example-json-1.0.0.0)
rejecting: syntax-printer-1.0.0.0 (conflict: base==4.8.2.0/installed-0d6...,
syntax-printer => base>=4.7 && <4.8)
rejecting: syntax-printer-0.1.0.0 (conflict: syntax-example-json =>
syntax-printer>=1)
Dependency tree exhaustively searched.
<<<< Cabal errors end
Failed to arrive at a workable build plan using lts-4.1 resolver.
Solver could not resolve package dependencies.
You can try the following:
- Use '--ignore-subdirs' to skip packages in subdirectories.
- Update external packages with 'stack update' and try again.
- Use '--force' to create an initial stack.yaml, tweak it and run 'stack solver':
- Remove any unnecessary packages.
- Add any missing remote packages.
- Add extra dependencies to guide solver.
➜ syntax-example-json-1.0.0.0 stack init --solver --force
Using cabal packages:
- syntax-example-json.cabal
Selecting the best among 5 snapshots...
* Partially matches lts-4.1
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
* Partially matches lts-3.6
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
* Partially matches lts-5.0
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
* Partially matches lts-4.2
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
* Partially matches nightly-2016-01-29
semi-iso not found
- syntax-example-json requires >=1
syntax not found
- syntax-example-json requires >=1
syntax-attoparsec not found
- syntax-example-json requires >=1
syntax-printer not found
- syntax-example-json requires >=1
Using resolver: lts-4.1
Using compiler: ghc-7.10.3
Asking cabal to calculate a build plan...
Trying with packages from lts-4.1 as hard constraints...
Attempt failed.
>>>> Cabal errors begin
cabal: Could not resolve dependencies:
trying: syntax-example-json-1.0.0.0 (user goal)
trying: base-4.8.2.0/installed-0d6... (dependency of
syntax-example-json-1.0.0.0)
next goal: syntax-printer (dependency of syntax-example-json-1.0.0.0)
rejecting: syntax-printer-1.0.0.0 (conflict: base==4.8.2.0/installed-0d6...,
syntax-printer => base>=4.7 && <4.8)
rejecting: syntax-printer-0.1.0.0 (conflict: syntax-example-json =>
syntax-printer>=1)
Dependency tree exhaustively searched.
<<<< Cabal errors end
Retrying with packages from lts-4.1 as preferences...
Attempt failed.
>>>> Cabal errors begin
cabal: Could not resolve dependencies:
trying: syntax-example-json-1.0.0.0 (user goal)
trying: base-4.8.2.0/installed-0d6... (dependency of
syntax-example-json-1.0.0.0)
next goal: syntax-printer (dependency of syntax-example-json-1.0.0.0)
rejecting: syntax-printer-1.0.0.0 (conflict: base==4.8.2.0/installed-0d6...,
syntax-printer => base>=4.7 && <4.8)
rejecting: syntax-printer-0.1.0.0 (conflict: syntax-example-json =>
syntax-printer>=1)
Dependency tree exhaustively searched.
<<<< Cabal errors end
Failed to arrive at a workable build plan using lts-4.1 resolver.
Solver could not arrive at a workable build plan.
Proceeding to create a config with an incomplete plan anyway...
Initialising configuration using resolver: lts-4.1
Writing configuration to file: stack.yaml
All done.
➜ syntax-example-json-1.0.0.0 stack setup
No information found for ghc-7.8.3.
Supported versions for OS key 'linux64': GhcVersion 7.8.4, GhcVersion 7.10.1, GhcVersion 7.10.2, GhcVersion 7.10.3
### I've selected ghc-7.8.4 as the compiler in the stack.yaml file at this point
➜ syntax-example-json-1.0.0.0 stack setup
stack will use the GHC on your PATH
For more information on paths, see 'stack path' and 'stack exec env'
To use this GHC and packages outside of a project, consider using:
stack ghc, stack ghci, stack runghc, or stack exec
➜ syntax-example-json-1.0.0.0 stack build
While constructing the BuildPlan the following exceptions were encountered:
-- While attempting to add dependency,
Could not find package semi-iso in known packages
-- While attempting to add dependency,
Could not find package syntax in known packages
-- While attempting to add dependency,
Could not find package syntax-attoparsec in known packages
-- Failure when adding dependencies:
semi-iso: needed (>=1), not present in build plan (latest applicable is 1.0.0.0)
syntax: needed (>=1), not present in build plan (latest applicable is 1.0.0.0)
syntax-attoparsec: needed (>=1), not present in build plan (latest applicable is 1.0.0.0)
syntax-printer: needed (>=1), not present in build plan (latest applicable is 1.0.0.0)
needed for package: syntax-example-json-1.0.0.0
-- While attempting to add dependency,
Could not find package syntax-printer in known packages
Recommended action: try adding the following to your extra-deps in /home/wizek/sandbox/exp-xml/syntax-example-json-1.0.0.0/stack.yaml
- semi-iso-1.0.0.0
- syntax-1.0.0.0
- syntax-attoparsec-1.0.0.0
- syntax-printer-1.0.0.0
You may also want to try the 'stack solver' command
➜ syntax-example-json-1.0.0.0 stack solver
Using configuration file: stack.yaml
Using cabal packages:
- syntax-example-json.cabal
Using resolver: lts-4.1
Using compiler: ghc-7.10.3
Asking cabal to calculate a build plan...
Trying with packages from lts-4.1 as hard constraints...
Attempt failed.
>>>> Cabal errors begin
cabal: Could not resolve dependencies:
trying: syntax-example-json-1.0.0.0 (user goal)
trying: base-4.8.2.0/installed-0d6... (dependency of
syntax-example-json-1.0.0.0)
next goal: syntax-printer (dependency of syntax-example-json-1.0.0.0)
rejecting: syntax-printer-1.0.0.0 (conflict: base==4.8.2.0/installed-0d6...,
syntax-printer => base>=4.7 && <4.8)
rejecting: syntax-printer-0.1.0.0 (conflict: syntax-example-json =>
syntax-printer>=1)
Dependency tree exhaustively searched.
<<<< Cabal errors end
Retrying with packages from lts-4.1 as preferences...
Attempt failed.
>>>> Cabal errors begin
cabal: Could not resolve dependencies:
trying: syntax-example-json-1.0.0.0 (user goal)
trying: base-4.8.2.0/installed-0d6... (dependency of
syntax-example-json-1.0.0.0)
next goal: syntax-printer (dependency of syntax-example-json-1.0.0.0)
rejecting: syntax-printer-1.0.0.0 (conflict: base==4.8.2.0/installed-0d6...,
syntax-printer => base>=4.7 && <4.8)
rejecting: syntax-printer-0.1.0.0 (conflict: syntax-example-json =>
syntax-printer>=1)
Dependency tree exhaustively searched.
<<<< Cabal errors end
Failed to arrive at a workable build plan using lts-4.1 resolver.
Solver could not resolve package dependencies.
You can try the following:
- Update external packages with 'stack update' and try again.
- Tweak stack.yaml and try again
- Remove any unnecessary packages.
- Add any missing remote packages.
- Add extra dependencies to guide solver.
### I've selected ghc-7.8.4 as the resolver in the stack.yaml file at this point
➜ syntax-example-json-1.0.0.0 stack solver
Using configuration file: stack.yaml
Using cabal packages:
- syntax-example-json.cabal
Using resolver: ghc-7.8.4
Using compiler: ghc-7.8.4
Asking cabal to calculate a build plan...
Successfully determined a build plan with 47 external dependencies.
The following changes will be made to stack.yaml:
* Resolver is ghc-7.8.4
* Dependencies to be added
extra-deps:
- HList-0.4.2.0
- StateVar-1.1.0.3
- adjunctions-4.3
- attoparsec-0.13.0.1
- base-orphans-0.5.0
- bifunctors-5.2.1
- comonad-5
- contravariant-1.4
- data-default-class-0.0.1
- distributive-0.5.0.2
- dlist-0.7.1.2
- dlist-instances-0.1
- exceptions-0.8.2.1
- free-4.12.4
- hashable-1.2.4.0
- kan-extensions-5.0.1
- keys-3.11
- lens-4.13.1
- mono-traversable-0.10.1
- mtl-2.2.1
- mwc-random-0.13.3.2
- nats-1.1
- parallel-3.2.1.0
- pointed-5
- prelude-extras-0.4.0.3
- primitive-0.6.1.0
- profunctors-5.2
- reflection-2.1.1.1
- scientific-0.3.4.4
- semi-iso-1.0.0.0
- semigroupoids-5.0.1
- semigroups-0.18.1
- split-0.2.3
- stm-2.4.4.1
- syntax-1.0.0.0
- syntax-attoparsec-1.0.0.0
- syntax-printer-1.0.0.0
- tagged-0.8.3
- text-1.2.2.0
- transformers-0.5.1.0
- transformers-compat-0.5.1.4
- tuple-morph-0.1.0.0
- unordered-containers-0.2.6.0
- vector-0.11.0.0
- vector-algorithms-0.7.0.1
- vector-instances-3.3.1
- void-0.7.1
To automatically update stack.yaml, rerun with '--update-config'
➜ syntax-example-json-1.0.0.0 stack solver --update-config
Using configuration file: stack.yaml
Using cabal packages:
- syntax-example-json.cabal
Using resolver: ghc-7.8.4
Using compiler: ghc-7.8.4
Asking cabal to calculate a build plan...
Successfully determined a build plan with 47 external dependencies.
The following changes will be made to stack.yaml:
* Resolver is ghc-7.8.4
* Dependencies to be added
extra-deps:
- HList-0.4.2.0
- StateVar-1.1.0.3
- adjunctions-4.3
- attoparsec-0.13.0.1
- base-orphans-0.5.0
- bifunctors-5.2.1
- comonad-5
- contravariant-1.4
- data-default-class-0.0.1
- distributive-0.5.0.2
- dlist-0.7.1.2
- dlist-instances-0.1
- exceptions-0.8.2.1
- free-4.12.4
- hashable-1.2.4.0
- kan-extensions-5.0.1
- keys-3.11
- lens-4.13.1
- mono-traversable-0.10.1
- mtl-2.2.1
- mwc-random-0.13.3.2
- nats-1.1
- parallel-3.2.1.0
- pointed-5
- prelude-extras-0.4.0.3
- primitive-0.6.1.0
- profunctors-5.2
- reflection-2.1.1.1
- scientific-0.3.4.4
- semi-iso-1.0.0.0
- semigroupoids-5.0.1
- semigroups-0.18.1
- split-0.2.3
- stm-2.4.4.1
- syntax-1.0.0.0
- syntax-attoparsec-1.0.0.0
- syntax-printer-1.0.0.0
- tagged-0.8.3
- text-1.2.2.0
- transformers-0.5.1.0
- transformers-compat-0.5.1.4
- tuple-morph-0.1.0.0
- unordered-containers-0.2.6.0
- vector-0.11.0.0
- vector-algorithms-0.7.0.1
- vector-instances-3.3.1
- void-0.7.1
Updated stack.yaml
➜ syntax-example-json-1.0.0.0 stack build
base-orphans-0.5.0: configure
base-orphans-0.5.0: build
dlist-0.7.1.2: configure
dlist-0.7.1.2: build
parallel-3.2.1.0: configure
parallel-3.2.1.0: build
data-default-class-0.0.1: configure
dlist-0.7.1.2: copy/register
data-default-class-0.0.1: build
data-default-class-0.0.1: copy/register
prelude-extras-0.4.0.3: configure
parallel-3.2.1.0: copy/register
prelude-extras-0.4.0.3: build
reflection-2.1.1.1: configure
reflection-2.1.1.1: build
split-0.2.3: configure
split-0.2.3: build
split-0.2.3: copy/register
stm-2.4.4.1: configure
prelude-extras-0.4.0.3: copy/register
stm-2.4.4.1: build
base-orphans-0.5.0: copy/register
tagged-0.8.3: download
tagged-0.8.3: configure
tagged-0.8.3: build
text-1.2.2.0: configure
stm-2.4.4.1: copy/register
text-1.2.2.0: build
reflection-2.1.1.1: copy/register
transformers-0.5.1.0: configure
transformers-0.5.1.0: build
tagged-0.8.3: copy/register
transformers-0.5.1.0: copy/register
mtl-2.2.1: configure
mtl-2.2.1: build
StateVar-1.1.0.3: configure
StateVar-1.1.0.3: build
primitive-0.6.1.0: configure
primitive-0.6.1.0: build
StateVar-1.1.0.3: copy/register
transformers-compat-0.5.1.4: configure
mtl-2.2.1: copy/register
transformers-compat-0.5.1.4: build
transformers-compat-0.5.1.4: copy/register
primitive-0.6.1.0: copy/register
distributive-0.5.0.2: configure
distributive-0.5.0.2: build
exceptions-0.8.2.1: configure
exceptions-0.8.2.1: build
vector-0.11.0.0: configure
vector-0.11.0.0: build
distributive-0.5.0.2: copy/register
exceptions-0.8.2.1: copy/register
text-1.2.2.0: copy/register
hashable-1.2.4.0: configure
hashable-1.2.4.0: build
hashable-1.2.4.0: copy/register
nats-1.1: configure
nats-1.1: build
unordered-containers-0.2.6.0: configure
unordered-containers-0.2.6.0: build
nats-1.1: copy/register
unordered-containers-0.2.6.0: copy/register
semigroups-0.18.1: download
semigroups-0.18.1: configure
semigroups-0.18.1: build
vector-0.11.0.0: copy/register
mwc-random-0.13.3.2: configure
mwc-random-0.13.3.2: build
scientific-0.3.4.4: configure
scientific-0.3.4.4: build
semigroups-0.18.1: copy/register
void-0.7.1: configure
void-0.7.1: build
dlist-instances-0.1: configure
scientific-0.3.4.4: copy/register
dlist-instances-0.1: build
attoparsec-0.13.0.1: configure
void-0.7.1: copy/register
dlist-instances-0.1: copy/register
attoparsec-0.13.0.1: build
contravariant-1.4: configure
contravariant-1.4: build
contravariant-1.4: copy/register
comonad-5: configure
comonad-5: build
comonad-5: copy/register
bifunctors-5.2.1: download
bifunctors-5.2.1: configure
bifunctors-5.2.1: build
bifunctors-5.2.1: copy/register
attoparsec-0.13.0.1: copy/register
profunctors-5.2: configure
profunctors-5.2: build
semigroupoids-5.0.1: configure
semigroupoids-5.0.1: build
profunctors-5.2: copy/register
HList-0.4.2.0: configure
HList-0.4.2.0: build
semigroupoids-5.0.1: copy/register
free-4.12.4: configure
free-4.12.4: build
HList-0.4.2.0: copy/register
tuple-morph-0.1.0.0: configure
tuple-morph-0.1.0.0: build
free-4.12.4: copy/register
mwc-random-0.13.3.2: copy/register
Progress: 35/48
-- While building package tuple-morph-0.1.0.0 using:
/home/wizek/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.18.1.5-ghc-7.8.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.18.1.5 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /home/wizek/sandbox/exp-xml/syntax-example-json-1.0.0.0/.stack-work/logs/tuple-morph-0.1.0.0.log
Configuring tuple-morph-0.1.0.0...
Building tuple-morph-0.1.0.0...
Preprocessing library tuple-morph-0.1.0.0...
[1 of 3] Compiling Data.Tuple.Morph.Append ( Data/Tuple/Morph/Append.hs, .stack-work/dist/x86_64-linux/Cabal-1.18.1.5/build/Data/Tuple/Morph/Append.o )
/tmp/stack15101/tuple-morph-0.1.0.0/Data/Tuple/Morph/Append.hs:43:1:
Couldn't match type ‘a’ with ‘'[]’
‘a’ is a rigid type variable bound by
the type signature for
(++@) :: HList a -> HList b -> HList (a ++ b)
at Data/Tuple/Morph/Append.hs:42:10
Expected type: HList a
Actual type: HList '[]
Relevant bindings include
(++@) :: HList a -> HList b -> HList (a ++ b)
(bound at Data/Tuple/Morph/Append.hs:43:1)
In the pattern: HNil
In an equation for ‘++@’: HNil ++@ ys = ys
➜ syntax-example-json-1.0.0.0
flags: {}
extra-package-dbs: []
packages:
- '.'
extra-deps:
- HList-0.4.2.0
- StateVar-1.1.0.3
- adjunctions-4.3
- attoparsec-0.13.0.1
- base-orphans-0.5.0
- bifunctors-5.2.1
- comonad-5
- contravariant-1.4
- data-default-class-0.0.1
- distributive-0.5.0.2
- dlist-0.7.1.2
- dlist-instances-0.1
- exceptions-0.8.2.1
- free-4.12.4
- hashable-1.2.4.0
- kan-extensions-5.0.1
- keys-3.11
- lens-4.13.1
- mono-traversable-0.10.1
- mtl-2.2.1
- mwc-random-0.13.3.2
- nats-1.1
- parallel-3.2.1.0
- pointed-5
- prelude-extras-0.4.0.3
- primitive-0.6.1.0
- profunctors-5.2
- reflection-2.1.1.1
- scientific-0.3.4.4
- semi-iso-1.0.0.0
- semigroupoids-5.0.1
- semigroups-0.18.1
- split-0.2.3
- stm-2.4.4.1
- syntax-1.0.0.0
- syntax-attoparsec-1.0.0.0
- syntax-printer-1.0.0.0
- tagged-0.8.3
- text-1.2.2.0
- transformers-0.5.1.0
- transformers-compat-0.5.1.4
- tuple-morph-0.1.0.0
- unordered-containers-0.2.6.0
- vector-0.11.0.0
- vector-algorithms-0.7.0.1
- vector-instances-3.3.1
- void-0.7.1
compiler: ghc-7.8.4
resolver: ghc-7.8.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment