hidden package problem

20 views
Skip to first unread message

CCH C

unread,
Mar 22, 2012, 5:11:10 AM3/22/12
to snap_fr...@googlegroups.com
hi, I using process package, I specify it in cabal file, and succeed compiling. However, when running and responding to a request, an error occurs, basically saying process is a hidden package.

How could it be that compiling succeeds and running fails?


shahn

unread,
Mar 22, 2012, 8:10:08 AM3/22/12
to snap_fr...@googlegroups.com
Perhaps you are running an old version of your application that is installed in $HOME/.cabal/bin?
In that case, try 'cabal install' and restarting your snap application.

If you change your cabal file (or src/Main.hs) you have to reinstall and restart. Snap cannot reload changes to these files.

HTH,
Sönke

Dmitry Dzhus

unread,
Mar 22, 2012, 8:14:31 AM3/22/12
to snap_fr...@googlegroups.com
22.03.2012, 16:10, "shahn" <soenk...@gmail.com>:

> Perhaps you are running an old version of your application that is installed in $HOME/.cabal/bin?
> In that case, try 'cabal install' and restarting your snap application.

Use `cabal-dev`, it's a handy tool for isolated builds and makes it
easier to add development versions of dependencies to packages list
local to your project, not ~/.cabal.

Chris Smith

unread,
Mar 22, 2012, 9:41:28 AM3/22/12
to snap_fr...@googlegroups.com

If you're getting an error about a hidden package at runtime, that
means you're likely using the development loader. The development
loader uses hint to build your code at runtime, and rebuild it when
you change the source code. I'm not familiar with the development
loader, or if it would work with cabal-dev.

--
Chris Smith

CCH C

unread,
Mar 22, 2012, 10:06:54 AM3/22/12
to snap_fr...@googlegroups.com
hi all, I use cabal install, no development, and do reinstall. 

I finally copy the source code to another machine to compile and run, and it succeeds. 

Is it possible due to incorrect dependency relation? 
Reply all
Reply to author
Forward
0 new messages