mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
Revert "🔥 a redundant constraint."
This reverts commit b9da8f8c1cf6c7d8db51b56e724cfebb3587ac24.
This commit is contained in:
parent
d1d0f41939
commit
a2e6a7c0cb
@ -34,7 +34,7 @@ updateField record a = case record of
|
||||
RNil -> RNil
|
||||
cons@(RCons _ _) -> updateRCons cons a
|
||||
|
||||
updateRCons :: forall h t field. Typeable field => Record (h ': t) -> field -> Record (h ': t)
|
||||
updateRCons :: forall h t field. (Typeable h, Typeable field) => Record (h ': t) -> field -> Record (h ': t)
|
||||
updateRCons (RCons h t) a = case eqT :: Maybe (h :~: field) of
|
||||
Just Refl -> RCons a t
|
||||
Nothing -> RCons h (updateField t a)
|
||||
|
Loading…
Reference in New Issue
Block a user