[xmonad] Problem CPP'ifying XSelection.hs

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sat Sep 20 12:28:24 EDT 2008


On 2008 Sep 20, at 11:33, Gwern Branwen wrote:
> I finished editing, and everything looked dandy, but everytime I  
> compiled, or loaded into GHCi (with :set -DUTF8), it fails to  
> compile! And it fails to compile in a way that really perplexes me:
>
>    Could not find module `Codec.Binary':
>      Use -v to see a list of the files searched for.
>
> Line 34 reads:
>
>    import Codec.Binary.UTF8.String (decode)

The "UTF8" in that import is being converted to "1", because cpp sees  
"UTF8" as the macro you -D-d.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the xmonad mailing list