[Haskell-cafe] Using C-c C-l to load .hsc file into ghci in Emacs

Johan Tibell johan.tibell at gmail.com
Tue Oct 2 12:57:19 EDT 2007


How can I get C-c C-l to first run cpp on a .hsc file and then load
the .hs file?

I checked out the network package from darcs and then did:

Start ghci, C-c C-z, then:

Prelude> :set -cpp

And then pressed load, C-c C-l:

Prelude> :load "/Users/tibell/src/haskell/network-bytestring/Network/Socket.hsc"

<command line>:
    Could not find module
`/Users/tibell/src/haskell/network-bytestring/Network/Socket.hsc':
      Use -v to see a list of the files searched for.
Failed, modules loaded: none.
Prelude> :load "/Users/tibell/src/haskell/network-bytestring/Network/Socket.hsc"

<command line>:
    Could not find module
`/Users/tibell/src/haskell/network-bytestring/Network/Socket.hsc':
      Use -v to see a list of the files searched for.
Failed, modules loaded: none.


More information about the Haskell-Cafe mailing list