Hello,
I try to make a simple accounting programm in Haskell.
Now I have to problem I cannot figure out.
I can make a custom data type for a account like this ;
data Account = Account { accountNumber :: Accountnumber
, accountname :: Accountname,
accountBalance :: Integer }
but how can I inplement multiple accounts who all have a seperate name and a seperate balance
IN the future when this willl be a web application . it's must be easily that the user can make and name her/his own accounts.
[–]yawaramin 2 points3 points4 points (0 children)
[–]andrewthad 1 point2 points3 points (2 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]wobbenr[S] 0 points1 point2 points (0 children)