[Haskell-beginners] Fwd: Simple help with structuring a program

Matt Williams mhw at doctors.org.uk
Fri Aug 19 09:20:37 CEST 2011


Dear All,

Apologies for the very basic question. I have some familiarity with 
programming (Java/ Python), and have started learning Haskell (Real 
World Haskell, Haskell 98 Tutorial, YAHT). I think I know how to 
translate ideas in the real world into OOP approaches (Objects, 
Inheritance, Polymorphism, Patterns).

I am having some problems trying to do this with Haskell. Should I think 
about types as being a useful way to structure things, with functions 
operating on them? Could anyone (very simply) explain the difference 
between a type and an object class (or point me to someone who has 
already done so).

Is there an equivalent of the GoF design patterns for Haskell?

Thanks and apologies for what are very basic questions,
Matt



More information about the Beginners mailing list