Closed jmatsushita closed 1 year ago
Currently stuck on
TerminalSimple.hs:98:24: error:
• No instance for (Clock App InputClock)
arising from a use of ‘|@|’
• In the expression: inputRhine |@| promptRhine
In an equation for ‘mainRhine’:
mainRhine
= inputRhine |@| promptRhine
where
inputRhine :: Rhine App InputClock () ()
inputRhine = inputSource >-> inputSink @@ inputClock
promptRhine :: Rhine App PromptClock () ()
promptRhine = promptSource >-> promptSink @@ liftClock waitClock
|
98 | mainRhine = inputRhine |@| promptRhine
Oh I think it's because of SelectClock
as pointed out here.
Superseded by https://github.com/turion/rhine/pull/171
Rebased #165 onto #172 to test the new interface.
Implemented a
MonadSchedule
instance, and had to use ahaskell-terminal
fork as predicted and reopened a corresponding PR upstream.