Skip to content

Instantly share code, notes, and snippets.

@cartazio
Created January 31, 2014 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cartazio/8744168 to your computer and use it in GitHub Desktop.
Save cartazio/8744168 to your computer and use it in GitHub Desktop.
Prelude> import LLVM.General as LG
Prelude LG> LG.
LG.Module LG.moduleObject LG.writeAssemblyToFile
LG.linkModules LG.moduleString LG.writeBitcodeToFile
LG.moduleAST LG.withModuleFromAST LG.writeObjectToFile
LG.moduleAssembly LG.withModuleFromString
Prelude LG> let f x = LG.linkModules x
Loading package transformers-0.3.0.0 ... linking ... done.
Loading package pretty-1.1.1.1 ... linking ... done.
Loading package array-0.5.0.0 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package containers-0.5.4.0 ... linking ... done.
Loading package bytestring-0.10.4.0 ... linking ... done.
Loading package mtl-2.1.2 ... linking ... done.
Loading package text-1.1.0.0 ... linking ... done.
Loading package parsec-3.1.5 ... linking ... done.
Loading package old-locale-1.0.0.6 ... linking ... done.
Loading package time-1.4.1 ... linking ... done.
Loading package unix-2.7.0.0 ... linking ... done.
Loading package setenv-0.1.1 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package llvm-general-pure-3.3.8.2 ... linking ... done.
Loading package utf8-string-0.3.7 ... linking ... done.
Loading package llvm-general-3.3.8.2 ... linking ... <interactive>:
lookupSymbol failed in relocateSection (RELOC_GOT)
/usr/local/Cellar/llvm33/3.3/lib/llvm-3.3/lib/libLLVMSupport.a: unknown symbol `___dso_handle'
ghc: unable to load package `llvm-general-3.3.8.2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment