$ stack build
p1-0.1.0.0: unregistering (local file changes: Baz.hs Foo.hs)
p1-0.1.0.0: configure
p1-0.1.0.0: build
p1-0.1.0.0: install
p2-0.1.0.0: configure
p2-0.1.0.0: build
Complete     
--  While building package p2-0.1.0.0 using:
      /home/haskell/.stack/setup-exe-cache/setup-Simple-Cabal-1.22.4.0-x86_64-linux-ghc-7.10.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/ build lib:p2 --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /tmp/test/p2/.stack-work/logs/p2-0.1.0.0.log

    Configuring p2-0.1.0.0...
    Preprocessing library p2-0.1.0.0...
    [1 of 1] Compiling Bar              ( Bar.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Bar.o )
    /tmp/test/p2/.stack-work/install/x86_64-linux/lts-3.5/7.10.2/lib/x86_64-linux-ghc-7.10.2/p1-0.1.0.0-I5t4il6dN7vIqsT1XgYsM3/Foo.hi
    Declaration for Just'
    Pattern synonym Just':
      Iface type variable out of scope:  k
    Cannot continue after interface file error

