simple graph lib in Haskell for a school assignment