Closed
Description
General summary/comments
In the cabal file I have list of exposed modules. Stack warns me that these modules should be added to the list of exposed modules. But they are already there!
OS Information
- OS: Linux Debian Jessie
- Stack version: Version 1.4.0, Git revision e714f1d (4640 commits) x86_64 hpack-0.17.0
Package to reproduce:
github.com/hansroland/ReflexScreenWidget
Use branch reflex-dom-0.4
Steps to reproduce
- Run command
stack setup
- Run command
stack build
Expected
No warning about missing modules in cabal exposed module section.
Actual
Stack produces the warning The following modules should be added to exposed-modules
Warning: The following modules should be added to exposed-modules or other-modules in /home/roland/Projekte/ReflexScreenWidget/ReflexScreenWidget.cabal:
- In reflexScreenWidget component:
GHCJS.Canvas.BlitByteString
Reflex.Dom.AnimationFrame
Reflex.Dom.Widget.Screen
Reflex.Dom.Widget.Screen.Test
Missing modules in the cabal file are likely to cause undefined reference errors from the linker, along with other problems.
See log file https://gist.github.com/hansroland/b3a1eb969988da7513a3459cf79e5d63
The cabal file looks like:
library
hs-source-dirs: src
ghc-options: -Wall
exposed-modules: Reflex.Dom.Widget.Screen
, Reflex.Dom.Widget.Screen.Test
, Reflex.Dom.AnimationFrame
, GHCJS.Canvas.BlitByteString
stack.yaml file:
resolver: lts-6.25
compiler: ghcjs-0.2.0.9006025_ghc-7.10.3
compiler-check: match-exact
setup-info:
ghcjs:
source:
ghcjs-0.2.0.9006025_ghc-7.10.3:
url: http://ghcjs.tolysz.org/lts-6.25-9006025.tar.gz
sha1: 3c87228579b55c05e227a7876682c2a7d4c9c007
flags: {}
extra-package-dbs: []
packages:
- '.'
- location:
git: https://github.com/ghcjs/ghcjs.git
commit: 8c30beb939dadcb949b922856735080699d1d986
subdirs:
- lib/ghcjs-prim
extra-dep: true
- location:
git: https://github.com/ghcjs/ghcjs-base.git
commit: dd7034ef8582ea8a175a71a988393a9d1ee86d6f
extra-dep: true
- location:
git: https://github.com/reflex-frp/reflex
commit: 91299fce0bb2caddfba35af6608df57dd31e3690
extra-dep: true
- location:
git: https://github.com/reflex-frp/reflex-dom
commit: 66b6d35773fcb337ab38ebce02c4b23baeae721e
extra-dep: true
extra-deps:
- these-0.6.2.1
- prim-uniq-0.1.0.1
- ref-tf-0.4.0.1
- zenc-0.1.1
Stack version
Version 1.4.0, Git revision e714f1d (4640 commits) x86_64 hpack-0.17.0
Method of installation
curl -sSL https://get.haskellstack.org/ | sh