Skip to content

Commit c8a07d7

Browse files
committed
Add test helper for annotate
1 parent a12800a commit c8a07d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extra/Lamdera/CLI/Annotate.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ run (Args file expressionName) () = do
4242
printAnnotations root file expressionName
4343

4444

45+
printAnnotationsTest :: FilePath -> FilePath -> String -> IO ()
46+
printAnnotationsTest root file expressionName =
47+
printAnnotations root file (Name.fromChars expressionName)
48+
4549
printAnnotations :: FilePath -> FilePath -> Name.Name -> IO ()
4650
printAnnotations root file expressionName = do
4751
Ext.Common.withProjectRoot root $ do

0 commit comments

Comments
 (0)