Message from discussion
can't install snaplet-hdbc, duplicate type signature
Date: Wed, 19 Sep 2012 19:38:40 -0700 (PDT)
From: Chris Kahn <christopher.k...@gmail.com>
To: snap_framework@googlegroups.com
Message-Id: <5713a214-3ca1-4890-bf49-3f1c1101a766@googlegroups.com>
In-Reply-To: <CANCg-8ZY5hv1hGe4dii-CpcWvVbD3AWCOjuBdUDgZS=ghp9JYg@mail.gmail.com>
References: <cf2648ce-8351-408b-b04e-fc067e505c26@googlegroups.com>
<CANCg-8ZY5hv1hGe4dii-CpcWvVbD3AWCOjuBdUDgZS=ghp9JYg@mail.gmail.com>
Subject: Re: [snap] can't install snaplet-hdbc, duplicate type signature
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_490_7143735.1348108720949"
------=_Part_490_7143735.1348108720949
Content-Type: multipart/alternative;
boundary="----=_Part_491_7003595.1348108720949"
------=_Part_491_7003595.1348108720949
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Success! That did it. Thanks.
On Wednesday, 19 September 2012 01:02:47 UTC-4, mightybyte wrote:
>
> 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 <christop...@gmail.com<javascript:>
> > 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
>>
>> --
>>
>>
>>
>>
>
>
------=_Part_491_7003595.1348108720949
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
Success! That did it. Thanks.<br><br>On Wednesday, 19 September 2012 01:02:47 UTC-4, mightybyte wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">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:<div><br></div><div>ghc-pkg unregister data-lens-template --force</div>
<div>ghc-pkg unregister snap --force</div><div>cabal update</div><div>cabal install snaplet-hdbc<br><br><div class="gmail_quote">On Tue, Sep 18, 2012 at 10:17 PM, Chris Kahn <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="KclIFwauv8EJ">christop...@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey all,<div><br></div><div>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 <font face="courier new, monospace">cabal install snaplet-hdbc</font> and it started compiling things and loading packages, and finally spat out this error:</div>
<div><br></div><div><div><font face="courier new, monospace">src/Snap/Snaplet/Internal/<wbr>Types.hs:82:1:</font></div><div><font face="courier new, monospace"> Duplicate type signature:</font></div><div><font face="courier new, monospace"> src/Snap/Snaplet/Internal/<wbr>Types.hs:82:1-47: snapletConfig ::</font></div>
<div><font face="courier new, monospace"> Lens (Snaplet a) SnapletConfig</font></div><div><font face="courier new, monospace"> src/Snap/Snaplet/Internal/<wbr>Types.hs:76:1-39: snapletConfig ::</font></div>
<div><font face="courier new, monospace"> forall s_aySX.</font></div><div><font face="courier new, monospace"> Lens (Snaplet s_aySX) SnapletConfig</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">src/Snap/Snaplet/Internal/<wbr>Types.hs:87:1:</font></div><div><font face="courier new, monospace"> Duplicate type signature:</font></div>
<div><font face="courier new, monospace"> src/Snap/Snaplet/Internal/<wbr>Types.hs:87:1-34: snapletValue ::</font></div><div><font face="courier new, monospace"> Lens (Snaplet a) a</font></div>
<div><font face="courier new, monospace"> src/Snap/Snaplet/Internal/<wbr>Types.hs:76:1-39: snapletValue ::</font></div><div><font face="courier new, monospace"> forall s_aySX. Lens (Snaplet s_aySX) s_aySX</font></div>
<div><font face="courier new, monospace">cabal: Error: some packages failed to install:</font></div><div><font face="courier new, monospace">snap-0.9.1.1 failed during the building phase. The exception was:</font></div><div>
<font face="courier new, monospace">ExitFailure 1</font></div></div><div><br></div><div>Is this because of something I've configured wrong, or is it a bug in Snap? Can anybody help?</div><div><br></div><div>Cheers!</div>
<span><font color="#888888"><div>Chris</div>
<p></p>
-- <br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>
</blockquote>
------=_Part_491_7003595.1348108720949--
------=_Part_490_7143735.1348108720949--