nntp-0.0.4: Library to connect to an NNTP Server

Portabilityportable
Stabilitynone
Maintaineruzytkownik2@gmail.com

Network.NNTP.ParserHelpers

Contents

Description

This module contains the parser helpers

Synopsis

Parser helpers

code :: Monad m => NntpParser m IntSource

Parsers 3-digit response code. In some cases it may throw errors such as ServiceDiscontinued and NoSuchCommand. It skip to the end of line automatically in sych case.

integer :: Monad m => NntpParser m IntegerSource

Parses an integer.

iD :: Monad m => NntpParser m StringSource

Parses an article ID.

groupName :: Monad m => NntpParser m StringSource

Parses an group name.

text :: Monad m => NntpParser m ByteStringSource

Gets a multiline output.

line :: Monad m => NntpParser m ByteStringSource

Gets rest of line.