[Haskell-beginners] scotty installation error

Ovidiu D ovidiudeac
Tue Oct 1 07:17:53 UTC 2013


$ cabal install scotty

...and it fixed the problem. It asked for reinstallation of a lot of
packages but in the end it seems ok.

Thanks!


On Tue, Oct 1, 2013 at 8:37 AM, David Johnson <djohnson.m at gmail.com> wrote:

> Scotty 0.2.0 is quite old. Scotty 0.5.0 is out. Just try "cabal install
> scotty"
>
>
> On Tue, Oct 1, 2013 at 12:07 AM, Ovidiu D <ovidiudeac at gmail.com> wrote:
>
>> The ghc and cabal versions are:
>> $ ghc --version
>> The Glorious Glasgow Haskell Compilation System, version 7.4.2
>> $ cabal --version
>> cabal-install version 1.18.0.1
>> using version 1.18.1 of the Cabal library
>>
>>
>> On Tue, Oct 1, 2013 at 2:32 AM, Ovidiu D <ovidiudeac at gmail.com> wrote:
>>
>>> I'm trying to write a small web application starting from here:
>>> http://adit.io/posts/2013-04-15-making-a-website-with-haskell.html
>>>
>>> Resolving dependencies...
>>> Configuring scotty-0.2.0...
>>> Building scotty-0.2.0...
>>> Preprocessing library scotty-0.2.0...
>>>
>>> Web/Scotty.hs:35:8:
>>>     Could not find module `Control.Monad.Trans.Resource'
>>>     It is a member of the hidden package `resourcet-0.4.8'.
>>>     Perhaps you need to add `resourcet' to the build-depends in your
>>> .cabal file.
>>>     Use -v to see a list of the files searched for.
>>> Failed to install scotty-0.2.0
>>>
>>> My build-depends clause is the following:
>>>
>>>   build-depends:       base ==4.5.*
>>>                      , wai ==1.3.*
>>>                      , warp ==1.3.*
>>>                      , http-types ==0.7.*
>>>                      , resourcet
>>>                      , scotty
>>>                      , text
>>>                      , bytestring
>>>                      , blaze-html
>>>                      , persistent
>>>                      , persistent-template
>>>                      , persistent-sqlite
>>>                      , persistent-postgresql
>>>                      , heroku
>>>                      , transformers ==0.3.0.0
>>>                      , wai-middleware-static ==0.3.2
>>>                      , wai-extra
>>>                      , time
>>>                      , monad-logger ==0.2.4
>>>
>>>
>>>
>>> Any idea what is wrong with it?
>>>
>>> I also tried to use the dependencies list without any versions and I get the same error
>>>
>>> Thanks
>>> ovidiu
>>>
>>>
>>>
>>
>> _______________________________________________
>> Beginners mailing list
>> Beginners at haskell.org
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>
>
> --
> Cell: 1.630.740.8204
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20131001/07aea021/attachment.html>



More information about the Beginners mailing list