Closed Rizary closed 6 years ago
What does your frontend.cabal file look like? Do all of the modules in your frontend project appear in either the exposed-modules or the other-modules sections?
@dalaing
name: frontend
version: 0.1
cabal-version: >= 1.8
build-type: Simple
library
hs-source-dirs: src
build-depends: base
, common
, reflex-dom
, static
, obelisk-executable-config
, text
-- custom package
, reflex
, mtl
, transformers
, aeson
, filepath
, lens
, bytestring
, containers
, email-validate
, uri-bytestring
, ref-tf
, exception-transformers
, dependent-sum
, dependent-map
, ghcjs-dom
--, ghcjs-base
, jsaddle
, reflex-dom-nested-routing
, reflex-dom-storage
exposed-modules:
Frontend
other-modules:
UI
, Util.Button
, Util.Collection
, Util.Bulma.Components.Navbar
, Web
, Web.Aktivitas
, Web.Footer
, Web.Navigation
, Web.Landing
, Web.Media
, Web.Media.Berita
, Web.Media.Publikasi
, Web.Media.SiaranPers
, Web.Tentang
, Web.Tentang.DKM
, Web.Tentang.Galeri
, Web.Tentang.LaporanTahunan
, Web.Tentang.Sejarah
, Web.Tentang.VisiMisi
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -fwarn-tabs -funbox-strict-fields -O2 -fprof-auto-calls -fexpose-all-unfoldings
if os(darwin)
ghc-options: -dynamic
if impl(ghcjs -any)
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -fwarn-tabs -funbox-strict-fields -O2 -fprof-auto-calls -fexpose-all-unfoldings -dedupe
cpp-options: -D_GHCJS_ -DGHCJS_GC_INTERVAL=60000 -DGHCJS_BROWSER
executable frontend
main-is: main.hs
hs-source-dirs: exe
build-depends: base
, reflex-dom
, frontend
--TODO: Make these ghc-options optional
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -fwarn-tabs -funbox-strict-fields -O2 -fprof-auto-calls -fexpose-all-unfoldings
if os(darwin)
ghc-options: -dynamic
if impl(ghcjs -any)
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -fwarn-tabs -funbox-strict-fields -O2 -fprof-auto-calls -fexpose-all-unfoldings -dedupe
cpp-options: -D_GHCJS_ -DGHCJS_GC_INTERVAL=60000 -DGHCJS_BROWSER
this is my frontend.cabal file.
Are you missing a UI.Base module in the other-modules section? I'm guessing that from the text of the linker errors, but I don't exactly have the details of the name mangling memorised :)
On Fri, 17 Aug 2018, 5:46 PM Andika Demas Riyandi notifications@github.com wrote:
@dalaing https://github.com/dalaing
name: frontend version: 0.1 cabal-version: >= 1.8 build-type: Simple
library hs-source-dirs: src build-depends: base , common , reflex-dom , static , obelisk-executable-config , text -- custom package , reflex , mtl , transformers , aeson , filepath , lens , bytestring , containers , email-validate , uri-bytestring , ref-tf , exception-transformers , dependent-sum , dependent-map , ghcjs-dom --, ghcjs-base , jsaddle , reflex-dom-nested-routing , reflex-dom-storage
exposed-modules: Frontend other-modules: UI , Util.Button , Util.Collection , Util.Bulma.Components.Navbar , Web , Web.Aktivitas , Web.Footer , Web.Navigation , Web.Landing , Web.Media , Web.Media.Berita , Web.Media.Publikasi , Web.Media.SiaranPers , Web.Tentang , Web.Tentang.DKM , Web.Tentang.Galeri , Web.Tentang.LaporanTahunan , Web.Tentang.Sejarah , Web.Tentang.VisiMisi ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -fwarn-tabs -funbox-strict-fields -O2 -fprof-auto-calls -fexpose-all-unfoldings if os(darwin) ghc-options: -dynamic if impl(ghcjs -any) ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -fwarn-tabs -funbox-strict-fields -O2 -fprof-auto-calls -fexpose-all-unfoldings -dedupe cpp-options: -DGHCJS -DGHCJS_GC_INTERVAL=60000 -DGHCJS_BROWSER
executable frontend main-is: main.hs hs-source-dirs: exe build-depends: base , reflex-dom , frontend
--TODO: Make these ghc-options optional ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -fwarn-tabs -funbox-strict-fields -O2 -fprof-auto-calls -fexpose-all-unfoldings if os(darwin) ghc-options: -dynamic if impl(ghcjs -any) ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind -fwarn-tabs -funbox-strict-fields -O2 -fprof-auto-calls -fexpose-all-unfoldings -dedupe cpp-options: -DGHCJS -DGHCJS_GC_INTERVAL=60000 -DGHCJS_BROWSER
this is my frontend.cabal file.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/obsidiansystems/obelisk/issues/202#issuecomment-413786131, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDhrOuni2LrCOZ7zMuNs7y0_71P-deNks5uRnTSgaJpZM4WA3Uh .
@dalaing i'll look into it (but i think that is the case).
@dalaing thanks, it works. I got some weird output though, but it is solved
I'm running
nix-build -A exe -o result-exe
on my nixos machine (18.03) and get this error: