I'm stuck on a problem in a program and I suspect one that I will keep
encountering.
I need to be able to read from an initialization file a set of values,
as a simple example let us take three variables: base_dir, user_name,
log_file.
I need to be able to access these values effieiently and
Hi
Is it possible to redefine methods in a subclass (not an instance)? E.g. I get
errors in
class (Show a) = Employee a where
speak :: a - [Char]
speak x = Employee: ++ (show x)
class (Employee a) = Manager a where
speak x = Manager: ++ (show x)
Thanks
Oleg
I would recommend reading the variables in the main
and pack the rest of your program into a monad.
But only if you really need to access the variables
from everywhere and don't want to pass them around
explicitely.
Markus
I need to be able to access these values effieiently and from
virtually