
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

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
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 web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel

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
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
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 web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel

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
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
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
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 web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel

Hello, It does not seem obvious to me how to perform the equivalent of SELECT * FROM table_name SELECT field1,field2 FROM table_name examples show something of the form rows <- runDB $ selectList [ Field1Eq value1, Field2Gt value2] [ ] 0 0 But I don't see how the name of the table is determined nor how to select additional fields to extract. What would this do? rows <- runDB $ selectList [ ] [ ] 0 0

On Sun, Jun 26, 2011 at 4:20 PM, Eric Schug
Hello, It does not seem obvious to me how to perform the equivalent of
SELECT * FROM table_name SELECT field1,field2 FROM table_name
examples show something of the form rows <- runDB $ selectList [ Field1Eq value1, Field2Gt value2] [ ] 0 0 But I don't see how the name of the table is determined nor how to select additional fields to extract.
What would this do? rows <- runDB $ selectList [ ] [ ] 0 0
There is only one way to find out :) Speaking of which, we should create a `yesod console` command so that it is easy to play around with the database. Basically it connects to the database and gets you ready to run Persistent queries.
______________________________**_________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/**mailman/listinfo/web-develhttp://www.haskell.org/mailman/listinfo/web-devel

forgot to mention that yesod console would use ghci
On Sun, Jun 26, 2011 at 4:55 PM, Greg Weber
On Sun, Jun 26, 2011 at 4:20 PM, Eric Schug
wrote: Hello, It does not seem obvious to me how to perform the equivalent of
SELECT * FROM table_name SELECT field1,field2 FROM table_name
examples show something of the form rows <- runDB $ selectList [ Field1Eq value1, Field2Gt value2] [ ] 0 0 But I don't see how the name of the table is determined nor how to select additional fields to extract.
What would this do? rows <- runDB $ selectList [ ] [ ] 0 0
There is only one way to find out :)
Speaking of which, we should create a `yesod console` command so that it is easy to play around with the database. Basically it connects to the database and gets you ready to run Persistent queries.
______________________________**_________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/**mailman/listinfo/web-develhttp://www.haskell.org/mailman/listinfo/web-devel

We have this command in our testing code. I'm out of town now but will send when I get back tonight.
On Jun 27, 2011, at 6:55, Greg Weber
On Sun, Jun 26, 2011 at 4:20 PM, Eric Schug
wrote: Hello, It does not seem obvious to me how to perform the equivalent of SELECT * FROM table_name SELECT field1,field2 FROM table_name
examples show something of the form rows <- runDB $ selectList [ Field1Eq value1, Field2Gt value2] [ ] 0 0 But I don't see how the name of the table is determined nor how to select additional fields to extract.
What would this do? rows <- runDB $ selectList [ ] [ ] 0 0
There is only one way to find out :)
Speaking of which, we should create a `yesod console` command so that it is easy to play around with the database. Basically it connects to the database and gets you ready to run Persistent queries.
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel

On Mon, Jun 27, 2011 at 2:20 AM, Eric Schug
Hello, It does not seem obvious to me how to perform the equivalent of
SELECT * FROM table_name SELECT field1,field2 FROM table_name
examples show something of the form rows <- runDB $ selectList [ Field1Eq value1, Field2Gt value2] [ ] 0 0 But I don't see how the name of the table is determined nor how to select additional fields to extract.
What would this do? rows <- runDB $ selectList [ ] [ ] 0 0
This all has to do with Haskell type trickery. If GHC can determine the expected type of rows based on how you use it, it will work. If it can't, it will complain about ambiguous types. If you want to select from the Person entity, you can do something like: rows <- runDB $ selectList ([] :: [Filter Person]) [] 0 0 Michael
participants (5)
-
Eric Schug
-
Greg Weber
-
Max Cantor
-
Michael Litchard
-
Michael Snoyman