Remove unnecessary type annotations in expressions
Getty Ritter
6 years ago
159 | 159 | |
160 | 160 | sComment :: Parser BlankLine |
161 | 161 | sComment = do |
162 |
c <- oneOf |
|
162 | c <- oneOf ";#" | |
163 | 163 | txt <- T.pack `fmap` manyTill anySingle eol |
164 | 164 | return (CommentLine c txt) |
165 | 165 | |
171 | 171 | pSection leading prevs = do |
172 | 172 | start <- getCurrentLine |
173 | 173 | void (char '[') |
174 |
name <- T.pack `fmap` some (noneOf |
|
174 | name <- T.pack `fmap` some (noneOf "[]") | |
175 | 175 | void (char ']') |
176 | 176 | void eol |
177 | 177 | comments <- sBlanks |
204 | 204 | pPair :: Seq BlankLine -> Parser (NormalizedText, IniValue) |
205 | 205 | pPair leading = do |
206 | 206 | pos <- getCurrentLine |
207 | key <- T.pack `fmap` some (noneOf ("[]=:" :: String)) | |
208 | delim <- oneOf (":=" :: String) | |
207 | key <- T.pack `fmap` some (noneOf "[]=:") | |
208 | delim <- oneOf ":=" | |
209 | 209 | val <- T.pack `fmap` manyTill anySingle eol |
210 | 210 | return ( normalize key |
211 | 211 | , IniValue |