ncurses is proving too difficult to setup, so I&#39;m working on a new library called charm. The C code works by itself, but I can&#39;t compile a Haskell wrapper for it. While the tutorials at <a href="http://www.haskell.org/haskellwiki/FFI_complete_examples">HaskellWiki</a> are helpful, they&#39;re outdated. Argh! The <a href="http://www.haskell.org/ghc/docs/latest/html/users_guide/ffi-ghc.html#glasgow-foreign-headers">docs</a> say that -#include pragmas no longer work, but fail to explain how to load code without them. Suffice to say I have no recourse but trial and error.<br>

<br>GitHub: <a href="https://github.com/mcandre/charm">charm</a> and <a href="https://github.com/mcandre/hscharm">hscharm</a><br><br><a href="https://github.com/mcandre/charm"></a>$ make<br>cp /usr/include/charm.c .<br>ghc --make -fforce-recomp -o hellocharm hellocharm.hs charm.hs charm.c -I/usr/include -dylib-install-name /usr/lib/libcharm.dynlib<br>

[1 of 2] Compiling Charm            ( charm.hs, charm.o )<br>[2 of 2] Compiling Main             ( hellocharm.hs, hellocharm.o )<br>Linking hellocharm ...<br>ld: duplicate symbol _Charm_getWidth_info in charm.o and charm.o<br>

collect2: ld returned 1 exit status<br>make: *** [hellocharm] Error 1<br clear="all"><div><br></div>Cheers,<div><br></div><div>Andrew Pennebaker</div><div><a href="http://www.yellosoft.us" target="_blank">www.yellosoft.us</a></div>