News aggregator

www.glc.us.es

del.icio.us/haskell - Thu, 05/02/2013 - 7:24am
Categories: Offsite Blogs

www.glc.us.es

del.icio.us/haskell - Thu, 05/02/2013 - 7:24am
Categories: Offsite Blogs

Yesod Web Framework: Yesod 1.2 released

Planet Haskell - Thu, 05/02/2013 - 7:00am

The Yesod team is pleased to announce the release of Yesod 1.2. You can get it with:

cabal install yesod-platform yesod-bin

The yesod binary is now a separate package which helps manage dependencies, but it does mean you need to remember to install 2 separate packages.

Yesod 1.1 was released in August. Shortly after, Michael started working for FP Complete. A lot has happened since then!

Yesod ecosystemYesod 1.2Representation system

Previously discussed in the post: a better representation system, cleaner internals, and the request local cache. Providing different representation types (JSON or HTML) used to be cumbersome at times, but now it is simple using selectRep.

getResource :: Handler TypedContent getResource = do selectRep $ do provideRep $ [hamlet|<div>|] provideRep $ object ["result" .= "ok"]Request local type-based caching

See the previous mentioned blog post, but you just need to create a newtype wrapper around some data and then you can cache it with the cached function.

Subsite overhaul

Subsites are now just a transformer over a master site

Flexible routing

routing dispatch is more flexible

Better streaming API

streaming has been simplified

Asset pipeline

Yesod has always made it easy to combine dynamic css and javascript since before Rails started using the term asset pipeline. What was missing was the same ease for static assets. Combining static assets is very important for optimal performance by reducing the total number of network requests. You can now easily combine CSS and Javascript with the combineScripts and combineStylesheets helpers. Here is the scaffolding change and you can also look at the haddock documentation.

Better testing

yesod-test was completely overhauled, making it easier to use and providing cleaner integration with hspec.. It is easy in Haskell to just lean against the type system for most things and skip testing, particularly if it is something that is hard to test with QuickCheck. But yesod-test (and wai-test) are there to prevent bugs that the type system cannot.

Even more
  • More efficient session handling.
  • yesod-auth email plugin now supports logging in via username in addition to email address.
  • probably more stuff we forgot to mention
Conclusion & more info

FPComplete's development of the School of Haskell has been great for the Haskell community to keep spreading knowledge. It has also been running with the changes for 1.2 for quite a while which should contribute to making 1.2 a more stable release.

[https://github.com/yesodweb/yesod/wiki/Changelog#yesod-12-not-yet-released](The high-level changelog) has been discussed in high-level here. [https://github.com/yesodweb/yesod/wiki/Detailed-change-list#not-yet-released-yesod-12](Detailed changes are here)

The book documentation for 1.2 has been started, but still needs more work to get fully up to date.

Most of the changes to upgrade your site to 1.2 should be fairly mechanical. I started a wiki page for the upgrade. If you have any issues, please note them there or on the mail list.

We hope you enjoy using Yesod 1.2

Categories: Offsite Blogs

Backward compatibility

haskell-cafe - Thu, 05/02/2013 - 6:27am
Hi All, Please don't interpret this as a rant: I'm just feeling a bit disappointed about probably having to give up on Haskell. Let's face it: this decision to change the default syntax in GHC7 means that right now Haskell looks about as stable as Ruby on Rails. I just tried to use Flippi. It broke because of the syntax change so I tried WASH. I couldn't even install it because of the syntax change. I persisted for a while but gave up because getPackageId doesn't exist in any form at all anymore. This was only the install script: what would WASH itself have in store for me to get my brain around? What are my choices here: 1) Revert to GHC6 or put pragmas and compiler switches everywhere, switch 2010 off globally with cabal or even make an alias of ghc: That means I'll gradually clash with people who decide ... 2) Convert all my code and a lot of other peoples' to the new syntax, thereby exacerbating the problem that ruled out 1. Either way, we're looking at a long period during which a large portion of
Categories: Offsite Discussion

Haskell Weekly News: Issue 266

General haskell list - Thu, 05/02/2013 - 5:03am
Welcome to issue 266 of the HWN, an issue covering crowd-sourced bits of information about Haskell from around the web. This issue covers the week of April 7 to 27, 2013. Quotes of the Week * hpc: the dirty secret of haskell programmers is that their power does not come from their PhD, but their bowtie * tibbe: I think I have implemented a reverse state monad by mistake. The numbers suggest I'm getting the values tunneled back from the future. :/ * SaulGorn: A formalist is one who cannot understand a theory unless it is meaningless. * cmccann: laziness by default is a shortcoming. eagerness by default is a bigger shortcoming. * monochrom: #haskell-blah has brilliant people too. for example me. * limo: OK, guys was nice meeting you and now I'm a proud owner of a GHCi icon on my desktop * otters: lens law #1: the implementation must be shorter than the type * MartinDeMello: Any sufficiently well-commented Lisp program contains an ML progr
Categories: Incoming News

www.glc.us.es

del.icio.us/haskell - Thu, 05/02/2013 - 2:48am
Categories: Offsite Blogs

steve-yegge.blogspot.fr

del.icio.us/haskell - Thu, 05/02/2013 - 2:32am
Categories: Offsite Blogs

steve-yegge.blogspot.fr

del.icio.us/haskell - Thu, 05/02/2013 - 2:32am
Categories: Offsite Blogs

lpuppet.banquise.net

del.icio.us/haskell - Thu, 05/02/2013 - 2:32am
Categories: Offsite Blogs

lpuppet.banquise.net

del.icio.us/haskell - Thu, 05/02/2013 - 2:32am
Categories: Offsite Blogs

lpuppet.banquise.net

del.icio.us/haskell - Thu, 05/02/2013 - 2:32am
Categories: Offsite Blogs

lpuppet.banquise.net

del.icio.us/haskell - Thu, 05/02/2013 - 2:32am
Categories: Offsite Blogs

lpuppet.banquise.net

del.icio.us/haskell - Thu, 05/02/2013 - 2:32am
Categories: Offsite Blogs

lpuppet.banquise.net

del.icio.us/haskell - Thu, 05/02/2013 - 2:32am
Categories: Offsite Blogs

lpuppet.banquise.net

del.icio.us/haskell - Thu, 05/02/2013 - 2:32am
Categories: Offsite Blogs

lpuppet.banquise.net

del.icio.us/haskell - Thu, 05/02/2013 - 2:32am
Categories: Offsite Blogs

Simplifying Core pretty-printing via GHC API?

glasgow-user - Wed, 05/01/2013 - 10:13pm
I'm using the GHC API to compile Haskell source code to Core. I'd like to pretty-print the result with the sort of simplifications I get with -dsuppress-type-applications, -dsuppress-uniques, etc (used in combination with -ddump-simpl on ghc's command line). How can I set these options via the GHC API? Has the answer changed since 7.4.1 (which I'm currently using)? Thanks. - Conal _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users< at >haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Categories: Offsite Discussion