A peer-to-peer stack for code collaboration
fix: Replace shebang with empty string to preserve source line count (#605)
Max Hallinan1a14580d6101
diff --git a/src/Radicle/Internal/Effects.hs b/src/Radicle/Internal/Effects.hsindex 8a39e80..db632aa 100644--- a/src/Radicle/Internal/Effects.hs+++ b/src/Radicle/Internal/Effects.hs@@ -372,5 +372,5 @@ replPrimFns sysArgs = fromList $ allDocs $-- lines.ignoreShebang :: Text -> TextignoreShebang src = case T.lines src of- f:rest -> T.unlines $ if "#!" `T.isPrefixOf` f then rest else f:rest+ f:rest -> T.unlines $ if "#!" `T.isPrefixOf` f then mempty:rest else f:rest_ -> src