haskell / alex

A lexical analyser generator for Haskell
https://hackage.haskell.org/package/alex
BSD 3-Clause "New" or "Revised" License
297 stars 82 forks source link

Function `Util.brack` is not used #228

Closed ivanperez-keera closed 1 year ago

ivanperez-keera commented 1 year ago

The function Util.brack is not used by any part of alex. A quick search through the tree can show this:

$ grep -nHre '\<brack\>' src/
src/Util.hs:16:  , brack
src/Util.hs:40:brack :: (String -> String) -> String -> String
src/Util.hs:41:brack s = char '[' . s . char ']'

Since alex doesn't expose an API and the function is not used internally, it might as well be removed from the module completely.