Skip to content

Commit 095752e

Browse files
committed
Fix expected output
1 parent a51b462 commit 095752e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/embed-file/app/Main.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ import System.Exit (exitFailure)
88
import Data.FileEmbed (embedFile, makeRelativeToProject)
99

1010
main :: IO ()
11-
main =
12-
unless ($(makeRelativeToProject "app/test.txt" >>= embedFile) == encodeUtf8 (T.pack "Hello World")) exitFailure
11+
main = do
12+
let test = $(makeRelativeToProject "app/test.txt" >>= embedFile)
13+
unless (test == encodeUtf8 (T.pack "Hello World\n")) $ do
14+
putStrLn $ "Embedded content was : " <> show test
15+
exitFailure

0 commit comments

Comments
 (0)