-- | This is a one-to-one copy from Network.CGI.Protocol
--   More info about reads here:
--   https://www.vex.net/~trebla/haskell/reads.xhtml
maybeRead :: Read a => String -> Maybe a
maybeRead = fmap fst . listToMaybe . reads
maybeRead :: Read a => String -> Maybe a
maybeRead = fmap fst . listToMaybe . reads
maybeRead = fmap fst . listToMaybe . reads