Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- fromByteString :: ByteString -> [Comment Position]
- fromLine :: (Alternative m, Monad m) => Int -> ByteString -> m (Comment Position)
- breakComment :: ByteString -> (ByteString, ByteString)
- isBlank :: Word8 -> Bool
Documentation
fromByteString :: ByteString -> [Comment Position] Source #
fromLine :: (Alternative m, Monad m) => Int -> ByteString -> m (Comment Position) Source #
Extracts a comment from the given line. If the line does not contain a
comment, the result will be empty
.
breakComment :: ByteString -> (ByteString, ByteString) Source #
Breaks a byte string into two parts: the part before the comment delimiter and the part after. If there is no comment, the part after will be empty.