[Haskell-cafe] compilation succeeds -- execution fails

Jason Dusek jason.dusek at gmail.com
Fri Mar 28 05:34:18 EDT 2008

  I have a program here:


  currently at revision 302, which compiles okay but I can't get
  it to work. I'm using the FFI to take a (currently small)
  array and translate it into a Map.

  It compiles fine and loads fine -- but it doesn't run fine:

    GHCi, version 6.8.2: http://www.haskell.org/ghc/  :? for help
    Loading package base ... linking ... done.
    Prelude> import Data.Char.CEDICT
    Prelude Data.Char.CEDICT> traditional 'a'
    Loading package array- ... linking ... done.
    Loading package containers- ... linking ... done.
    Loading package parsec- ... linking ... done.
    Loading package utf8-string-0.2 ... linking ... done.
    Loading package cedict-0.1.1 ... linking ... <interactive>:
    unknown symbol `___stginit_cedictzm0zi1zi1_DataziCharziCEDICTziMatter_'
    ghc-6.8.2: unable to load package `cedict-0.1.1'
    Prelude Data.Char.CEDICT>

  I'm on a Mac -- Leopard. A whole bunch of things *could* be
  wrong -- I'd appreciate some help in narrowing the list.


More information about the Haskell-Cafe mailing list