@@ -54,7 +54,7 @@ fromByteString pkg source =
55normal :: Parser E.Module (Either E.Error Src.Module)
55normal :: Parser E.Module (Either E.Error Src.Module)
57− do freshLine E.FreshLineModuleStart
57+ do freshLine E.FreshLine
58 header <- chompHeader
58 header <- chompHeader
59 comment <- chompModuleDocComment
59 comment <- chompModuleDocComment
60 imports <- chompImports []
60 imports <- chompImports []
@@ -65,7 +65,7 @@ normal =
66core :: Parser E.Module (Either E.Error Src.Module)
66core :: Parser E.Module (Either E.Error Src.Module)
68− do freshLine E.FreshLineModuleStart
68+ do freshLine E.FreshLine
69 header <- chompHeader
69 header <- chompHeader
70 comment <- chompModuleDocComment
70 comment <- chompModuleDocComment
71 imports <- chompImports []
71 imports <- chompImports []
@@ -77,7 +77,7 @@ core =
78platform :: Parser E.Module (Either E.Error Src.Module)
78platform :: Parser E.Module (Either E.Error Src.Module)
80− do freshLine E.FreshLineModuleStart
80+ do freshLine E.FreshLine
81 header <- chompHeader
81 header <- chompHeader
82 comment <- chompModuleDocComment
82 comment <- chompModuleDocComment
83 imports <- chompImports []
83 imports <- chompImports []
@@ -194,7 +194,7 @@ chompModuleDocComment =
195 do docComment <- Space.docComment E.ImportStart E.ModuleSpace
195 do docComment <- Space.docComment E.ImportStart E.ModuleSpace
196 Space.chomp E.ModuleSpace
196 Space.chomp E.ModuleSpace
197− Space.checkFreshLine E.FreshLineAfterDocComment
197+ Space.checkFreshLine E.FreshLine
198 return (Just docComment)
198 return (Just docComment)
@@ -228,7 +228,7 @@ chompHeader =
228 Keyword.exposing_ E.ModuleProblem
228 Keyword.exposing_ E.ModuleProblem
229 Space.chompAndCheckIndent E.ModuleSpace E.ModuleProblem
229 Space.chompAndCheckIndent E.ModuleSpace E.ModuleProblem
230 exports <- addLocation (specialize E.ModuleExposing exposing)
230 exports <- addLocation (specialize E.ModuleExposing exposing)
231− freshLine E.FreshLineAfterModuleLine
231+ freshLine E.FreshLine
232 return (Just (Header name (NoEffects (A.Region start end)) exports))
232 return (Just (Header name (NoEffects (A.Region start end)) exports))
234 -- port module MyThing exposing (..)
234 -- port module MyThing exposing (..)
@@ -242,7 +242,7 @@ chompHeader =
242 Keyword.exposing_ E.PortModuleProblem
242 Keyword.exposing_ E.PortModuleProblem
243 Space.chompAndCheckIndent E.ModuleSpace E.PortModuleProblem
243 Space.chompAndCheckIndent E.ModuleSpace E.PortModuleProblem
244 exports <- addLocation (specialize E.PortModuleExposing exposing)
244 exports <- addLocation (specialize E.PortModuleExposing exposing)
245− freshLine E.FreshLineAfterModuleLine
245+ freshLine E.FreshLine
246 return (Just (Header name (Ports (A.Region start end)) exports))
246 return (Just (Header name (Ports (A.Region start end)) exports))
248 -- effect module MyThing where { command = MyCmd } exposing (..)
248 -- effect module MyThing where { command = MyCmd } exposing (..)
@@ -260,7 +260,7 @@ chompHeader =
260 Keyword.exposing_ E.Effect
260 Keyword.exposing_ E.Effect
261 Space.chompAndCheckIndent E.ModuleSpace E.Effect
261 Space.chompAndCheckIndent E.ModuleSpace E.Effect
262 exports <- addLocation (specialize (const E.Effect) exposing)
262 exports <- addLocation (specialize (const E.Effect) exposing)
263− freshLine E.FreshLineAfterModuleLine
263+ freshLine E.FreshLine
264 return (Just (Header name (Manager (A.Region start end) manager) exports))
264 return (Just (Header name (Manager (A.Region start end) manager) exports))
266 -- default header
266 -- default header