@@ -407,15 +407,12 @@ data Plicity = Imp { pargopts :: [ArgOpt],
407 pscript :: PTerm }
407 pscript :: PTerm }
408 deriving (Show, Eq)
408 deriving (Show, Eq)
410−plazy :: Plicity -> Bool
411−plazy tm = Lazy `elem` pargopts tm
414deriving instance Binary Plicity
411deriving instance Binary Plicity
415deriving instance NFData Plicity
412deriving instance NFData Plicity
418−impl = Imp [Lazy] Dynamic False
415+impl = Imp [] Dynamic False
419expl = Exp [] Dynamic False
416expl = Exp [] Dynamic False
420expl_param = Exp [] Dynamic True
417expl_param = Exp [] Dynamic True
421constraint = Constraint [] Dynamic
418constraint = Constraint [] Dynamic
@@ -793,12 +790,9 @@ data PArg' t = PImp { priority :: Int,
793 getTm :: t }
790 getTm :: t }
794 deriving (Show, Eq, Functor)
791 deriving (Show, Eq, Functor)
796−data ArgOpt = Lazy | HideDisplay | InaccessibleArg
793+data ArgOpt = HideDisplay | InaccessibleArg
797 deriving (Show, Eq)
794 deriving (Show, Eq)
799−lazyarg :: PArg' t -> Bool
800−lazyarg tm = Lazy `elem` argopts tm
802instance Sized a => Sized (PArg' a) where
796instance Sized a => Sized (PArg' a) where
803 size (PImp p _ l nm trm) = 1 + size nm + size trm
797 size (PImp p _ l nm trm) = 1 + size nm + size trm
804 size (PExp p l nm trm) = 1 + size nm + size trm
798 size (PExp p l nm trm) = 1 + size nm + size trm
@@ -810,10 +804,10 @@ deriving instance Binary PArg'
810deriving instance NFData PArg'
804deriving instance NFData PArg'
813−pimp n t mach = PImp 1 mach [Lazy] n t
807+pimp n t mach = PImp 1 mach [] n t
814pexp t = PExp 1 [] (sMN 0 "arg") t
808pexp t = PExp 1 [] (sMN 0 "arg") t
815pconst t = PConstraint 1 [] (sMN 0 "carg") t
809pconst t = PConstraint 1 [] (sMN 0 "carg") t
816−ptacimp n s t = PTacImplicit 2 [Lazy] n s t
810+ptacimp n s t = PTacImplicit 2 [] n s t
818type PArg = PArg' PTerm
812type PArg = PArg' PTerm
@@ -1126,10 +1120,9 @@ pprintPTerm impl bnd docArgs = prettySe 10 bnd
1126 prettySe 10 ((n, False):bnd) sc
1120 prettySe 10 ((n, False):bnd) sc
1127 prettySe p bnd (PPi (Exp l s _) n ty sc)
1121 prettySe p bnd (PPi (Exp l s _) n ty sc)
1128 | n `elem` allNamesIn sc || impl || n `elem` docArgs =
1122 | n `elem` allNamesIn sc || impl || n `elem` docArgs =
1129− let open = if Lazy `elem` l then text "|" <> lparen else lparen in
1130− bracket p 2 . group $
1123+ bracket p 2 . group $
1131− enclose open rparen (group . align $ bindingOf n False <+> colon <+> prettySe 10 bnd ty) <+>
1124+ enclose lparen rparen (group . align $ bindingOf n False <+> colon <+> prettySe 10 bnd ty) <+>
1132− st <> text "->" <$> prettySe 10 ((n, False):bnd) sc
1125+ st <> text "->" <$> prettySe 10 ((n, False):bnd) sc
1133 | otherwise =
1126 | otherwise =
1134 bracket p 2 . group $
1127 bracket p 2 . group $
1135 group (prettySe 0 bnd ty <+> st) <> text "->" <$> group (prettySe 10 ((n, False):bnd) sc)
1128 group (prettySe 0 bnd ty <+> st) <> text "->" <$> group (prettySe 10 ((n, False):bnd) sc)
@@ -1140,10 +1133,9 @@ pprintPTerm impl bnd docArgs = prettySe 10 bnd
1140 _ -> empty
1133 _ -> empty
1141 prettySe p bnd (PPi (Imp l s _) n ty sc)
1134 prettySe p bnd (PPi (Imp l s _) n ty sc)
1142 | impl =
1135 | impl =
1143− let open = if Lazy `elem` l then text "|" <> lbrace else lbrace in
1144− bracket p 2 $
1136+ bracket p 2 $
1145− open <> bindingOf n True <+> colon <+> prettySe 10 bnd ty <> rbrace <+>
1137+ lparen <> bindingOf n True <+> colon <+> prettySe 10 bnd ty <> rbrace <+>
1146− st <> text "->" </> prettySe 10 ((n, True):bnd) sc
1138+ st <> text "->" </> prettySe 10 ((n, True):bnd) sc
1147 | otherwise = prettySe 10 ((n, True):bnd) sc
1139 | otherwise = prettySe 10 ((n, True):bnd) sc