@@ -2,6 +2,7 @@
3module Idris.Core.TC(TC'(..)) where
3module Idris.Core.TC(TC'(..)) where
5+import Control.Applicative
5import Control.Monad
6import Control.Monad
6import Control.Monad.Trans.Error(Error(..))
7import Control.Monad.Trans.Error(Error(..))
@@ -26,3 +27,11 @@ instance Error e => MonadPlus (TC' e) where
26 _ `mplus` (OK y) = OK y
27 _ `mplus` (OK y) = OK y
27 err `mplus` _ = err
28 err `mplus` _ = err
31+instance Error e => Applicative (TC' e) where
35+instance Error e => Alternative (TC' e) where