Skip to content

Commit

Permalink
Remove EmptyConstraint
Browse files Browse the repository at this point in the history
  • Loading branch information
TotallyNotChase committed Jan 7, 2022
1 parent 9759f6d commit da60ed2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Plutarch/List.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@ class PListLike (list :: (k -> Type) -> k -> Type) where
pnull :: PIsListLike list a => Term s (list a :--> PBool)
pnull = phoistAcyclic $ pelimList (plam $ \_ _ -> pconstant False) $ pconstant True

type EmptyConstraint = 'True ~ 'True

instance PListLike PList where
type PElemConstraint PList _ = EmptyConstraint
type PElemConstraint PList _ = ()
pelimList match_cons match_nil =
plam $ \ls -> pmatch ls $ \case
PSCons x xs -> match_cons # x # xs
Expand Down

0 comments on commit da60ed2

Please sign in to comment.