1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00

🔥 a redundant constraint.

This commit is contained in:
Rob Rix 2016-07-22 10:08:02 -04:00
parent d37b9be8d2
commit ca15d9db93

View File

@ -34,7 +34,7 @@ updateField record a = case record of
RNil -> RNil
cons@(RCons _ _) -> updateRCons cons a
updateRCons :: forall h t field. (Typeable h, Typeable field) => Record (h ': t) -> field -> Record (h ': t)
updateRCons :: forall h t field. 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)