Address issues with unify's case tree in idris

Clean up some stuff in prelude
Add parser for where
This commit is contained in:
2024-11-19 20:50:52 -08:00
parent 9b19c569c9
commit c665310653
10 changed files with 81 additions and 58 deletions

View File

@@ -86,8 +86,8 @@ pretty {{MkPretty p}} x = p x
render : Nat -> Doc -> String
render w x = layout (best w Z x) Lin
SemigroupDoc : Semigroup Doc
SemigroupDoc = MkSemi (\ x y => Seq x (Seq (Text " ") y))
instance Semigroup Doc where
x <+> y = Seq x (Seq (Text " ") y)
-- Match System.File so we don't get warnings
@@ -100,9 +100,8 @@ text = Text
nest : Nat -> Doc -> Doc
nest = Nest
infixl 7 _++_
_++_ : Doc -> Doc -> Doc
x ++ y = Seq x y
instance Concat Doc where
x ++ y = Seq x y
infixl 5 _</>_
_</>_ : Doc -> Doc -> Doc