Understanding "Signals, Not Generators"

4 May
2012
4 May
'12
10:18 a.m.
Hey I am currently reading Signals, Not Generators". I am on page 10 where the phantom type era is introduced. I have trouble understanding because I do not understand how the system is to be used. Let us assume I have a signal and an action to print the output: signal :: DSignal era Int action :: Int -> Io () action = putStrLn . show Now, I consume the signal: reactive = consume signal action => reactive :: Reactive era (IO ()) And make an io action: toIO reactive :: IO () My question is: what does this io action do? Thanks!
4764
Age (days ago)
4764
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nathan Hüsken