diff options
Diffstat (limited to 'src/compiler/GF/Infra/UseIO.hs')
| -rw-r--r-- | src/compiler/GF/Infra/UseIO.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/GF/Infra/UseIO.hs b/src/compiler/GF/Infra/UseIO.hs index 17894c682..a0a36ad52 100644 --- a/src/compiler/GF/Infra/UseIO.hs +++ b/src/compiler/GF/Infra/UseIO.hs @@ -31,6 +31,7 @@ import System.Exit import System.CPUTime --import System.Cmd import Text.Printf +import Control.Applicative(Applicative(..)) import Control.Monad import Control.Monad.Trans(MonadIO(..)) import Control.Exception(evaluate) @@ -150,6 +151,10 @@ instance ErrorMonad IOE where instance Functor IOE where fmap = liftM +instance Applicative IOE where + pure = return + (<*>) = ap + instance Monad IOE where return a = ioe (return (return a)) IOE c >>= f = IOE $ do |
