A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/commercialhaskell/stack/issues/479 below:

Touching preprocessor modules (alex, happy, c2hs) doesn't trigger a rebuild · Issue #479 · commercialhaskell/stack · GitHub

Steps to reproduce:

new-template.cabal:

name:                new-template
version:             0.1.0.0
build-type:          Simple
cabal-version:       >= 1.10

library
  exposed-modules:     A, B, C, D
  build-depends:       base >= 4.7 && < 5, array
  default-language:    Haskell2010
  ghc-options:         -fno-warn-tabs

stack.yaml:

flags: {}
packages:
- '.'
extra-deps: []
resolver: nightly-2015-06-28

A.hs:

B.chs:

C.x:

{
module C where
}

%wrapper "basic"

tokens :-

[\ ] ;

{ 
}

D.y:

{
module D where
}

%name parse
%tokentype { () }

%token
  '()' { () }

%%

Unit : '()' { () }

{ 
happyError = undefined
}

Expected:

touching any of the four modules triggers a rebuild.

Actual:

$ stack build
new-template-0.1.0.0: configure
Configuring new-template-0.1.0.0...
new-template-0.1.0.0: build
Building new-template-0.1.0.0...
Preprocessing library new-template-0.1.0.0...
[1 of 4] Compiling D                ( .stack-work/dist/x86_64-osx/Cabal-1.22.2.0/build/D.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.2.0/build/D.o )
[2 of 4] Compiling C                ( .stack-work/dist/x86_64-osx/Cabal-1.22.2.0/build/C.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.2.0/build/C.o )
[3 of 4] Compiling B                ( .stack-work/dist/x86_64-osx/Cabal-1.22.2.0/build/B.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.2.0/build/B.o )
[4 of 4] Compiling A                ( A.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.2.0/build/A.o )
In-place registering new-template-0.1.0.0...
new-template-0.1.0.0: install
Installing library in
/Users/mtolly/git/stackbugs/.stack-work/install/x86_64-osx/nightly-2015-06-28/7.10.1/lib/x86_64-osx-ghc-7.10.1/newte_4CYw9uk75Lc15H36S6c3aX
Registering new-template-0.1.0.0...
$ touch A.hs
$ stack build
new-template-0.1.0.0-1476e217c0863a8960511bcc73ce9ef2: unregistering (local file changes)
new-template-0.1.0.0: build
Building new-template-0.1.0.0...
Preprocessing library new-template-0.1.0.0...
[4 of 4] Compiling A                ( A.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.2.0/build/A.o )
In-place registering new-template-0.1.0.0...
new-template-0.1.0.0: install
Installing library in
/Users/mtolly/git/stackbugs/.stack-work/install/x86_64-osx/nightly-2015-06-28/7.10.1/lib/x86_64-osx-ghc-7.10.1/newte_4CYw9uk75Lc15H36S6c3aX
Registering new-template-0.1.0.0...
$ touch B.chs
$ stack build
$ touch C.x
$ stack build
$ touch D.y
$ stack build --verbose
Version 0.1.1.0
2015-07-01 16:11:18.16841: [debug] Checking for project config at: /Users/mtolly/git/stackbugs/stack.yaml @(stack-0.1.1.0:Stack.Config src/Stack/Config.hs:489:9)
2015-07-01 16:11:18.168702: [debug] Loading project config file stack.yaml @(stack-0.1.1.0:Stack.Config src/Stack/Config.hs:512:13)
2015-07-01 16:11:18.176584: [debug] Run process: ghc --info @(stack-0.1.1.0:System.Process.Read src/System/Process/Read.hs:253:3)
2015-07-01 16:11:18.236065: [debug] Run process: ghc --numeric-version @(stack-0.1.1.0:System.Process.Read src/System/Process/Read.hs:253:3)
2015-07-01 16:11:18.265797: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal id @(stack-0.1.1.0:System.Process.Read src/System/Process/Read.hs:253:3)
2015-07-01 16:11:18.293125: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack-0.1.1.0:System.Process.Read src/System/Process/Read.hs:253:3)
2015-07-01 16:11:18.32044: [debug] Checking resolver: nightly-2015-06-28 @(stack-0.1.1.0:Stack.Build.Source src/Stack/Build/Source.hs:76:13)
2015-07-01 16:11:18.637582: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack-0.1.1.0:System.Process.Read src/System/Process/Read.hs:253:3)
2015-07-01 16:11:18.683137: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /Users/mtolly/.stack/snapshots/x86_64-osx/nightly-2015-06-28/7.10.1/pkgdb/ dump --expand-pkgroot @(stack-0.1.1.0:System.Process.Read src/System/Process/Read.hs:253:3)
2015-07-01 16:11:18.757945: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /Users/mtolly/git/stackbugs/.stack-work/install/x86_64-osx/nightly-2015-06-28/7.10.1/pkgdb/ dump --expand-pkgroot @(stack-0.1.1.0:System.Process.Read src/System/Process/Read.hs:253:3)
2015-07-01 16:11:19.40135: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack-0.1.1.0:System.Process.Read src/System/Process/Read.hs:253:3)
$

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4