Skip to content

Commit

Permalink
Better compatability for spago source
Browse files Browse the repository at this point in the history
  • Loading branch information
csicar committed Mar 3, 2021
1 parent 2475ea1 commit a634551
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ data PurepurOptions = PurepurOptions

docgen :: PurepurOptions -> IO ()
docgen p@(PurepurOptions moutput compileOutput inputGlob compileInputGlob) = do
compileInput <- concat <$> mapM glob compileInputGlob
compileInput <- concat <$> mapM glob (concatMap lines compileInputGlob)
input <- concat <$> mapM glob inputGlob

when (null compileInput) $ do
Expand Down
3 changes: 2 additions & 1 deletion src/Purepur/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ generateTestFromMarkdown title (Just comment) = do
error $ "unused expression: " <> show expr
commandsToDocument title [] = mempty
commandsToDocument title (ExpectedOutput str: rest) =
error $ "Could not translate doctest comment: Found expected output " <> show str <> ", but no matching command."
error $ "Could not translate doctest comment: Found expected output "
<> show str <> ", but no matching command."
<> " Maybe you missed a `>`? "

generateTestFromMarkdownFile :: (FilePath, T.Text) -> Except ParseError (PurepurDocument, P.ModuleName)
Expand Down

0 comments on commit a634551

Please sign in to comment.