Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CPP a
- = NoCPP a
- | CPP Text [AnnotatedImports] [a]
- addImportsCPP :: [AnnotatedImports] -> CPP AnnotatedModule -> CPP AnnotatedModule
- parseCPPFile :: (FilePath -> String -> IO AnnotatedModule) -> FilePath -> IO (CPP AnnotatedModule)
- parseCPP :: Monad m => (String -> m AnnotatedModule) -> Text -> m (CPP AnnotatedModule)
- printCPP :: [Replacement] -> CPP AnnotatedModule -> String
- cppFork :: Text -> [Text]
Documentation
NoCPP a | |
CPP Text [AnnotatedImports] [a] |
Instances
Functor CPP Source # | |
Foldable CPP Source # | |
Defined in Retrie.CPP fold :: Monoid m => CPP m -> m # foldMap :: Monoid m => (a -> m) -> CPP a -> m # foldr :: (a -> b -> b) -> b -> CPP a -> b # foldr' :: (a -> b -> b) -> b -> CPP a -> b # foldl :: (b -> a -> b) -> b -> CPP a -> b # foldl' :: (b -> a -> b) -> b -> CPP a -> b # foldr1 :: (a -> a -> a) -> CPP a -> a # foldl1 :: (a -> a -> a) -> CPP a -> a # elem :: Eq a => a -> CPP a -> Bool # maximum :: Ord a => CPP a -> a # | |
Traversable CPP Source # | |
addImportsCPP :: [AnnotatedImports] -> CPP AnnotatedModule -> CPP AnnotatedModule Source #
parseCPPFile :: (FilePath -> String -> IO AnnotatedModule) -> FilePath -> IO (CPP AnnotatedModule) Source #
parseCPP :: Monad m => (String -> m AnnotatedModule) -> Text -> m (CPP AnnotatedModule) Source #
printCPP :: [Replacement] -> CPP AnnotatedModule -> String Source #