Module
CompileFail
- Package
- purescript-compile-fail
- Repository
- rowtype-yoga/purescript-compile-fail
#spagoSources Source
spagoSources :: Aff (Array String)Get source globs from spago, excluding test sources
#warmCache Source
warmCache :: CompileContext -> Aff UnitWarm the purs compile cache by compiling all library sources
#parseExpect Source
parseExpect :: String -> Maybe StringParse the expected error from the first line of a file. Files should start with: -- EXPECT: <substring>
#compileFile Source
compileFile :: CompileContext -> String -> Aff CompileFailResultCompile a single file and check whether it fails with the expected error. Reads the file to extract the EXPECT comment.
#compileFileWithContent Source
compileFileWithContent :: CompileContext -> String -> String -> Aff CompileFailResultCompile a file whose content is provided, checking against the EXPECT comment