Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Comments = Comments [ByteString]
- attachComments :: ByteString -> [Field Position] -> [Field Comments]
- overAnn :: forall a b. (FieldPath -> a -> b) -> [Field a] -> [Field b]
- extractComments :: ByteString -> [(Int, Comments)]
- data FieldPath
- fieldPathSize :: FieldPath -> Int
- fieldUniverseN :: [Field ann] -> [(FieldPath, Field ann)]
- fieldUniverse :: Field ann -> [(FieldPath, Field ann)]
- findPath :: (a -> Position) -> Int -> [(FieldPath, a)] -> Maybe FieldPath
Documentation
:: ByteString | source with comments |
-> [Field Position] | parsed source fields |
-> [Field Comments] |
extractComments :: ByteString -> [(Int, Comments)] Source #
Paths input paths. Essentially a list of offsets. Own type ofr safety.
fieldPathSize :: FieldPath -> Int Source #