lukexi / halive

Live recompiler for Haskell
BSD 2-Clause "Simplified" License
263 stars 18 forks source link

Build failure on GHC 7.8 #8

Closed bergmark closed 9 years ago

bergmark commented 9 years ago
exec/main.hs:11:38: Not in scope: ‘<$>’

(<$>) was not in Prelude before 7.10. This can be fixed by importing it from Control.Applicative, or by using base-compat. If you don't care about backwards compatibility you can set a base >= 4.8 lower bound.

I've revised current versions: http://hackage.haskell.org/package/halive/revisions/

lukexi commented 9 years ago

Thanks Adam! I uploaded a new version with the import for 7.8.

bergmark commented 9 years ago

Another GHC-7.8 failure popped up unfortunately! mapM_ wasn't polymorphic over the container before 7.10.

src/Halive/Concurrent.hs:28:20:
    Couldn't match expected type ‘[ThreadId]’
                with actual type ‘Set ThreadId’
    In the second argument of ‘mapM_’, namely ‘threadIDs’
    In a stmt of a 'do' block: mapM_ killThread threadIDs
lukexi commented 9 years ago

Apologies and thanks : ) — fixed!

I set up a 7.8 environment so I can support it properly from here on out.