@@ -13,7 +13,7 @@ import Control.Monad.State
13import Epic.Epic hiding (Term, Type, Name, fn, compile)
13import Epic.Epic hiding (Term, Type, Name, fn, compile)
14import qualified Epic.Epic as E
14import qualified Epic.Epic as E
16−primDefs = [UN ["mkForeign"], UN ["FalseElim"]]
16+primDefs = [UN ["mkForeign"], UN ["FalseElim"], UN ["believe_me"]]
18compile :: FilePath -> Idris ()
18compile :: FilePath -> Idris ()
19compile f = do ds <- mkDecls
19compile f = do ds <- mkDecls
@@ -61,6 +61,8 @@ instance ToEpic (TT Name) where
61 | (P _ (UN ["lazy"]) _, [_, arg]) <- unApply tm
61 | (P _ (UN ["lazy"]) _, [_, arg]) <- unApply tm
62 = do arg' <- epic' env arg
62 = do arg' <- epic' env arg
63 return $ lazy_ arg'
63 return $ lazy_ arg'
64+ | (P _ (UN ["believe_me"]) _, [_, _, arg]) <- unApply tm
64 epic' env (P (DCon t a) n _) = return $ con_ t
66 epic' env (P (DCon t a) n _) = return $ con_ t
65 epic' env (P (TCon t a) n _) = return $ con_ t
67 epic' env (P (TCon t a) n _) = return $ con_ t
66 epic' env (P _ n _) = return $ ref (ename n)
68 epic' env (P _ n _) = return $ ref (ename n)