Last active
February 24, 2023 15:14
-
-
Save exarkun/76ae15b90c3aec2c3a61e1412c1eaf7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ev <- performEvent $ ffor pb $ \_ -> liftIO $ do | |
p <- getFilesDir | |
case p of | |
Nothing -> pure Nothing | |
Just p' -> do | |
writeFile (p' <> "/" <> "somedata.txt") "Hello, world!" | |
content <- deepseq <$> readFile (p' <> "/" <> "somedata.txt") | |
pure (Just (p', content)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment