Thanks Zubin. I found a small problem; hopefully it is unique to me:
% ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.12.2.20251110
% ghc -O2 -fllvm prob214ff.hs
Loaded package environment from /Users/gcolpitts/.ghc/aarch64-darwin-9.12.2.20251110/environments/default
[1 of 2] Compiling Main ( prob214ff.hs, prob214ff.o ) [Missing object file]
<no location info>: warning: [GHC-66599]
GHC was not configured with a supported LLVM toolchain
Make sure you have installed LLVM between [13 and 20) and reinstall GHC to ensure -fllvm works
<no location info>: error:
Warning: Couldn't figure out LLVM version!
Make sure you have installed LLVM between [13 and 20)
Failed to detect LLVM version!
Make sure LLVM is installed correctly.
We will try though...
<no location info>: error: LLVM Optimiser: could not execute:
Although llvm 21 is not supported my understanding is that it is supposed to try as it says above. I do have llvm installed:
opt --version
Homebrew LLVM version 21.1.5
Optimized build.
Default target: arm64-apple-darwin25.1.0
Host CPU: apple-m4
(base) gcolpitts@Mac haskell %
Plus configure also thinks I have it installed:
checking for llc... llc
checking llc version (21.1.5) is between 13 and 20... no
configure: We only support llvm 13 upto 20 (non-inclusive) (found 21.1.5).
checking for opt-19... no
checking for opt-19.0... no
checking for opt19... no
checking for opt-18... no
checking for opt-18.0... no
checking for opt18... no
checking for opt-17... no
checking for opt-17.0... no
checking for opt17... no
checking for opt-16... no
checking for opt-16.0... no
checking for opt16... no
checking for opt-15... no
checking for opt-15.0... no
checking for opt15... no
checking for opt-14... no
checking for opt-14.0... no
checking for opt14... no
checking for opt-13... no
checking for opt-13.0... no
checking for opt13... no
checking for opt... opt
checking opt version (21.1.5) is between 13 and 20... no
configure: We only support llvm 13 upto 20 (non-inclusive)
checking for llc... llc
checking llc version (21.1.5) is between 13 and 20... no
configure: We only support llvm 13 upto 20 (non-inclusive) (found 21.1.5).
checking for opt-19... no
checking for opt-19.0... no
checking for opt19... no
checking for opt-18... no
checking for opt-18.0... no
checking for opt18... no
checking for opt-17... no
checking for opt-17.0... no
checking for opt17... no
checking for opt-16... no
checking for opt-16.0... no
checking for opt16... no
checking for opt-15... no
checking for opt-15.0... no
checking for opt15... no
checking for opt-14... no
checking for opt-14.0... no
checking for opt14... no
checking for opt-13... no
checking for opt-13.0... no
checking for opt13... no
checking for opt... opt
checking opt version (21.1.5) is between 13 and 20... no
configure: We only support llvm 13 upto 20 (non-inclusive) (found 21.1.5).
Suggestions?
Thanks
George