<jupyter_start><jupyter_text>IntroductionThe following cells should succeed, and show that the LLVM library is loaded correctly and can execute commands<jupyter_code>import LLVM
import LLVM.Target
import qualified LLVM.Relocation                                    as RelocationModel
import qualified LLVM.CodeModel                                     as CodeModel
import qualified LLVM.CodeGenOpt                                    as CodeOptimisation
nativeTargetTriple <- getProcessTargetTriple
nativeTargetTriple
nativeCPUName <- getHostCPUName
nativeCPUName
initializeNativeTarget
nativeCPUFeatures <- getHostCPUFeatures
(nativeTarget, _) <- lookupTarget Nothing nativeTargetTriple<jupyter_output><empty_output><jupyter_text>The BugThe following fails for some reason, in the call to [`FFI.createTargetOptions`](http://hackage.haskell.org/package/llvm-hs-8.0.0/docs/src/LLVM.Internal.FFI.Target.htmlcreateTargetOptions) (part of [`withTargetOptions`](http://hackage.haskell.org/package/llvm-hs-8.0.0/docs/LLVM-Target.htmlv:withTargetOptions)) whose corresponding C++ code is [here](https://github.com/llvm-hs/llvm-hs/blob/601443f123cb387ee0dc2279454abc9b8521a2b8/llvm-hs/src/LLVM/Internal/FFI/TargetC.cppL256).<jupyter_code>import LLVM.Internal.Target
import qualified LLVM.Internal.FFI.Target as FFI

-- withTargetOptions $ \targetOptions ->
--   putStrLn "I did a thing!"

FFI.createTargetOptions<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08792742498255408, 'fraction_numerical': 0.02512212142358688, 'mean_word_length': 4.272058823529412, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 10, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '372894', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 450, 'n_tokens_neox': 422, 'n_words': 83, 'path': 'Bug.ipynb', 'repo_name': 'tmcdonell/ihaskell-bug', 'size': '1433'}