Refactor: rename variable
This commit is contained in:
parent
63cda87e86
commit
42d585d20b
@ -453,8 +453,8 @@ parseAndValidateCsvRules rulesfile s =
|
|||||||
Right rules -> first makeFancyParseError $ validateRules rules
|
Right rules -> first makeFancyParseError $ validateRules rules
|
||||||
where
|
where
|
||||||
makeFancyParseError :: String -> String
|
makeFancyParseError :: String -> String
|
||||||
makeFancyParseError s =
|
makeFancyParseError errorString =
|
||||||
parseErrorPretty (FancyError 0 (S.singleton $ ErrorFail s) :: ParseError Text String)
|
parseErrorPretty (FancyError 0 (S.singleton $ ErrorFail errorString) :: ParseError Text String)
|
||||||
|
|
||||||
-- | Parse this text as CSV conversion rules. The file path is for error messages.
|
-- | Parse this text as CSV conversion rules. The file path is for error messages.
|
||||||
parseCsvRules :: FilePath -> T.Text -> Either (ParseErrorBundle T.Text CustomErr) CsvRules
|
parseCsvRules :: FilePath -> T.Text -> Either (ParseErrorBundle T.Text CustomErr) CsvRules
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user