Skip to content
0:00 / 0:00

#yesod#haskell#persistent

Making a Blog with Yesod

Maximilian Tagher

87 subscribers • 1 video on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Maximilian Tagher, CTO
  • Linked in the descriptionMaxGabriel/YesodScreencastjfeltz/dash-haskell
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Beginner. No background in the topic needed.

25K views11 years ago2 recommendations

Web developmentProgramming languagesHaskellFull-stack frameworks

Maximilian Tagher builds a basic blog from scratch using the Haskell web framework Yesod.

In this screencast, I build a basic blog using the Haskell web framework Yesod. It should be accessible to anyone with basic web development experience; non-Haskell programmers found it understandable. Links: Code written in this screencast: github.com/MaxGabriel/YesodScreencast Yesod quickstart guide: yesodweb.com/page/quickstart Yesod book: yesodweb.com/book Yesod community: yesodweb.com/page/community Tools used: Editor: Sublime Text Plugins: * Yesod package, for syntax highlighting of Hamlet and the routes file packagecontrol.io/packages/Yesod * Sublime Haskell (I use this for syntax highlighting only) packagecontrol.io/packages/SublimeHaskell Shell: fish fishshell.com/ Documentation lookup: Dash kapeli.com/dash I use dash-haskell to generate docsets for Dash, using a cabal sandbox github.com/jfeltz/dash-haskell Screenrecording: ScreenFlow telestream.net/screenflow/overview.htm Special thanks: * The Yesod developers, especially Michael Snoyman, Greg Weber, and Felipe Lessa. * Early reviewers of this screencast, especially Micah Fivecoate An earlier version of this screen was released as a draft youtu.be/RYO_E6RNEEs This video is licensed to the public domain creativecommons.org/publicdomain/zero/1.0/

Why it's here

2 people recommend this

What people say. Recommended as a rare and accessible step-by-step introductory project tutorial for Haskell web development.

Moments people linked to

u/_-dougger-_in r/haskell • Recommends

Where are the simple `Lets build ___ with Haskell` posts? I've seen three such posts so far but they tackle pretty advanced topics: compilers and browser engines. - Build a Haskell compiler - Build a Scheme Compiler - Build a browser If you know of any posts along the lines of lets Build X with Haskell can you please post them. I would personally love to see some simple introductory projects like Todo lists to help bridge the gap between solving programming problems and writing applications. I think it would be a good idea for the material to be current enough to work as well. Here's what's been found so far. **Apps** - How to build a Reddit Slack Bot in Haskell - Rest API in Haskel…

u/MaxGabrielin r/haskell • Recommends

Making a Blog with Yesod

u/roelofwobbenin r/haskell • Mentions

yesod handler problem Helllo, Im following this tutorial ( [video to learn yesod better. but as soon as I do this : ``` getPostNewR :: Handler Html getPostNewR = do defaultLayout $ do $(widgetFile "posts/new")\`\`\` ``` I see this error ``` /home/roelof/blog/src/Handler/PostNew.hs:9:21: error: Empty 'do' block | 9 | defaultLayout $ do \`\`\`\`\` ``` How to solve this ?

u/MaxGabrielin r/haskell • Mentions

On “Tips for finding out what module originates a symbol?”

…a word in Sublime Text, which detects that it's a Haskell file (to constrain search results) and brings up Dash. dash-haskell can build docsets from a cabal sandbox, so when I search for Single I'm getting results from Persistent/Aeson/Text, rather than pipes-concurrency which I don't have installed. Example usage of Dash at 21:55 in this video: link to this video…
7View on Reddit

u/MaxGabrielin r/haskell • Mentions

On “A step by step tutorial for a Web Framework”

There isn't, afaik, a step by step tutorial working through the basics of Yesod. Something like that does sound like a good idea; I also had trouble working through the Yesod book before I had a high-level overview of Yesod and had played around with a scaffolded project a bit. As far as getting a good foundation with Yesod, I made a screencast a couple months ago covering basics like the scaffolding, Hamlet, forms, database queries, routing, etc. You won't have the advantage of being able to follow along and write/paste in the code yourself like with a written tutorial, but it should give you enough knowledge to start coding a small site + be able to read chapters of the Yesod book with…

u/MaxGabrielin r/haskell • Mentions

On “Where are the simple `Lets build ___ with Haskell` posts?”

I made this screencast 2 years ago on making a blog app using Yesod. I still get good feedback on it, though since making it there have been scaffolding changes that will make it not 100% perfect. link to this video

u/Individual_Bad_3183in r/haskell • Mentions

On “First Web App”

link to this video

u/MaxGabrielin r/haskell • Mentions

On “New Student to Haskell”

Just speaking about Yesod specifically, but install instructions are available here: http://www.yesodweb.com/page/quickstart. I also just made a screencast making a small site with Yesod that'd be a good overview if you're interested—the main thing that's not covered is `cabal install yesod-bin` link to this video