Why is the debugger so bad in Haskell? (or is it just me)

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

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. fused-effects-system

    Profiling for Haskell programs without recompiling, via fused-effects.

    Until some enterprising PhD student comes along and takes a whack at this problem, I debug my programs by: a) using pure functions whenever possible—I am bad at keeping track of imperative execution in my head, and as such pure functions help me avoid the associated mistakes, and what mistakes I do make are more apparent visually; b) using hedgehog or QuickCheck aggressively, so as to verify that the assumptions I’m making are correct; c) when writing imperative/effectful computation, building in logging from the get-go—I am a fused-effects user, so I use the built-in Trace effect as well as fused-effects-profile to yield information about what’s actually being executed.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. DocTest

    An implementation of Python's doctest for Haskell (by sol)

    Try to restrict your types even on sub functions (inside where), use testing, break down your code to the most atomic parts, using ghci to debug each part once at a time, and because Haskell doesn't let you reuse variables, or mutate state, it's a lot easier to rationalize evaluation order (which makes it a lot easier to debug without step debuggers compared to languages like python).

  4. ghc-whole-program-compiler-project

    GHC Whole Program Compiler and External STG IR tooling

    I can easily debug any Haskell program with the external STG interpreter. https://www.youtube.com/watch?v=DkDUEd3pUyM https://github.com/grin-compiler/ghc-whole-program-compiler-project

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

  • ELI5: Why does the new Javascript backend need to live in GHC instead of consuming GHC-WPC output?

    1 project | /r/haskell | 20 Dec 2022
  • Haskell program inspector tooling development

    1 project | /r/haskell | 23 Jul 2021
  • What are you hyped about today?

    2 projects | /r/haskell | 15 May 2021
  • Transpiling to GHC Core language

    4 projects | /r/haskell | 30 Apr 2021
  • Next-gen Haskell Compilation Techniques

    4 projects | /r/haskell | 10 Jan 2021

Did you know that Haskell is
the 25th most popular programming language
based on number of references?