[web-devel] Yesod 0.8 migration guide (release candidate?)
ccasin at cis.upenn.edu
Fri Apr 15 16:46:07 CEST 2011
The scaffolding app in yackage produces code with a type error. Running
"yesod" for a new app with foundation type "Foo" and then building it
(via cabal configure && cabal build) reports:
Couldn't match expected type
with actual type `T.Text'
In the second argument of `joinPath', namely `Settings.staticroot'
In the first argument of `uncurry', namely
`(joinPath a Settings.staticroot)'
In the expression: uncurry (joinPath a Settings.staticroot)
On Fri, Apr 15, 2011 at 5:52 AM, Michael Snoyman <michael at snoyman.com> wrote:
> Hi all,
> I've put up the Yesod 0.8 migration guide. I'm planning on releasing this
> version of Yesod tomorrow night (Saturday, UTC+3). Now's your chance to try
> and find those last few bugs before release.
> I have one idea that I wanted to bounce around. The biggest thing in this
> release is the transition to Text. Overall, this is a good move, but it's
> just a little bit annoying to lose out on convenience functions like concat
> and ++. As a convenience, I'm considering exporting the following from the
> Yesod module:
> mconcat (from Data.Monoid)
> <> = mappend (from Data.Monoid)
> Text (the strict version, from Data.Text)
> I know there was some talk a while ago of providing a <> operator in base,
> but I haven't heard anything about it since. I think this could be a very
> nice convenience, and would appreciate feedback.
>  http://www.yesodweb.com/book/migrate7to8
> web-devel mailing list
> web-devel at haskell.org
More information about the web-devel