Monthly Downloads: 10
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Debug    
Latest version: v0.2.0.0

todo alternatives and similar packages

Based on the "Debug" category.
Alternatively, view todo alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of todo or a related project?

Add another 'Debug' Package



Todo wraps some standard debug symbols in warnings so that you'll have to work a bit harder to miss unfinished code in your Haskell programs.

Hackage package


Say that you have this line of code:

neatFunction = undefined

undefined is a good stubbing tool but what if you forget what you were stubbing? You'd like to have some more info on what you were doing, so you do this:

neatFunction = error "Got to implement this someday or my boss will get mad"

This may work but there's some issues with it:

  • error is often used for non-total functions, this may confuse the reader
  • If we forget to implement the call for neatFunction, we're not getting noticed that our function currently is incomplete!

Therefore, with Debug.Todo you can do this:

import Debug.Todo

neatFunction = todo "I'm going to implement this!"

This will not only solve the cultural ambiguity of error but will also throw a compile time warning so if you're using -Wall in your build step, you will get a warning whenever you forget a todo in your code!


$ runhaskell example.hs

example.hs:5:16: warning: [-Wdeprecations]
    In the use of ‘todo’ (imported from Debug.Todo):
    "TODO:s exists in code! Make sure you fix them! "