Safe Haskell | None |
---|---|
Language | Haskell2010 |
- errorDisplayRange :: Int
- build :: BuildConfig -> FilePath -> CompiledContent ()
- handleParseError :: String -> String -> String
- showBadLine :: [String] -> LineNumber -> LineNumber -> (LineNumber, String)
- readParseError :: String -> LineNumber
Documentation
errorDisplayRange :: Int Source
How many lines to display around the source of error (both ways).
build :: BuildConfig -> FilePath -> CompiledContent () Source
Build scripts The environment
handleParseError :: String -> String -> String Source
Given the original content as string and an error message that is produced by `language-javascript` parser, throw an error.
showBadLine :: [String] -> LineNumber -> LineNumber -> (LineNumber, String) Source
Given a file's lines, its line number, and the "target" line number that caused the parse error, format it for human-readable output.
readParseError :: String -> LineNumber Source
Because the parser's error isn't readable, we need to use RegExp to extract what we need for debugging.