
Hi all, I'm upgrading UrbanListing to Yesod 5.0 from 4.0 after a long hiatus. So I'm feeling a bit rusty :) I was wondering about the new signature for StaticRoute:
StaticRoute [String] [(String, String)]
What is the purpose of the second argument [(String),(String)]? I couldn't pick it up from the documentation. Regards, Rehno

It's for representing the query string, read it like this:
[(Key, Value)]
Paolo
On Tue, Sep 14, 2010 at 10:44 AM, Rehno Lindeque
Hi all, I'm upgrading UrbanListing to Yesod 5.0 from 4.0 after a long hiatus. So I'm feeling a bit rusty :)
I was wondering about the new signature for StaticRoute:
StaticRoute [String] [(String, String)]
What is the purpose of the second argument [(String),(String)]? I couldn't pick it up from the documentation.
Regards, Rehno _______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
-- Paolo Losi e-mail: paolo@enuan.com mob: +39 348 7705261 ENUAN Srl Via XX Settembre, 12 - 29100 Piacenza

Ah, I see http://staticroute?key=value. Thank you!
On Tue, Sep 14, 2010 at 10:56 AM, Paolo Losi
It's for representing the query string, read it like this:
[(Key, Value)]
Paolo
On Tue, Sep 14, 2010 at 10:44 AM, Rehno Lindeque
wrote: Hi all, I'm upgrading UrbanListing to Yesod 5.0 from 4.0 after a long hiatus. So I'm feeling a bit rusty :)
I was wondering about the new signature for StaticRoute:
StaticRoute [String] [(String, String)]
What is the purpose of the second argument [(String),(String)]? I couldn't pick it up from the documentation.
Regards, Rehno _______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
-- Paolo Losi e-mail: paolo@enuan.com mob: +39 348 7705261
ENUAN Srl Via XX Settembre, 12 - 29100 Piacenza
participants (2)
-
Paolo Losi
-
Rehno Lindeque