Received: by 10.58.19.99 with SMTP id d3mr671003vee.32.1348030967114; Tue, 18 Sep 2012 22:02:47 -0700 (PDT) X-BeenThere: snap_framework@googlegroups.com Received: by 10.52.36.237 with SMTP id t13ls542382vdj.3.gmail; Tue, 18 Sep 2012 22:02:46 -0700 (PDT) Received: by 10.58.102.72 with SMTP id fm8mr677852veb.10.1348030966559; Tue, 18 Sep 2012 22:02:46 -0700 (PDT) Received: by 10.58.102.72 with SMTP id fm8mr677849veb.10.1348030966276; Tue, 18 Sep 2012 22:02:46 -0700 (PDT) Return-Path: Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by gmr-mx.google.com with ESMTPS id ef10si97760vdb.3.2012.09.18.22.02.46 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Sep 2012 22:02:46 -0700 (PDT) Received-SPF: pass (google.com: domain of mightyb...@gmail.com designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of mightyb...@gmail.com designates 209.85.220.172 as permitted sender) smtp.mail=mightyb...@gmail.com; dkim=pass header...@gmail.com Received: by mail-vc0-f172.google.com with SMTP id fo14so812433vcb.3 for ; Tue, 18 Sep 2012 22:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=q7BA8gxYk+MLvtHzdSfL+Bk8gtFgwM5TBw2Q8AKTEIQ=; b=zmCUhancAwE7tTxVJU7XNxvM6pdf5HprXvfjScKwdwZgKOwO6jbaKwdtv5lv814H1Z 9s+dReijzZ0juzk92zZ8C+vYmA5hw9PXo1p2NF5V9/MZo7hkYVBbdelSvOqgE4M8ddJ1 nZ6aeFCjMVIyAjlmUzY542gV8PgRjfBTP+EPzg6kqhJXDyXAtIvQPjnGrq4AB7m3VLqw GLB8gksnv5aP60HAeLdCqy2f3ztV1gfgnCyX3OQXnUfDC8AzdD6SoGf8DeBEt5rc8EiC PBG6A7w4HwLJdo8pnd3tqp3K4UUswXZsQ8BWJbNGvLlrLehIV4bkThSpUx99XWGYalKA il9A== MIME-Version: 1.0 Received: by 10.52.180.134 with SMTP id do6mr1089702vdc.30.1348030966155; Tue, 18 Sep 2012 22:02:46 -0700 (PDT) Received: by 10.58.86.33 with HTTP; Tue, 18 Sep 2012 22:02:46 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Sep 2012 01:02:46 -0400 Message-ID: Subject: Re: [snap] can't install snaplet-hdbc, duplicate type signature From: MightyByte To: snap_framework@googlegroups.com Content-Type: multipart/alternative; boundary=bcaec517a9c4e24b3d04ca06ea1c --bcaec517a9c4e24b3d04ca06ea1c Content-Type: text/plain; charset=UTF-8 This is caused by a problem in data-lens-template-2.1.6. You need to upgrade to the recently released 2.1.7. The following commands should correct the problem: ghc-pkg unregister data-lens-template --force ghc-pkg unregister snap --force cabal update cabal install snaplet-hdbc On Tue, Sep 18, 2012 at 10:17 PM, Chris Kahn wrote: > Hey all, > > I'm relatively new to Haskell, been learning for the last 6 months or so > and had a class in university that covered the basics. So I decided I'd > give the Snap framework a spin on my machine. It's a relatively new machine > so this is a fresh install of Haskell (GHC 7.4.1) on Ubuntu 12.04. I > installed Snap, created a skeleton project etc, and then went and did cabal > install snaplet-hdbc and it started compiling things and loading > packages, and finally spat out this error: > > src/Snap/Snaplet/Internal/Types.hs:82:1: > Duplicate type signature: > src/Snap/Snaplet/Internal/Types.hs:82:1-47: snapletConfig :: > Lens (Snaplet a) > SnapletConfig > src/Snap/Snaplet/Internal/Types.hs:76:1-39: snapletConfig :: > forall s_aySX. > Lens (Snaplet s_aySX) > SnapletConfig > > src/Snap/Snaplet/Internal/Types.hs:87:1: > Duplicate type signature: > src/Snap/Snaplet/Internal/Types.hs:87:1-34: snapletValue :: > Lens (Snaplet a) a > src/Snap/Snaplet/Internal/Types.hs:76:1-39: snapletValue :: > forall s_aySX. Lens > (Snaplet s_aySX) s_aySX > cabal: Error: some packages failed to install: > snap-0.9.1.1 failed during the building phase. The exception was: > ExitFailure 1 > > Is this because of something I've configured wrong, or is it a bug in > Snap? Can anybody help? > > Cheers! > Chris > > -- > > > > --bcaec517a9c4e24b3d04ca06ea1c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This is caused by a problem in data-lens-template-2.1.6. =C2=A0You need to = upgrade to the recently released 2.1.7. =C2=A0The following commands should= correct the problem:

ghc-pkg unregister data-lens-templ= ate --force
ghc-pkg unregister snap --force
cabal update
cabal= install snaplet-hdbc

On Tue, Sep 18, 201= 2 at 10:17 PM, Chris Kahn <christopher.k...@gmail.com> wrote:
Hey all,

I'm relative= ly new to Haskell, been learning for the last 6 months or so and had a clas= s in university that covered the basics.=C2=A0So I decided I'd give the= Snap framework a spin on my machine. It's a relatively new machine so = this is a fresh install of Haskell (GHC 7.4.1) on Ubuntu 12.04. I installed= Snap, created a skeleton project etc, and then went and did cabal install snaplet-hdbc and it started co= mpiling things and loading packages, and finally spat out this error:

src/Snap/Sna= plet/Internal/Types.hs:82:1:
=C2=A0 =C2=A0 Duplicate type signature:
=C2=A0 =C2=A0 =C2=A0 src/Snap/Snaplet/Internal= /Types.hs:82:1-47: snapletConfig ::
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 Lens (Snaplet a) SnapletConfig
=C2=A0 =C2=A0 =C2=A0 src/Snap/Snaplet/Internal/Types.hs:76:1= -39: snapletConfig ::
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 forall s_aySX.
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Lens (Snaplet s_aySX) SnapletConfig

src/Snap/Snaplet/Internal/Types.hs:87:1:=
=C2=A0 =C2=A0 Duplicate ty= pe signature:
=C2=A0 =C2=A0 =C2=A0 src/Snap/Sn= aplet/Internal/Types.hs:87:1-34: snapletValue ::
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Lens (Snaple= t a) a
=C2=A0 =C2=A0 =C2=A0 src/Snap/Sn= aplet/Internal/Types.hs:76:1-39: snapletValue ::
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 forall s_ayS= X. Lens (Snaplet s_aySX) s_aySX
cabal: Error: some packages fail= ed to install:
snap-= 0.9.1.1 failed during the building phase. The exception was:
ExitFailure 1
=
Is this because of something I've configured wrong, or i= s it a bug in Snap? Can anybody help?

Cheers!
Chris

--
=C2=A0
=C2=A0
=C2=A0

--bcaec517a9c4e24b3d04ca06ea1c--