Compile error while starting Happs

1 view
Skip to first unread message

GG

unread,
Dec 7, 2008, 4:22:50 AM12/7/08
to HAppS

After a fresh pull of the src using darcs, I run:

sp ghc -isrc src/Main.hs --make --run --http-port=5000

This seems to be doing some compiling for a while and then fails. The
error message is:


/Users/gg/.SearchPath/darcs_get_--partial_--tag=0.9.2_http_happs.org-
repos-HAppS-Util_util@_echo_hello_world/util/src/HAppS/Util/
Concurrent.hs:29:20:
Ambiguous type variable `e' in the constraint:
`Exception e'
arising from a use of `catch'
at /Users/gavares/.SearchPath/darcs_get_--
partial_--tag=0.9.2_http_happs.org-repos-HAppS-
Util_util@_echo_hello_world/util/src/HAppS/Util/Concurrent.hs:(29,20)-
(30,78)
Probable fix: add a type signature that fixes these type variable
(s)



I get the same error using both the precompiled GHC from the GHC
website and using the locally compiled GHC install via macports.

Intel Mac
OS X Leopard
GHC v 6.10

Lemmih

unread,
Dec 7, 2008, 4:28:28 AM12/7/08
to HA...@googlegroups.com

You need HAppS-0.9.3. You can get it from here
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-State.
I recommend using 'cabal-install' to fetch and install all the dependencies.

--
Cheers,
Lemmih

GG

unread,
Dec 7, 2008, 4:52:53 AM12/7/08
to HAppS
Thanks for the quick reply.

I ran:

cabal install HAppS-State

which seems to have pulled down and installed, among other things,
HAppS-State-0.9.3. Still getting the same error message.

On Dec 7, 1:28 am, Lemmih <lem...@gmail.com> wrote:
> On Sun, Dec 7, 2008 at 10:22 AM, GG <gava...@gmail.com> wrote:
>
> > After a fresh pull of the src using darcs,  I run:
>
> >    sp ghc -isrc src/Main.hs --make --run --http-port=5000
>
> > This seems to be doing some compiling for a while and then fails.  The
> > error message is:
>
> > /Users/gg/.SearchPath/darcs_get_--partial_--tag=0.9.2_http_happs.org-
> > repos-HAppS-Util_util@_echo_hello_world/util/src/HAppS/Util/
> > Concurrent.hs:29:20:
> >    Ambiguous type variable `e' in the constraint:
> >      `Exception e'
> >        arising from a use of `catch'
> >                     at /Users/gavares/.SearchPath/darcs_get_--
> > partial_--tag=0.9.2_http_happs.org-repos-HAppS-
> > Util_util@_echo_hello_world/util/src/HAppS/Util/Concurrent.hs:(29,20)-
> > (30,78)
> >    Probable fix: add a type signature that fixes these type variable
> > (s)
>
> > I get the same error using both the precompiled GHC from the GHC
> > website and using the locally compiled GHC install via macports.
>
> > Intel Mac
> > OS X Leopard
> > GHC v 6.10
>
> You need HAppS-0.9.3. You can get it from herehttp://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-State.

Lemmih

unread,
Dec 7, 2008, 5:04:43 AM12/7/08
to HA...@googlegroups.com
On Sun, Dec 7, 2008 at 10:52 AM, GG <gav...@gmail.com> wrote:
>
> Thanks for the quick reply.
>
> I ran:
>
> cabal install HAppS-State
>
> which seems to have pulled down and installed, among other things,
> HAppS-State-0.9.3. Still getting the same error message.

Just compile/interpret your program as you normally would without sp.

--
Cheers,
Lemmih

Reply all
Reply to author
Forward
0 new messages