Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Convex.Parser
Synopsis
- parseProject :: FilePath -> FilePath -> IO (Either String ParsedProject)
- parseProjectFromContents :: String -> String -> [(String, String)] -> IO (Either String ParsedProject)
- data ParsedProject = ParsedProject {}
- apiFileParser :: Parsec String () [String]
- runUnificationPass :: ParsedProject -> ParsedProject
Documentation
parseProject :: FilePath -> FilePath -> IO (Either String ParsedProject) Source #
parseProjectFromContents :: String -> String -> [(String, String)] -> IO (Either String ParsedProject) Source #
data ParsedProject Source #
Constructors
ParsedProject | |
Fields
|
Instances
Show ParsedProject Source # | |
Defined in Convex.Parser Methods showsPrec :: Int -> ParsedProject -> ShowS # show :: ParsedProject -> String # showList :: [ParsedProject] -> ShowS # | |
Eq ParsedProject Source # | |
Defined in Convex.Parser Methods (==) :: ParsedProject -> ParsedProject -> Bool # (/=) :: ParsedProject -> ParsedProject -> Bool # |
runUnificationPass :: ParsedProject -> ParsedProject Source #
Pre-processes the parsed project to replace anonymous unions and objects with named references if they structurally match. This is done iteratively to a fixed point to handle nested structures.