This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Kuulaskuri (luo, monesko, seuraava) where | |
import Data.IORef | |
newtype Kuulaskuri = Kuulaskuri (IORef Int) | |
luo :: IO Kuulaskuri | |
luo = do | |
c <- newIORef 1 | |
return $ Kuulaskuri c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Kuukausi where | |
data Kuukausi = Tammikuu | |
| Helmikuu | |
| Maaliskuu | |
| Huhtikuu | |
| Toukokuu | |
| Kesäkuu | |
| Elokuu | |
| Heinäkuu |
NewerOlder