We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51b462 commit 095752eCopy full SHA for 095752e
test/embed-file/app/Main.hs
@@ -8,5 +8,8 @@ import System.Exit (exitFailure)
8
import Data.FileEmbed (embedFile, makeRelativeToProject)
9
10
main :: IO ()
11
-main =
12
- unless ($(makeRelativeToProject "app/test.txt" >>= embedFile) == encodeUtf8 (T.pack "Hello World")) exitFailure
+main = do
+ 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