Thanks for the TypeCompose>=0.3 tip. I've fixed my local Reactive.cabal and will push at some point.<br><br>Oh yeay -- I'd forgotten about the "deriving" change in 6.8 vs 6.6.<br><br>Urg. I didn't realize that 'forever' isn't in
6.2. You can use the 6.8 def:<br><br><span style="font-family: courier new,monospace;">-- | @'forever' act@ repeats the action infinitely.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
forever :: (Monad m) => m a -> m ()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">forever a = a >> forever a</span><br><br>I'm wondering how hard to try to get these libs to work with both
6.6 and 6.8. My hope has been that people will switch to 6.8, but perhaps there are obstacles I don't know about. Is there something that keeps you from upgrading?<br><br> - Conal<br><br><div class="gmail_quote">On Jan 19, 2008 6:14 AM, Steve Lihn <
<a href="mailto:stevelihn@gmail.com">stevelihn@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Reactive-0.3 seems to have a dependency on
TypeCompose-0.3. Earlier<br>version does not work (for lack of Data.Pair). This probably should be<br>specified in Cabal file.<br><br>I aslo fixed all the LANGUAGE problems and now encountered the<br>following error in TypeCompose:
<br><br>[4 of 9] Compiling Control.Compose ( src/Control/Compose.hs,<br>dist/build/Control/Compose.o )<br>src/Control/Compose.hs:561:0: parse error on input `deriving'<br><br>I tried to restored the commented out "deriving Monoid" and got pass
<br>that. Not sure if that is right though. Back to reactive-0.3, I<br>encountered:<br><br>src/Data/Future.hs:60:27:<br> Module `Control.Monad' does not export `forever'<br><br>Forever is in the latest library, but not in my GHC
6.6. I am not sure<br>how to get this fixed. Any suggestion?<br><br><a href="http://www.haskell.org/ghc/docs/latest/html/libraries/base/Control-Monad.html" target="_blank">http://www.haskell.org/ghc/docs/latest/html/libraries/base/Control-Monad.html
</a><br><font color="#888888"><br><br>Steve<br></font><div><div></div><div class="Wj3C7c"><br><br>On Jan 19, 2008 1:31 AM, Conal Elliott <<a href="mailto:conal@conal.net">conal@conal.net</a>> wrote:<br>> Hi Steve,
<br>><br>> Thanks for letting me know about the LANGUAGE problem. Yes, I used<br>> 6.8-friendly (6.6-unfriendly) LANGUAGE pragmas. In retrospect, probably not<br>> such a great idea, since there seem to be many folks still on
6.6.<br>><br>> I just changed the sources (commenting out the LANGUAGE pragmas and<br>> inserting -fglasgow-exts pragmas), darcs-pushed, and put a new version (0.3)<br>> on hackage. Please give it another try.
<br>><br>> Cheers, - Conal<br>><br>><br>><br>> On Jan 18, 2008 7:58 PM, Steve Lihn <<a href="mailto:stevelihn@gmail.com">stevelihn@gmail.com</a>> wrote:<br>> > Tried to install reactive-0.2 on
GHC-6.6, but failed.<br>> ><br>> > Building reactive-0.2...<br>> > src/Data/Reactive.hs:1:13: cannot parse LANGUAGE pragma<br>> ><br>> > Is the package for GHC 6.8? Is there an older version (
0.0?) for GHC<br>> > 6.6 that I can play with your example? (Or advise how to hack that<br>> > file to get it work on 6.6)<br>> ><br>> > Thanks,<br>> > Steve<br>> ><br>><br>><br></div>
</div></blockquote></div><br>