@@ -135,7 +135,7 @@ restrict n val = let val' = assert_total (abs (mod val (cast (S n)))) in
135 -- reasoning about primitives, so we need the
135 -- reasoning about primitives, so we need the
136 -- 'believe_me'. It's fine because val' must be
136 -- 'believe_me'. It's fine because val' must be
137 -- in the right range
137 -- in the right range
138− fromInteger val'
138+ fromInteger {n = S n} val'
139 {prf = believe_me {a=IsJust (Just val')} ItIsJust}
139 {prf = believe_me {a=IsJust (Just val')} ItIsJust}
141%language ErrorReflection
141%language ErrorReflection