From cd5193b7e19e7ff5e49cdeafe149fdeec8e19fb0 Mon Sep 17 00:00:00 2001 From: hallgren Date: Wed, 13 Aug 2014 22:16:18 +0000 Subject: Fix warnings in 16 modules, mostly forward compatibility warnings from GHC 7.8 --- src/compiler/GF/Compile/GeneratePMCFG.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/compiler/GF/Compile/GeneratePMCFG.hs') diff --git a/src/compiler/GF/Compile/GeneratePMCFG.hs b/src/compiler/GF/Compile/GeneratePMCFG.hs index b8edda00f..e6067c854 100644 --- a/src/compiler/GF/Compile/GeneratePMCFG.hs +++ b/src/compiler/GF/Compile/GeneratePMCFG.hs @@ -36,6 +36,7 @@ import Data.Array.IArray import Data.Array.Unboxed --import Data.Maybe --import Data.Char (isDigit) +import Control.Applicative(Applicative(..)) import Control.Monad import Control.Monad.Identity --import Control.Exception @@ -247,6 +248,10 @@ newtype CnvMonad a = CM {unCM :: SourceGrammar -> ([ProtoFCat],[Symbol]) -> Branch b} +instance Applicative CnvMonad where + pure = return + (<*>) = ap + instance Monad CnvMonad where return a = CM (\gr c s -> c a s) CM m >>= k = CM (\gr c s -> m gr (\a s -> unCM (k a) gr c s) s) -- cgit v1.2.3