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?