Skip to content

Commit

Permalink
remove HasLetDefs
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Jul 3, 2024
1 parent 9579abd commit 67fff1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 105 deletions.
3 changes: 1 addition & 2 deletions src/Juvix/Compiler/Internal/Data/InfoTable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ where
import Data.HashMap.Strict qualified as HashMap
import Juvix.Compiler.Internal.Extra
import Juvix.Compiler.Internal.Extra.CoercionInfo
import Juvix.Compiler.Internal.Extra.HasLetDefs
import Juvix.Compiler.Internal.Extra.InstanceInfo
import Juvix.Compiler.Internal.Pretty (ppTrace)
import Juvix.Compiler.Store.Internal.Data.FunctionsTable
Expand Down Expand Up @@ -69,7 +68,7 @@ extendWithReplExpression e =
)
)

letFunctionDefs :: (HasLetDefs a) => a -> [FunctionDef]
letFunctionDefs :: (HasExpressions a) => a -> [FunctionDef]
letFunctionDefs e =
concat
[ concatMap (toList . flattenClause) _letClauses
Expand Down
3 changes: 3 additions & 0 deletions src/Juvix/Compiler/Internal/Extra/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ subsInstanceHoles s = umapM helper
where
e = toExpression le

letDefs :: (HasExpressions a) => a -> [Let]
letDefs a = [l | ExpressionLet l <- a ^.. allExpressions]

subsHoles :: forall r a. (HasExpressions a, Member NameIdGen r) => HashMap Hole Expression -> a -> Sem r a
subsHoles s = umapM helper
where
Expand Down
103 changes: 0 additions & 103 deletions src/Juvix/Compiler/Internal/Extra/HasLetDefs.hs

This file was deleted.

0 comments on commit 67fff1e

Please sign in to comment.