summaryrefslogtreecommitdiff
path: root/src/LambdaCube/Compiler/DesugaredSource.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/LambdaCube/Compiler/DesugaredSource.hs')
-rw-r--r--src/LambdaCube/Compiler/DesugaredSource.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/LambdaCube/Compiler/DesugaredSource.hs b/src/LambdaCube/Compiler/DesugaredSource.hs
index 264912ca..d47726d0 100644
--- a/src/LambdaCube/Compiler/DesugaredSource.hs
+++ b/src/LambdaCube/Compiler/DesugaredSource.hs
@@ -276,9 +276,20 @@ data Binder
276 | BMeta -- a metavariable is like a floating hidden lambda 276 | BMeta -- a metavariable is like a floating hidden lambda
277 deriving (Eq) 277 deriving (Eq)
278 278
279instance PShow Binder where
280 pShow = \case
281 BPi v -> "BPi" `DApp` pShow v
282 BLam v -> "BLam" `DApp` pShow v
283 BMeta -> "BMeta"
284
279data Visibility = Hidden | Visible 285data Visibility = Hidden | Visible
280 deriving (Eq) 286 deriving (Eq)
281 287
288instance PShow Visibility where
289 pShow = \case
290 Hidden -> "Hidden"
291 Visible -> "Visible"
292
282dummyName s = SIName (debugSI s) ("v_" ++ s) 293dummyName s = SIName (debugSI s) ("v_" ++ s)
283dummyName' = SData . dummyName 294dummyName' = SData . dummyName
284sVar = SVar . dummyName 295sVar = SVar . dummyName