In my code I have this line:

foreign import ccall "set_num_states" setNumStates :: Int -> IO ()

I can build my project using cabal and have an appropriate "c-sources:" line.

But when I use ghc-mod check (eg. from " ghc-mod-5.2.0.0", and launched from Syntastic) it complains:

"ghc-mod:
ByteCodeLink: can't find label
During interactive linking, GHCi couldn't find the following symbol:
  set_num_states"

How should I be checking my code?
--
Dan