Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: [web-devel] yesod dependency hell (Michael Litchard)
2. Re: [web-devel] yesod dependency hell (Michael Litchard)
3. Re: Homework help - calculator function (Jakub Oboza)
----------------------------------------------------------------------
Message: 1
Date: Wed, 22 Jun 2011 13:50:24 -0700
From: Michael Litchard <[email protected]>
Subject: Re: [Haskell-beginners] [web-devel] yesod dependency hell
To: Michael Snoyman <[email protected]>
Cc: [email protected], web-devel <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
For further info, the build process stops after the warning below.
Here is my .cabal file. I would appreciate direction in how to resolve
this problem.
name: Aframe
version: 0.0.1
license: BSD3
license-file: LICENSE
author: Michael Litchard
maintainer: Michael Litchard
synopsis: The greatest Yesod web application ever.
description: "Looks like your aframe is falling out. Cost you a million do
llars. And that's the labor"
category: Web
stability: Experimental
cabal-version: >= 1.6
build-type: Simple
homepage: http://Aframe.yesodweb.com/
Flag production
Description: Build the production executable.
Default: False
Flag devel
Description: Build for use with "yesod devel"
Default: False
library
if flag(devel)
Buildable: True
else
Buildable: False
exposed-modules: Controller
hs-source-dirs: ., config
other-modules: Aframe
Settings
StaticFiles
Handler.Root
Handler.SSLvpn
executable Aframe
if flag(devel)
Buildable: False
if flag(production)
cpp-options: -DPRODUCTION
ghc-options: -Wall -threaded -O2
else
ghc-options: -Wall -threaded
main-is: config/Aframe.hs
hs-source-dirs: ., config
build-depends: base >= 4 && < 5
, yesod-core >= 0.8 && < 0.9
, yesod
, yesod-static
, yesod-form >= 0.2
, wai-extra
, directory
, bytestring
, text
, template-haskell
, hamlet
, web-routes
, transformers
, wai
, warp
, blaze-builder
ghc-options: -Wall -threaded
On Wed, Jun 22, 2011 at 1:30 PM, Michael Litchard <[email protected]> wrote:
> Configuring Aframe-0.0.1...
> Warning: This package indirectly depends on multiple versions of the same
> package. This is highly likely to cause a compile failure.
> package yesod-auth-0.4.0.2 requires yesod-form-0.1.0.1
> package yesod-0.8.2.1 requires yesod-form-0.1.0.1
> package Aframe-0.0.1 requires yesod-form-0.2.0
>
> I specified in Aframe.cabal yesod-form 0.2.0. The above warning is
> what I was looking to avoid. What is the solution to this problem? I
> could not find an obvious solution in yesodwiki.cabal, even though I
> see it's doing something similar to what I want. How did you deal with
> the above warning message?
>
> On Wed, Jun 22, 2011 at 12:32 PM, Michael Snoyman <[email protected]> wrote:
>> Have a look at the yesodwiki[1]; basically, you can't use the yesod
>> package itself, only the subpackages. This is by design so that a
>> single Yesod release will keep API stability, while users can still
>> experiment with newer versions of underlying packages.
>>
>> Michael
>>
>> [1] https://github.com/snoyberg/yesodwiki/blob/master/yesodwiki.cabal
>>
>> On Wed, Jun 22, 2011 at 10:29 PM, Michael Litchard <[email protected]>
>> wrote:
>>> I need to use yesod-form 0.2.0. The problem is that the yesod package,
>>> and the yesod-auth package expect yesod-form to be 0.1.0*
>>> I tried changing the .cabal files but that breaks in ways that makes
>>> me think the fix is not so simple. How do I go about being able to use
>>> yesod-form 0.2.0
>>>
>>> _______________________________________________
>>> web-devel mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/web-devel
>>>
>>
>
------------------------------
Message: 2
Date: Wed, 22 Jun 2011 13:50:29 -0700
From: Michael Litchard <[email protected]>
Subject: Re: [Haskell-beginners] [web-devel] yesod dependency hell
To: Thomas Hartman <[email protected]>
Cc: [email protected], web-devel <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
My thinking is that this problem comes up anytime someone wants to
play around with experimental code. As evidenced by the
yesodwiki.cabal file, I think there's a more straightforward solution.
I'm just not seeing it.
On Wed, Jun 22, 2011 at 1:46 PM, Thomas Hartman
<[email protected]> wrote:
> one idea: move .ghc and .cabal to temp directory.
>
> start over with a clean slate.
>
> On Wed, Jun 22, 2011 at 1:30 PM, Michael Litchard <[email protected]> wrote:
>> Configuring Aframe-0.0.1...
>> Warning: This package indirectly depends on multiple versions of the same
>> package. This is highly likely to cause a compile failure.
>> package yesod-auth-0.4.0.2 requires yesod-form-0.1.0.1
>> package yesod-0.8.2.1 requires yesod-form-0.1.0.1
>> package Aframe-0.0.1 requires yesod-form-0.2.0
>>
>> I specified in Aframe.cabal yesod-form 0.2.0. The above warning is
>> what I was looking to avoid. What is the solution to this problem? I
>> could not find an obvious solution in yesodwiki.cabal, even though I
>> see it's doing something similar to what I want. How did you deal with
>> the above warning message?
>>
>> On Wed, Jun 22, 2011 at 12:32 PM, Michael Snoyman <[email protected]>
>> wrote:
>>> Have a look at the yesodwiki[1]; basically, you can't use the yesod
>>> package itself, only the subpackages. This is by design so that a
>>> single Yesod release will keep API stability, while users can still
>>> experiment with newer versions of underlying packages.
>>>
>>> Michael
>>>
>>> [1] https://github.com/snoyberg/yesodwiki/blob/master/yesodwiki.cabal
>>>
>>> On Wed, Jun 22, 2011 at 10:29 PM, Michael Litchard <[email protected]>
>>> wrote:
>>>> I need to use yesod-form 0.2.0. The problem is that the yesod package,
>>>> and the yesod-auth package expect yesod-form to be 0.1.0*
>>>> I tried changing the .cabal files but that breaks in ways that makes
>>>> me think the fix is not so simple. How do I go about being able to use
>>>> yesod-form 0.2.0
>>>>
>>>> _______________________________________________
>>>> web-devel mailing list
>>>> [email protected]
>>>> http://www.haskell.org/mailman/listinfo/web-devel
>>>>
>>>
>>
>> _______________________________________________
>> web-devel mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/web-devel
>>
>
------------------------------
Message: 3
Date: Wed, 22 Jun 2011 22:42:51 +0100
From: Jakub Oboza <[email protected]>
Subject: Re: [Haskell-beginners] Homework help - calculator function
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="windows-1250"
Hi
Basicly this tutorial explains all things related to your question
http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours
Also book Structure And Interpretation of Computer Programs shows some related
stuff. Hope this will help you a bit.
Kind regards Kuba
Wiadomo?? napisana przez SM Design w dniu 2011-06-22, o godz. 21:38:
> I have a homework which is very important to be done but I can't complete
> the task at all. The program i should write is:
>
> Make calculator-function in Haskell.
> The function argument is a list of strings and also form such list, as each
> string of the argument made definite action.
> ? If the string has the form of an arithmetic expression - calculate this
> expression. The string result becomes part of the list-result. If the
> expression contains a variable which is not assigned value, the result is
> displayed "undefined".
> ? If the string has the form
> Name =
> value calculated from the last expression is assigned to the variable with
> the corresponding name in the list, and in the result list is formed a string
> with type
> name = ...
> where the site stands blank corresponding value.
> If there is not a calculated expression to be assigned to form a string "no
> value".
> ? If the string is non-blank, but there is a species different from the above
> two case, form the string "error".
> ? If the string is empty, incl. when it contains only spaces, in the result
> there is not form a string.
> Expressions consist of integers without sign variables, operations +
> (Addition), - (subtraction), * (multiplication) and / (divide) and
> parentheses. Where no brackets, the operations are performed from left to
> right, but * and / precede the + and -. Implementation of any operation gives
> integer; in the division rejected the fractional part, if any.
> Variables have names of one letter - from the Latin small letter. In the
> beginning, end or between the elements of each row can have spaces - they are
> irrelevant to its correctness.
> Example: the list-argument
> ["3 +7 / 2" "2 + x", "= s", "2 * s +4", "", "2 + +4 / 5]
> function should provide a result-list
> ["6", "undefined", "s = 6", "16", "error"].
>
>
> Thank you an advance!
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110622/eaa5f8a1/attachment.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 36, Issue 54
*****************************************