This is the output of the two commands
benkios-MacBook-Pro:~ benkio$ /Users/benkio/.stack/programs/x86_64-osx/ghc-9.2.5/bin/ghc-9.2.5 --info
[("Project name","The Glorious Glasgow Haskell Compilation System")
,("GCC extra via C opts","")
,("C compiler command","gcc")
,("C compiler flags","")
,("C++ compiler flags","")
,("C compiler link flags","")
,("C compiler supports -no-pie","YES")
,("Haskell CPP command","gcc")
,("Haskell CPP flags","-E -undef -traditional")
,("ld command","ld")
,("ld flags","")
,("ld supports compact unwind","YES")
,("ld supports build-id","NO")
,("ld supports filelist","YES")
,("ld is GNU ld","NO")
,("Merge objects command","ld")
,("Merge objects flags","-r")
,("ar command","ar")
,("ar flags","qcls")
,("ar supports at file","NO")
,("ranlib command","ranlib")
,("otool command","otool")
,("install_name_tool command","install_name_tool")
,("touch command","touch")
,("dllwrap command","/bin/false")
,("windres command","/bin/false")
,("libtool command","libtool")
,("unlit command","/Users/benkio/.stack/programs/x86_64-osx/ghc-9.2.5/lib/ghc-9.2.5/lib/bin/unlit")
,("cross compiling","NO")
,("target platform string","x86_64-apple-darwin")
,("target os","OSDarwin")
,("target arch","ArchX86_64")
,("target word size","8")
,("target word big endian","NO")
,("target has GNU nonexec stack","NO")
,("target has .ident directive","YES")
,("target has subsections via symbols","YES")
,("target has RTS linker","YES")
,("Unregisterised","NO")
,("LLVM target","x86_64-apple-darwin")
,("LLVM llc command","llc")
,("LLVM opt command","opt")
,("LLVM clang command","clang")
,("Use interpreter","YES")
,("Support SMP","YES")
,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn thr_debug_dyn l_dyn thr_l_dyn thr_debug_p debug_p")
,("Tables next to code","YES")
,("Leading underscore","YES")
,("Use LibFFI","NO")
,("RTS expects libdw","NO")
,("Project version","9.2.5")
,("Project Git commit id","74ca6191fa0dbbe8cee3dc53741b8d59fbf16b09")
,("Booter version","8.10.7")
,("Stage","2")
,("Build platform","x86_64-apple-darwin")
,("Host platform","x86_64-apple-darwin")
,("Target platform","x86_64-apple-darwin")
,("Have interpreter","YES")
,("Object splitting supported","NO")
,("Have native code generator","YES")
,("Target default backend","NCG")
,("Support dynamic-too","YES")
,("Support parallel --make","YES")
,("Support reexported-modules","YES")
,("Support thinning and renaming package flags","YES")
,("Support Backpack","YES")
,("Requires unified installed package IDs","YES")
,("Uses package keys","YES")
,("Uses unit IDs","YES")
,("GHC Dynamic","YES")
,("GHC Profiled","NO")
,("Debug on","NO")
,("LibDir","/Users/benkio/.stack/programs/x86_64-osx/ghc-9.2.5/lib/ghc-9.2.5/lib")
,("Global Package DB","/Users/benkio/.stack/programs/x86_64-osx/ghc-9.2.5/lib/ghc-9.2.5/lib/package.conf.d")
]
benkios-MacBook-Pro:~ benkio$ cat /var/folders/38/tqfffwwn65q8ydzr08fyl7m00000gn/T/ghc58339_0/ghc_2.s
cat: /var/folders/38/tqfffwwn65q8ydzr08fyl7m00000gn/T/ghc58339_0/ghc_2.s: No such file or directory
benkios-MacBook-Pro:~ benkio$