Skip to content

Commit

Permalink
Export ParseC for haddock documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
solatis committed Feb 18, 2015
1 parent 8500824 commit 9517a25
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Network/Attoparsec.hs
Expand Up @@ -4,7 +4,7 @@
-- | Utility functions for running a parser against a socket, without the need
-- of a bigger framework such as Pipes or Conduit.

module Network.Attoparsec (parseMany, parseOne) where
module Network.Attoparsec (ParseC, parseMany, parseOne) where

import Control.Monad.Error

Expand All @@ -16,9 +16,7 @@ import qualified Data.Attoparsec.ByteString as Atto
-- | The parsing continuation form of a "Data.Attoparsec" parser. This is
-- typically created by running the attoparsec "parse" function:
--
-- @
-- createParser = AttoParsec.parse myParser
-- @
-- > createParser = AttoParsec.parse myParser
type ParseC a = BS.ByteString -> Atto.Result a

-- | The type of parsing to perform, greedy or non-greedy
Expand Down

0 comments on commit 9517a25

Please sign in to comment.