Created
October 2, 2025 12:37
-
-
Save mpickering/f9481afee96669fb1fc9b01064831ae6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/env -S cabal run | |
| {- cabal: | |
| build-depends: base >=4.17 && <5 | |
| , directory >=1.3.8 | |
| , filepath >=1.4.100 | |
| , time | |
| , criterion >=1.6 | |
| default-language: GHC2021 | |
| ghc-options: -O2 | |
| -} | |
| import System.OsPath | |
| import System.Directory.OsPath (getModificationTime) | |
| import Control.Monad | |
| main :: IO () | |
| main = do | |
| let rel_path = unsafeEncodeUtf "Main.hs" | |
| replicateM_ 1000000 (getModificationTime rel_path) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment