duplo-1.6.19: Frontend development build tool

Safe HaskellNone
LanguageHaskell2010

Development.Duplo.Scripts

Synopsis

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.