I have written my first piece of haskell code which I'm, to be honest, not too proud of. I have used the tag soup library to parse and manipulate the wikipedia episode list page such as:
to scrape some of the episode information and place it in to a series of data structures. Nothing too complicated.
I know there are probably better libraries out there, I know of HXT and others but it uses arrows and I want to start getting to know the basics before moving on to that. The main point here being that I'm not to interested in the library I used but the code I produced with it.
My main concern is in the layout of the code. It needs to keep state and I'm aware of the state monad but is it a good idea to push all of the code in to the state monad and restructure it that way or is that too complex for what I do. I'm not really sure how else I could refactor it but any suggestions on how to improve would be great.
The code is here:
Thanks.