aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Term.hs
diff options
context:
space:
mode:
authorMarvin Borner2023-09-19 17:31:52 +0200
committerMarvin Borner2023-09-19 17:31:52 +0200
commit8a8f82d20803bc6a9d626d337d0021db55804e5c (patch)
tree365fbf42ce9c0a218f66b8f410eb992aae845821 /src/Term.hs
parent06b37b3c787885c02f328c3ee995219b4c0d671c (diff)
Finished transpiler
Diffstat (limited to 'src/Term.hs')
-rw-r--r--src/Term.hs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/Term.hs b/src/Term.hs
index c5a4fa0..a84b6c5 100644
--- a/src/Term.hs
+++ b/src/Term.hs
@@ -7,12 +7,6 @@ module Term
) where
import Control.Concurrent.MVar
-import Data.IORef ( IORef
- , modifyIORef
- , newIORef
- , readIORef
- , writeIORef
- )
import Data.List ( elemIndex )
import Data.Map.Strict ( Map )
import qualified Data.Map.Strict as Map
@@ -76,7 +70,6 @@ toRedex = convertWorker (NameGen 1) []
in Rapp lhs rhs
convertWorker _ ns (Idx i) =
Ridx $ Num (if i < 0 || i >= length ns then i else ns !! i)
- convertWorker _ _ _ = invalid
fromRedex :: Redex -> Term
fromRedex = convertWorker []