helium-1.8.1-ghc-7.10.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. diff --git a/src/Helium/Parser/LexerMonad.hs b/src/Helium/Parser/LexerMonad.hs
  2. index 75ac077..af35093 100644
  3. --- a/src/Helium/Parser/LexerMonad.hs
  4. +++ b/src/Helium/Parser/LexerMonad.hs
  5. @@ -20,2 +20,4 @@ import Helium.Parser.LexerMessage
  6. import Text.ParserCombinators.Parsec.Pos
  7. +import Control.Applicative
  8. +import Control.Monad
  9. @@ -47,2 +49,9 @@ returnLM x = LM (\_ pos brackets -> Right (x, [], pos, brackets))
  10. +instance Functor LexerMonad where
  11. + fmap = liftM
  12. +
  13. +instance Applicative LexerMonad where
  14. + pure = return
  15. + (<*>) = ap -- defined in Control.Monad
  16. +
  17. instance Monad LexerMonad where
  18. diff --git a/src/Helium/StaticAnalysis/Heuristics/OnlyResultHeuristics.hs b/src/Helium/StaticAnalysis/Heuristics/OnlyResultHeuristics.hs
  19. index 880ac0b..90574f0 100644
  20. --- a/src/Helium/StaticAnalysis/Heuristics/OnlyResultHeuristics.hs
  21. +++ b/src/Helium/StaticAnalysis/Heuristics/OnlyResultHeuristics.hs
  22. @@ -1 +1,2 @@
  23. +{-# LANGUAGE FlexibleContexts #-}
  24. {-| Module : OnlyResultHeuristics
  25. diff --git a/src/Helium/StaticAnalysis/Heuristics/RepairHeuristics.hs b/src/Helium/StaticAnalysis/Heuristics/RepairHeuristics.hs
  26. index 89e43f2..251406f 100644
  27. --- a/src/Helium/StaticAnalysis/Heuristics/RepairHeuristics.hs
  28. +++ b/src/Helium/StaticAnalysis/Heuristics/RepairHeuristics.hs
  29. @@ -1 +1,2 @@
  30. +{-# LANGUAGE FlexibleContexts #-}
  31. {-| Module : RepairHeuristics
  32. diff --git a/src/Helium/StaticAnalysis/Heuristics/TieBreakerHeuristics.hs b/src/Helium/StaticAnalysis/Heuristics/TieBreakerHeuristics.hs
  33. index d0b01a3..ba7ca19 100644
  34. --- a/src/Helium/StaticAnalysis/Heuristics/TieBreakerHeuristics.hs
  35. +++ b/src/Helium/StaticAnalysis/Heuristics/TieBreakerHeuristics.hs
  36. @@ -1 +1,2 @@
  37. +{-# LANGUAGE FlexibleContexts #-}
  38. {-| Module : TieBreakerHeuristics
  39. diff --git a/src/Helium/StaticAnalysis/Heuristics/UnifierHeuristics.hs b/src/Helium/StaticAnalysis/Heuristics/UnifierHeuristics.hs
  40. index c2e91f5..493c882 100644
  41. --- a/src/Helium/StaticAnalysis/Heuristics/UnifierHeuristics.hs
  42. +++ b/src/Helium/StaticAnalysis/Heuristics/UnifierHeuristics.hs
  43. @@ -1 +1,2 @@
  44. +{-# LANGUAGE FlexibleContexts #-}
  45. {-| Module : UnifierHeuristics
  46. diff --git a/src/Helium/Syntax/UHA_Pretty.hs b/src/Helium/Syntax/UHA_Pretty.hs
  47. index af970dc..ee42a48 100644
  48. --- a/src/Helium/Syntax/UHA_Pretty.hs
  49. +++ b/src/Helium/Syntax/UHA_Pretty.hs
  50. @@ -17,2 +17,3 @@ import Control.Monad.Identity (Identity)
  51. import qualified Control.Monad.Identity
  52. +import Prelude hiding ((<$>))