I’ve tried to learn Haskell several times. But keep failing

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/haskell

Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • OPS - Build and Run Open Source Unikernels
  • Scout APM - Less time debugging, more time building
  • GitHub repo post-rfc

    Blog post previews in need of peer review

  • GitHub repo hoogle

    Haskell API search engine

    At this point you have enough knowledge to begin experimenting with various libraries and APIs. Learn how to use Hoogle, and read as much as you can/want on Haskell Planet

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • GitHub repo envy

    :angry: Environmentally friendly environment variables

    when you already know how to compile and run single-module interactive console programs, it takes about a day to understand basics of Cabal, and about a week to learn about input parsing and output formatting. Do you need CLI args? Use optparse-applicative. Env vars? Use envy. JSON? Use aeson. Don't think about performance and/or API conventions, that's not what you should be concerned of at this point, as you are just learning to compose things together from indivdual parts.

  • GitHub repo scrabble

    An extended tutorial/book on Haskell development. A library for playing Scrabble is developed as well as two clients, one of which is networked and allows for remote one or two-player games over the web. (by jimburton)

    In case it's useful, here's a tutorial of mine that gets into creating a library and a couple of frontends for playing a board game, mostly using "boring Haskell" but exposing some useful patterns and touching on widely used libs for JSON, lenses, websockets etc https://github.com/jimburton/Scrabble

  • GitHub repo ihp

    🔥 The fastest way to build type safe web apps. IHP is a new batteries-included web framework optimized for longterm productivity and programmer happiness

  • GitHub repo Exercism - Scala Exercises

    Crowd-sourced code mentorship. Practice having thoughtful conversations about code.

    Once I had a grasp of the basics I started working through Typeclassopedia. That was pretty helpful. The exercises on exercism.io in the Haskell track were a great way to warm up. I found repositories of Haskell problems and exercises to test my skill against. I took the Glasgow course online.

  • GitHub repo mtl-style-example

    A small example of using mtl style to unit test effectful code

    Personally, it felt to me like, once I really understood monad transformers (https://hackage.haskell.org/package/transformers) and mtl (https://hackage.haskell.org/package/mtl), the reasons they both exist and how they are distinct, how you use them generally and what common patterns are around structuring your app (see e.g. https://github.com/lexi-lambda/mtl-style-example and the 3-layer-cake link someone else provided here for two), a lot of stuff in the ecosystem suddenly became comprehensible and useful to me, in a practical, "real world" way. In fact I'd go so far as to assert that getting comfortable with mtl in particular is the biggest single step you can take to being able to build arbitrarily useful real-world apps that are no longer toys.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • GitHub repo eff

    🚧 a work in progress effect system for Haskell 🚧 (by hasura)

    It means that you can see a type signature like this and you know immediately how it will provide what you want in the context of an arbitrary monad "stack." It means that when you are looking to understand how to use e.g. MegaParsec it doesn't surprise you that the discussion of the relevant monads is the first thing in the tutorial. It means you know why this exists https://hackage.haskell.org/package/scotty-0.12/docs/Web-Scotty-Trans.html and maybe you can even fumble through https://docs.servant.dev/en/stable/cookbook/hoist-server-with-context/HoistServerWithContext.html and use it in your app even if you don't otherwise understand all the type-level magic happening in Servant. You'll also understand what to do if you're faced with a type signature in IO or Maybe or whatever concrete monad and you have to integrate it with a more generalized monad. You may also start to understand why everyone is so interested in effect systems.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts