Skip to content

Commit a634551

Browse files
committed
Better compatability for spago source
1 parent 2475ea1 commit a634551

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ data PurepurOptions = PurepurOptions
4141

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

4747
when (null compileInput) $ do

src/Purepur/Generate.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ generateTestFromMarkdown title (Just comment) = do
6565
error $ "unused expression: " <> show expr
6666
commandsToDocument title [] = mempty
6767
commandsToDocument title (ExpectedOutput str: rest) =
68-
error $ "Could not translate doctest comment: Found expected output " <> show str <> ", but no matching command."
68+
error $ "Could not translate doctest comment: Found expected output "
69+
<> show str <> ", but no matching command."
6970
<> " Maybe you missed a `>`? "
7071

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

0 commit comments

Comments
 (0)