diff options
Diffstat (limited to 'src/LambdaCube/Compiler/Core.hs')
-rw-r--r-- | src/LambdaCube/Compiler/Core.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/LambdaCube/Compiler/Core.hs b/src/LambdaCube/Compiler/Core.hs index 0685f45c..273791a7 100644 --- a/src/LambdaCube/Compiler/Core.hs +++ b/src/LambdaCube/Compiler/Core.hs | |||
@@ -82,6 +82,9 @@ upDB x (MaxDB i) = MaxDB $ ad x i where | |||
82 | ad n i = Su $ ad (n-1) i | 82 | ad n i = Su $ ad (n-1) i |
83 | -} | 83 | -} |
84 | 84 | ||
85 | setMaxDB db = \case | ||
86 | Neut (Fun_ _ a b c) -> Neut $ Fun_ db a b c | ||
87 | |||
85 | class HasMaxDB a where | 88 | class HasMaxDB a where |
86 | maxDB_ :: a -> MaxDB | 89 | maxDB_ :: a -> MaxDB |
87 | 90 | ||
@@ -152,6 +155,7 @@ data Neutral | |||
152 | | CaseFun__ !MaxDB CaseFunName [Exp] Neutral | 155 | | CaseFun__ !MaxDB CaseFunName [Exp] Neutral |
153 | | TyCaseFun__ !MaxDB TyCaseFunName [Exp] Neutral | 156 | | TyCaseFun__ !MaxDB TyCaseFunName [Exp] Neutral |
154 | | Fun_ !MaxDB FunName [Exp]{-given parameters, reversed-} Exp{-unfolded expression, in hnf-} | 157 | | Fun_ !MaxDB FunName [Exp]{-given parameters, reversed-} Exp{-unfolded expression, in hnf-} |
158 | -- | Let_ !MaxDB | ||
155 | 159 | ||
156 | -------------------------------------------------------------------------------- auxiliary functions and patterns | 160 | -------------------------------------------------------------------------------- auxiliary functions and patterns |
157 | 161 | ||