git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Don't erase position info
7be6777Gary Burgess
src/Language/PureScript/Sugar/DoNotation.hs+1−1
@@ -35,7 +35,7 @@ desugarDoModule :: Module -> Either ErrorStack Module
35desugarDoModule (Module mn ds exts) = Module mn <$> mapM desugarDo ds <*> pure exts
35desugarDoModule (Module mn ds exts) = Module mn <$> mapM desugarDo ds <*> pure exts
36
36
37desugarDo :: Declaration -> Either ErrorStack Declaration
37desugarDo :: Declaration -> Either ErrorStack Declaration
38−desugarDo (PositionedDeclaration pos d) = rethrowWithPosition pos $ desugarDo d
38+desugarDo (PositionedDeclaration pos d) = (PositionedDeclaration pos) <$> (rethrowWithPosition pos $ desugarDo d)
39desugarDo d =
39desugarDo d =
40 let (f, _, _) = everywhereOnValuesM return replace return
40 let (f, _, _) = everywhereOnValuesM return replace return
41 in f d
41 in f d