diff options
Diffstat (limited to 'src/LambdaCube/Compiler/DesugaredSource.hs')
-rw-r--r-- | src/LambdaCube/Compiler/DesugaredSource.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LambdaCube/Compiler/DesugaredSource.hs b/src/LambdaCube/Compiler/DesugaredSource.hs index 33912ae3..7351f4d7 100644 --- a/src/LambdaCube/Compiler/DesugaredSource.hs +++ b/src/LambdaCube/Compiler/DesugaredSource.hs | |||
@@ -447,7 +447,7 @@ data Stmt | |||
447 | pattern Primitive n t = Let n (Just t) (SBuiltin "undefined") | 447 | pattern Primitive n t = Let n (Just t) (SBuiltin "undefined") |
448 | 448 | ||
449 | instance PShow Stmt where | 449 | instance PShow Stmt where |
450 | pShow = \case | 450 | pShow stmt = DResetFreshNames $ case stmt of |
451 | Primitive n t -> shAnn (pShow n) (pShow t) | 451 | Primitive n t -> shAnn (pShow n) (pShow t) |
452 | Let n ty e -> DLet "=" (pShow n) $ maybe (pShow e) (\ty -> shAnn (pShow e) (pShow ty)) ty | 452 | Let n ty e -> DLet "=" (pShow n) $ maybe (pShow e) (\ty -> shAnn (pShow e) (pShow ty)) ty |
453 | Data n ps ty cs -> nest 4 $ "data" <+> shAnn (foldl dApp (DTypeNamespace True $ pShow n) [shAnn (text "_") (pShow t) | (v, t) <- ps]) (pShow ty) <+> "where" <$$> vcat [shAnn (pShow n) $ pShow t | (n, t) <- cs] | 453 | Data n ps ty cs -> nest 4 $ "data" <+> shAnn (foldl dApp (DTypeNamespace True $ pShow n) [shAnn (text "_") (pShow t) | (v, t) <- ps]) (pShow ty) <+> "where" <$$> vcat [shAnn (pShow n) $ pShow t | (n, t) <- cs] |