Safe Haskell | None |
---|
Network.HTTP.Robots
- type Robot = [([UserAgent], [Directive])]
- data UserAgent
- type Path = ByteString
- data Directive
- parseRobots :: ByteString -> Either String Robot
- robotP :: Parser Robot
- skipSpace :: Parser ()
- directiveP :: Parser Directive
- agentP :: Parser UserAgent
- commentsP :: Parser ()
- tokenP :: Parser ByteString
- canAccess :: ByteString -> Robot -> Path -> Bool
Documentation
type Path = ByteStringSource
parseRobots :: ByteString -> Either String RobotSource
parseRobots is the main entry point for parsing a robots.txt file.