diff options
Diffstat (limited to 'src/LambdaCube/Compiler/DesugaredSource.hs')
-rw-r--r-- | src/LambdaCube/Compiler/DesugaredSource.hs | 11 |
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 | ||
279 | instance PShow Binder where | ||
280 | pShow = \case | ||
281 | BPi v -> "BPi" `DApp` pShow v | ||
282 | BLam v -> "BLam" `DApp` pShow v | ||
283 | BMeta -> "BMeta" | ||
284 | |||
279 | data Visibility = Hidden | Visible | 285 | data Visibility = Hidden | Visible |
280 | deriving (Eq) | 286 | deriving (Eq) |
281 | 287 | ||
288 | instance PShow Visibility where | ||
289 | pShow = \case | ||
290 | Hidden -> "Hidden" | ||
291 | Visible -> "Visible" | ||
292 | |||
282 | dummyName s = SIName (debugSI s) ("v_" ++ s) | 293 | dummyName s = SIName (debugSI s) ("v_" ++ s) |
283 | dummyName' = SData . dummyName | 294 | dummyName' = SData . dummyName |
284 | sVar = SVar . dummyName | 295 | sVar = SVar . dummyName |