/Grldd

Haskell learning project.

Primary LanguageHaskellGNU General Public License v3.0GPL-3.0

Grldd

Grldd is a toy Haskell project. To help to learn this beautiful language. Published for the benfits for other learners.

Grldd is a graphical dependency tracking tool, based on the ldd command. It is using BFS to build a dependency graph and print the result as graphviz output.

During implementation got to solve the following difficulties:

  • How to execute a command on local machine? (Used process library.)
  • How to grab its standard output and error to process it? (Used process library.)
  • How to parse the output? (Used parsec library.)
  • How to write BFS algorithm, to be able to test with different source of dependency information? (Wrote higher order function.)
  • How to write graphviz ouput? (Used fgl library.)
  • How to handle command line arguments?
  • How to write test for my code? (Used HUnit for this.)
  • How to cabal my project? (Read the manual. :))

Source code is published under GPL version 3.