@@ -48,7 +48,7 @@ desugarDo d =
49 replace :: Value -> Either ErrorStack Value
49 replace :: Value -> Either ErrorStack Value
50 replace (Do els) = go els
50 replace (Do els) = go els
51− replace (PositionedValue pos v) = rethrowWithPosition pos $ replace v
51+ replace (PositionedValue pos v) = PositionedValue pos <$> rethrowWithPosition pos (replace v)
52 replace other = return other
52 replace other = return other
54 go :: [DoNotationElement] -> Either ErrorStack Value
54 go :: [DoNotationElement] -> Either ErrorStack Value