Can't install the happstack tutorial

26 views
Skip to first unread message

MATTHEW MUNZ

unread,
Apr 17, 2010, 4:24:33 PM4/17/10
to ha...@googlegroups.com
Hi all,

I'm having trouble installing the Happstack tutorial. Cabal is complaining about the dependency on QuickCheck [1]. I'm not familiar with cabal -- is there some workaround for this issue?

[1]
MATTHEW-MUNZs-iMac:happstack-tutorial matthewmunz$ cabal install
Resolving dependencies...
cabal: cannot configure Crypto-4.2.1. It requires QuickCheck >=2
For the dependency on QuickCheck >=2 there are these packages: QuickCheck-2.1,
QuickCheck-2.1.0.1, QuickCheck-2.1.0.2 and QuickCheck-2.1.0.3. However none of
them are available.
QuickCheck-2.1 was excluded because happstack-util-0.4.1 requires QuickCheck
<2
QuickCheck-2.1 was excluded because MissingH-1.0.3 requires QuickCheck >=1.0
&& <2.0
QuickCheck-2.1.0.1 was excluded because happstack-util-0.4.1 requires
QuickCheck <2
QuickCheck-2.1.0.1 was excluded because MissingH-1.0.3 requires QuickCheck
>=1.0 && <2.0
QuickCheck-2.1.0.2 was excluded because happstack-util-0.4.1 requires
QuickCheck <2
QuickCheck-2.1.0.2 was excluded because MissingH-1.0.3 requires QuickCheck
>=1.0 && <2.0
QuickCheck-2.1.0.3 was excluded because happstack-util-0.4.1 requires
QuickCheck <2
QuickCheck-2.1.0.3 was excluded because MissingH-1.0.3 requires QuickCheck
>=1.0 && <2.0

- Matt Munz
matt...@mac.com





--
You received this message because you are subscribed to the Google Groups "HAppS" group.
To post to this group, send email to ha...@googlegroups.com.
To unsubscribe from this group, send email to happs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/happs?hl=en.

MATTHEW MUNZ

unread,
Apr 17, 2010, 4:49:48 PM4/17/10
to ha...@googlegroups.com
Hi all,

  I also tried runhaskell Setup configure and I get the following error. [1]

  cabal install happstack also doesn't work.  It fails because hsp won't install, and it looks like hsp won't install because trhsx is missing.  When I tried cabal install trhsx I get another error. [2]

  It seems to be a little difficult to get up and running with Happstack.  Any help would be appreciated.

[1]
MATTHEW-MUNZs-iMac:happstack-tutorial matthewmunz$ runhaskell Setup configure
Configuring happs-tutorial-0.9.4...
Setup: At least the following dependencies are missing:
DebugTraceHelpers >=0.12 && <0.20,
HStringTemplate >=0.6,
HStringTemplateHelpers >=0.0.14 && <1.0.0,
containers >=0.2.0.0 && <0.3.0.0,
happstack ==0.4.*,
happstack-data ==0.4.*,
happstack-helpers ==0.49.*,
happstack-ixset ==0.4.*,
happstack-server ==0.4.*,
happstack-state ==0.4.*,
hscolour ==1.13,
pureMD5 >=1.0.0.0 && <1.1.0.0,
safe ==0.2.*

[2]
MATTHEW-MUNZs-iMac:Applications matthewmunz$ cabal install trhsx
Resolving dependencies...
Downloading trhsx-0.2.2...
Configuring trhsx-0.2.2...
Preprocessing library trhsx-0.2.2...
Building trhsx-0.2.2...
[1 of 1] Compiling Trhsx            ( Trhsx.hs, dist/build/Trhsx.o )

Trhsx.hs:1:0:
    Failed to load interface for `Prelude':
      It is a member of the hidden package `base'.
      Perhaps you need to add `base' to the build-depends in your .cabal file.
      It is a member of the hidden package `base-3.0.3.2'.
      Perhaps you need to add `base' to the build-depends in your .cabal file.
      Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
trhsx-0.2.2 failed during the building phase. The exception was:
ExitFailure 1


  - Matt Munz

    


Gracjan Polak

unread,
Apr 18, 2010, 2:52:03 PM4/18/10
to HAppS


On 17 Kwi, 22:49, MATTHEW MUNZ <mattm...@mac.com> wrote:
>
>   cabal install happstack also doesn't work.  It fails because hsp won't install, and it looks like hsp won't install because trhsx is missing.  

> When I tried cabal install trhsx I get another error. [2]

AFAIK package trhsx is not used anymore. The trhsx program is inside
the hsx package now and this is all you need to install.

Rest of your mail is a mystery to me. For me "cabal install happstack"
just worked. I never tried to use tutorial, because I found simpler
way:

happstack new project myproject

The above shell command should create a standard GuestBook example in
myproject directory. It is quite easy to follow from then on. I
think... :)

--
Gracjan
Reply all
Reply to author
Forward
0 new messages